body{

    background-color: rgb(253, 253, 253);
    border: 0;
    margin: 0;
    width: 100%;
    font-family: "Lato", sans-serif;
}

a{
    color: black;
    text-decoration: rgb(0, 4, 255) underline;
    cursor: grab;
}

a:hover{

    text-decoration: rgb(0, 0, 0) underline;
    color: rgb(255, 136, 0);
   
}

/*------------------------------header------------------------------*/
header{

    border-bottom: 1px solid black;
    height: 8rem;
    width: 100%;
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
}

.header-item{

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    
}

#header-item-1{

    width: 25%;
}

#header-item-2{

    width: 50%;
}

#header-item-3{

    width: 25%;
}
/*------------------------------main------------------------------*/
main{

    margin: 0;
    margin-top: 1px;
    border: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    font-size: 1.4em;
}

.main-item{

    display: inline;
    border: 1px solid black;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 40rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.main-item-select{

    padding: 0.7rem;
    border-bottom: 1px solid rgb(117, 117, 117);
    font-size: medium;
    width: 40%;
}

.preview{

    width: 95%;
    margin: auto;
}

.sw {

    width: fit-content;
    float: left;
}

table.admin-table{

    border-collapse: collapse;
}

.admin-table tr{

    border-bottom: 1pt solid rgb(109, 109, 109);
}

/*-----------------------*/

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 23px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 15px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/*-----------------------*/

#img_pyt{

    width: 100%;
    max-height: 25rem;
}

.main-item form{

    display: flex;
    flex-direction: column;
    width: 38rem;
    margin: auto;
}

.main-item form input{

    margin-bottom: 1.4rem;
    margin-top: 0.3rem;
    border: 1px solid black;
    padding: 0 3% 0 3%;
    border-radius: 1rem;
    height: 2rem;
}

.main-item form input[type=submit]{

    background-color: rgb(0, 4, 255);
    color: white;
    font-weight: bold;
    transition: all 0.5s;
    width: 50%;
    margin: auto;
}

.main-item form input[type=file]{

    display: none;
}

.select-header{

    top: 0;
    position: sticky;
    background-color: white;
    z-index: 10;
}

.file-upload{

    border: 1px solid #000000;
    background-color: #979797;
    color: white;
    border-radius: 1rem;
    text-align: center;
    font-size: medium;
    padding: 0.3rem;
    width: 50%;
    margin: auto;
    margin-bottom: 2rem;
    transition: all 0.5s;
}

.file-upload:hover{


    background-color: rgb(0, 174, 255);
    width: 90%;
}

.main-item form input:hover[type=submit]{

    background-color: rgb(255, 156, 28);
    width: 100%;
    color: rgb(0, 0, 0);
}

.radio div{

    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}

.radio input[type=radio]{

    width: 1rem;
    height: 1rem;
    margin-bottom: 2rem;
    margin-right: 1.5rem;
}

#adm{

    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: large;
}

.error{

    color: red;
}

table{

    margin: auto;
    width: 95%;
}

.pytO{

    background-color: #d2ebff;
    border-radius: 1rem;
}

.update th{

    
    border-bottom:1px solid black;
}

.update td{

    border-top:1px solid black;
    font-size: large;
}

@media only screen and (max-width: 1170px) and (min-width: 870px){

    header{

        height: 7rem;
        font-size: 1.49rem;
    }

    header img{

        width: 90%;
    }

    main{

        font-size: 1.2em;
    }

  }

@media only screen and (max-width: 870px) and (min-width:730px){

    header{

        height: 7rem;
        font-size: 1.25rem;
    }

    header img{

        width: 90%;
    }

    main{

        font-size: 1.2em;
    }

    .main-item{

        width: 30rem;
    }

    .main-item form{

        width: 28rem;
    }

    .main-item form input{

        height: 1.5rem;
    }

  }

  @media only screen and (max-width: 730px) and (min-width:600px){

    header{

        height: 7rem;
        font-size: 1rem;
    }

    header img{

        width: 90%;
    }

    main{

        font-size: 1em;
    }

    .main-item{

        width: 30rem;
    }

    .main-item form{

        width: 28rem;
    }

    .main-item form input{

        height: 1.5rem;
    }

  }

  @media only screen and (max-width: 600px) and (min-width: 450px){

    header{

        height: 17rem;
        font-size:1.4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    
    #header-item-1{
    
        width: 60%;
    }

    #header-item-2{

        width: 80%;
        margin-bottom: 0.5rem;
    }

    #header-item-3 img{

        width: 150%;
    }

    main{

        font-size: 1.3em;
    }

    .main-item{

        width: 23rem;
        padding: 0.9rem;
    }

    .main-item form{

        width: 21rem;
    }

    .main-item form input{

        height: 1.5rem;
    }

  }

  @media only screen and (max-width: 450px) and (min-width: 370px){

    header{

        height: 17rem;
        font-size:1.4rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    
    #header-item-1{
    
        width: 60%;
    }

    #header-item-2{

        width: 80%;
        margin-bottom: 0.5rem;
    }

    #header-item-3 img{

        width: 150%;
    }

    main{

        font-size: 1.3em;
    }

    .main-item{

        width: 19rem;
        padding: 0.9rem;
    }

    .main-item form{

        width: 17rem;
    }

    .main-item form input{

        height: 1.5rem;
    }

    .file-upload{

        width: 60%;
        font-size: small;
    }

  }

  @media only screen and (max-width: 370px){

    header{

        height: 17rem;
        font-size:1.2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }
    
    #header-item-1{
    
        width: 20%;
    }

    #header-item-2{

        width: 80%;
        margin-bottom: 0.5rem;
    }

    #header-item-3 img{

        width: 150%;
    }

    main{

        font-size: 1.1em;
    }

    .main-item{

        width: 15rem;
        padding: 0.9rem;
    }

    .main-item form{

        width: 13rem;
    }

    .main-item form input{

        height: 1.5rem;
    }

    .file-upload{

        width: 80%;
        font-size: small;
    }

  }
