*{
    box-sizing: border-box;
}

body{
    margin: 0;
}

/* Header */

.header-container{
    /* border: 2px solid red; */
    height: 12vh;
    width: 100vw;
    background-color: rgb(41, 41, 41);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 1.3rem;
    padding-left: 1rem;
}

.heading-container{
    width: 24%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title{
    color: white;
    font-family: 'Montserrat Subrayada', sans-serif;
    margin: 0;
}

/* state selection */
.select-container{
    width: 47%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.select{
    width: 26%;
    height: 2rem;
    cursor: pointer;
	border-radius: 5px;
    background-color: #ddd;
}

/* district selection */
.district-select{
    width: 26%;
    height: 2rem;
    cursor: pointer;
	border-radius: 5px;
    background-color: #ddd;
}

/* pincode */
.input-container{
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 45%;
    display: none;
}

#input-pin{
    height: 2rem;
    width: 45%;
    cursor: pointer;
	border-radius: 5px;
    background-color: #ddd;
}

/* date selection */
.date-container{
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 41%;
}

#start{
    height: 2rem;
    width: 57%;
    cursor: pointer;
	border-radius: 5px;
    background-color: #ddd;
}

label {
    display: block;
    color: white;
    font: 1rem 'Fira Sans', sans-serif;
    width: 40%;
}

.age-container{
    height: 70%;
    width: 9%;
    background-color: rgb(89, 87, 87);
    border-radius: 0.3rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.age-container:hover{
    background-color: rgb(62, 61, 61);
}

.age_cat{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    margin: 0;
}

.pr-container{
    height: 70%;
    width: 9%;
    background-color: rgb(89, 87, 87);
    border-radius: 0.3rem;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.pr-container:hover{
    background-color: rgb(62, 61, 61);
}

.pr{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    text-align: center;
    margin: 0;
}

.main-container{
    /* border: 2px solid green; */
    min-height: 88vh;
    background-color: rgb(238, 238, 238);
    padding: 3rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3vw;
}

/* h1 */
.notice{
    font-family: sans-serif;
}

/* modal container */
.modal-container{
    height: 40vh;
    width: 47vw;
    top: calc((100vh - 40vh)/2 + 6vh);
    left: calc((100vw - 47vw)/2);
    position: absolute;
    display: none;
    border-radius: 0.8rem;
    box-shadow: 0px 12px 9px 4px rgba(0, 0, 0, .3);
}

.modal-filter__conatiner{
    height: 100%;
    width: 100%;
    background-color: rgb(62, 62, 62);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    border-radius: 0.8rem;
}

/* age-select-btn */
.modal-filters{
    width: 27%;
    height: 17%;
    border-radius: 0.5rem;
    background-color: white; 
    color: black; 
    border: 2px solid #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-filters:hover {
  background-color: #4CAF50;
  color: white;
}

.age_desc{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
}

/* dose-select-btn */
.capacity-filters{
    width: 35%;
    height: 17%;
    border-radius: 0.5rem;
    background-color: white; 
    color: black; 
    border: 2px solid #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.capacity-filters:hover {
  background-color: #4CAF50;
  color: white;
}

.cap_desc{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
}

/* vaccine-select-btn */
.vaccine-container{
    display: flex;
    width: 100%;
    height: 17%;
}

.vaccine-filters{
    width: 28%;
    height: 100%;
    background-color: white; 
    color: black; 
    border: 2px solid #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vaccine-filters{
    border-right-width: 1px;
}

.vaccine-filters:first-child{
    width: 25%;
    border-radius: 0.5rem 0 0 0.5rem;
}

.vaccine-filters:last-child{
    border-radius: 0rem 0.5rem 0.5rem 0;
    border-right-width: 2px;
    width: 20%;
}

.vaccine-filters:hover {
  background-color: #4CAF50;
  color: white;
}

.vac_name{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.3rem;
    margin: 0;
}

.pin-dist_container{
    width: 34%;
    height: 17%;
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pin-dist{
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    margin: 0;
}

.fee-type{
    display: flex;
    justify-content: space-between;
    text-align: center;
    font-family: sans-serif;
    padding: 0.2rem;
    width: 20%;
    height: 15%;
}

.fee-type h2{
    color: white;
    margin: 0px;
}

.switch {
  position: relative;
  display: inline-block;
  margin-top: 0.25rem;
  width: 40px;
  height: 20px;
  background-color: rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  transition: all 0.3s;
}

.switch:after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  background-color: white;
  top: 1px;
  left: 1px;
  transition: all 0.3s;
}

input[type='checkbox']:checked + .switch:after {
  transform: translateX(20px);
}

input[type='checkbox']:checked + .switch {
  background-color: #7983ff;
}

.offscreen {
  position: absolute;
  left: -9999px;
}

.border{
    background-color: #4CAF50;
    color: white;
}

.active{
    background-color: rgb(62, 61, 61);
}

/* info container */
.info-container{
    height: 15vh;
    width: 22vw;
    top: 20vh;
    left: 37vw;
    position: absolute;
    border-radius: 0.8rem;
    box-shadow: 0px 12px 9px 4px rgba(0, 0, 0, .3);
    background-color: rgb(62, 62, 62);
    display: none;
    justify-content: center;
    align-items: center;
}

.z-dose{
    color: white;
    font-family: sans-serif;
}

/* Ticket Container */

.ticket-container{
    height: 20rem;    
    width:20rem;
    background-color:white;
    border-radius: 0.6rem;
    padding: 0.3rem;
    box-shadow: 0px 12px 7px 3px rgba(0, 0, 0, .2);
}

.ticket_sub-container{
    height: 92%;
    width: 100%;
    padding-left:1rem;
    font-family: sans-serif;
    overflow-y: auto;
}

.book-now{
    height: 8%;
    width: 100%;
    background-color: white; 
    color: black; 
    border: 2px solid #f44336;
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.5s;
}

.book-now:hover{
    background-color: #f44336;
    color: white;
}

.book-now span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  
}

.book-now span:after {
  content: '\00bb';
  font-size: 2rem;
  position: absolute;
  opacity: 0;
  top: -14.1px;
  right: -18px;
  transition: 0.3s;
}

.book-now:hover span {
  padding-right: 25px;
}

.book-now:hover span:after {
  opacity: 1;
  right: 0;
}

.ticket-id{
    color:lightslategray;
}

@media only screen and (max-width: 1145px) {
    .title{
        font-size: 1.5rem;
    }

    label{
        font-size: 0.8rem;
    }

    .date-container{
        width: 35%;
    }

    .age_cat{
        font-size: 1.2rem;
    }

    .pr{
        font-size: 1.2rem;
    }

    .modal-container{
        width: 60vw;
        left: calc((100vw - 60vw)/2);
    }

    .vac_name{
        font-size: 1.2rem;
    }
}

@media only screen and (max-width: 970px) {
   .header-container{
       flex-direction: column;
       justify-content: space-around;
       height: 29vh;
   }

   .heading-container{
       height: 2.5rem;
       width: 100%;
   }

   .title{
       font-size: 2rem;
   }

   .select-container{
       height: 3rem;
       width: 100%;
       padding-left: 2rem;
       padding-right: 2rem;
   }

   .select{
       width: 25%;
   }

   .district-select{
       width: 25%;
   }

   .date-container{
       width: 35%;
   }

    label{
        font-size: 0.9rem;
    }

    .main-container{
       min-height: 71vh;
   }

   .age-container{
       height: 2.5rem;
       width: 100%;
   }

   .pr-container{
       height: 2.5rem;
       width: 100%;
   }

    .info-container{
        top: 31vh;
        width: 30vw;
        left: 34vw;
    }

    .modal-container{
        top: 50vh;
    }

    .fee-type {
        width: 27%;
    }
}

@media only screen and (max-width: 671px) {
    .header-container{
        height: 35vh;
    }

    .main-container{
        min-height: 65vh;
    }
    
    .select-container{
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        margin-top: 0.2rem;
        height: 9rem;
    }

    .select{
        width: 100%;
    }

    .district-select{
        width: 100%;
    }

    .date-container{
        width: 100%;
        padding-left: 0;
    }

    .input-container{
        width: 70%;
        padding-left: 0;
    }

    #input-pin{
        width: 70%;
    }

    #start{
        width: 70%;
    }

    label{
        font-size: 0.8rem;
        width: 29%;
    }

    .age-container{
        height: 2rem;
    }

    .pr-container{
        height: 2rem;
    }
}

@media only screen and (max-width: 430px) {
    .header-container{
        height: 40vh;
    }

    .main-container{
        min-height: 60vh;
    }
    .modal-container{
        height: 32vh;
        width: 88vw;
        top: 56vh;
        left: calc((100vw - 88vw)/2);
    }

    .title{
       font-size: 1.8rem;
   }

   .info-container{
        height: 13vh;
        width: 47vw;
        top: 42vh;
        left: 28vw;
    }

    .z-dose{
        font-size: 1.3rem;
    }

    .capacity-filters{
        width: 32%;
    }

    .vac_name{
        font-size: 0.8rem;
    }

    .age_desc{
        font-size: 1rem;
    }

    .cap_desc{
        font-size: 1rem;
    }

    .pin-dist{
        font-size: 1rem;
    }

    .fee-type {
        width: 35%;
    }

    .fee-type h2{
        font-size: 1.2rem;
    }

    .switch{
        margin-top: 0.16rem;
    }
}