/* open-sans-300 - latin */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/open-sans-v18-latin-300.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('fonts/open-sans-v18-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/open-sans-v18-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/open-sans-v18-latin-300.woff') format('woff'), /* Modern Browsers */
         url('fonts/open-sans-v18-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/open-sans-v18-latin-300.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* roboto-regular - latin */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-v20-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('fonts/roboto-v20-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/roboto-v20-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/roboto-v20-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('fonts/roboto-v20-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/roboto-v20-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* hind-regular - latin */
@font-face {
    font-family: 'Hind';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/hind-v11-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('fonts/hind-v11-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('fonts/hind-v11-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('fonts/hind-v11-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('fonts/hind-v11-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('fonts/hind-v11-latin-regular.svg#Hind') format('svg'); /* Legacy iOS */
  }

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    height: 100%;
}

body{
    background: #e3e3e3;
    height: 100%;
}

header{
    text-align: center;
    padding: 30px 0px 30px 0;
    background: #ff9800;
    color: white;
    font-family: "Open Sans",sans-serif;
}

header h1{
    font-weight: lighter;
    color: white;
}

.head-flex{
    margin: 25px auto 40px auto;
    display: flex;
    justify-content: center;
}

header button, header input{
    color: white;
}

header input{
    width: 450px;
    padding: 6px 20px;
    background:  rgb(255, 166, 0);
    color: Black;
    outline: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    background-color: rgb(232, 240, 254);
    box-shadow: inset 0 0 15px #ef6c00;
    text-shadow: 1px 1px 1px rgba(121,72,0,.47);
    text-transform: uppercase;
    font-family: "Open Sans",sans-serif;
    flex-shrink: 0;
}

::placeholder {
    box-shadow: none;
    text-transform: capitalize;
  }

header button{
    background:  rgb(255, 102, 0);
    border-style:none;
    width: 30px;
    position: relative;
    flex-shrink: 0;
}

#ubication{
    border-radius: 9px 0 0 9px;
    border: none;
    cursor: pointer;
    margin-right: -10px;
}

#ubpng{
    width: 23px;
    position: relative;
    top: 1px;
}

#submit{
    border-radius: 0 9px 9px 0;
    border-style:none;
    cursor: pointer;
    margin-left: -10px;
}

#sepng{
    width: 18px;
    color: white;
    transform: scaleX(-1);
}

/*Switch*/



*:focus
{
    outline: none;
}


.button-cover
{
    
}


.knobs, .layer
{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.button
{
    position: relative;
    top: 50%;
    margin: -20px auto 0 auto;
    overflow: hidden;
}

.button.r, .button.r .layer
{
    border-radius: 100px;
    height: 30px;
    width: 63px;
}

.button.b2
{
    border-radius: 2px;
}

.checkbox
{
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 16;
}

.knobs
{
    z-index: 15;
}

.layer
{
    background-color:rgb(232, 240, 254);
    box-shadow: inset 0 0 10px #ef6c00;
    transition: 0.3s ease all;
    z-index: 1;
}

#button-3 .knobs:before
{
    content: 'C';
    position: absolute;
    top: 4px;
    left: 5px;
    width: 18px;
    height: 5px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    line-height: 0.4;
    padding: 9px 4px 9px 3px;
    background-color: rgb(255, 102, 0);
    box-shadow: 0 0 4px rgb(123 61 7 / 60%);
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}


#button-3 .checkbox:checked + .knobs:before
{
    content: 'F';
    left: 32px;
    background-color:  rgb(255, 102, 0);
}

#button-3 .checkbox:checked ~ .layer
{
    background-color: rgb(232, 240, 254);
    box-shadow: inset 0 0 10px #ef6c00;
}

#button-3 .knobs, #button-3 .knobs:before, #button-3 .layer
{
    transition: 0.3s ease all;
}

section{
    height: calc(100% - 270px);
   
    position: relative;
}

.section-center{
    text-align: center;
    color: #b1b1b1;
    width: 120px;
    height: 120px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -60px 0 0 -60px;
}

#numOfCities{
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
    font-family: "Open Sans",sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.466);
}

#spanOrange{
    color: #ff9800;
}

.cityContainer{
    width: 600px;
    font-size: 16px;
    color: rgb(45, 45, 45);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    padding: 1em;
    border-radius: 10px;
    background-color: rgb(247, 246, 246);
    box-shadow: rgba(0, 0, 0, 0.26) 0px 0px 5px;
    font-family: "Roboto", sans-serif;
}

#specialSup{
    position: relative;
    bottom: 4px;
    font-size: 11px;
}

sup{
    font-size: 10px; 
}

#aSection{
    display: flex;
    align-items: center;
}

#bSection{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f08b08;
    font-size: 20px;
}

#cSection{
    display: flex;
    justify-content: flex-end;
    align-self: center;
}

#weatherIcon{
    width: 40px;
    align-self: flex-end;
}

#dSection{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    height: 50px;
    position: relative;
    bottom: 15px;
    text-align: center;
    text-transform: capitalize;
}

.dataSpan{
    font-size: 13px;
}

.mapLink{
    display: block;
    width: 600px;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 26px;
    color: rgb(255, 166, 0);
}

#error{
    color: #e65100;
    margin-top: 11px;
    margin-bottom: -5px;
    font-size: 17px;
    display: none;
    font-family: "Hind", sans-serif;
}

footer{
    position: fixed;
    bottom: 0;
    padding: 10px;
    background-color: #e3e3e3;
    box-shadow: 0 -10px 15px #e3e3e3;
    width: 95%;
    font-family: "Roboto",sans-serif;
    font-size: 15px;
    word-spacing: 0.12em;
    color: rgba(0, 0, 0, 0.3);
}

#APIlink{
    color: rgba(0, 0, 0, 0.3);
}

#F{
    position: relative; 
    top: 9px; left: 21px; 
    color: rgb(255, 102, 0); 
    font-size: 19px; 
    z-index: 2; 
    width: fit-content
}

#C{
    position: relative; 
    top: 9px; left: -21px; 
    color: rgb(255, 102, 0); 
    font-size: 19px; 
    z-index: 2; 
    width: fit-content 
}

#smSun{
    position: relative;
    width: inherit;
    height: inherit;
}

#smilingFace{
    width: inherit;
    position: absolute;
    opacity: 0.1;
    left: 0px;
    top: 0px;
}

#rays{
    opacity: 0.1;
    width: inherit;
    position: absolute;
    left: 0px;
    top: 0px;
    /*animation: add 9.00s linear infinite;*/
}

@keyframes add{
    0%{transform: rotate(0deg)}
    100%{transform: rotate(360deg)}
}

#helpText{
    position: absolute;
    top: 70%;
    width: 100%;
    text-align: center;
    font-family: 'Roboto';
    font-size: 23px;
    color: rgb(0 0 0 / 0.2);
}

#loaderWrapper{
    margin: 60px auto 0 -30px;
    position: fixed;
    left: 50%;
    z-index: 1000;
}


#loader,
#loader:after {
  border-radius: 50%;
  width: 10em;
  height: 10em;
}
#loader {
    display: none;
    font-size: 6px;
    text-indent: -9999em;
    border-top: 1.6em solid rgb(243 239 239 / 90%);
    border-right: 1.6em solid rgba(243, 239, 239, 0.9);
    border-bottom: 1.6em solid rgba(243, 239, 239, 0.9);
    border-left: 1.6em solid #ff9800;
    box-shadow: inset 0 0 10px rgba(0,0,0,.24), 0 0 10px rgba(0,0,0,.21);
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 2.1s infinite linear;
}
@-webkit-keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load8 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes vanish {
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
    }
}

@keyframes appear {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

@media (max-width: 800px) {
    header input{
        width: 60%;
    }

    .cityContainer, .mapLink{
        width: 90%;
    }

    footer{
        padding: 5px;
        font-size: 13;
    }
}