/* NEWS MODAL */
#errormessage {
    width: 100%;
    align-items: center;
    height: 100%;
    display: flex;
}

#ex-para {
    margin: 0px;
    padding: 0px;
    height: fit-content;
}

#newserrmsg {
    font-size: 20px;
    margin: 0 auto;
    font-weight: 400;
    color: dimgrey;
}

.webcamdiv {
    width: 300px;
    height: auto;
}

.webcam-img{
    width: 100%;
    height: auto
}

#news-modal-body{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}

.news-item {
    height: 217px;
    width: 40%;
    margin: 12px;
    display: block;
    border-bottom: 1px solid;
    border-bottom-color: darkcyan;
}
.news-title {
    font-weight: 500;
    
}
.news-img {
    height: 76px;
    border-radius: 12px;
}
.news-source{
    font-weight: 100;
    bottom: 0;
    padding: 7px;
    text-decoration: none;
    display: block;
}

#covid-btn {
    height: 80%;
    width: 80%;
    vertical-align: baseline;
    padding-top: 7px;
}

#notification {
    height: 15px;
    width: 15px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    right: -7px;
    top: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notif-counter {
    padding: 0;
    margin: 0;
    color: white;
    font-size: 12px;
    font-family: sans-serif;
    font-weight: bolder;
}

/* .leaflet-popup-content {
    width: fit-content;
} */

/* .expanded {
    width: 200px;
} */

.city-div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.city-btn-span {
    padding: 5px;
    margin: 5px;
}

.city-name {
    border-style: none;
    background-color: lightgray;
    border-radius: 12px;
    margin: 5px;
    font-size: 20px;
}

#weather-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.black-filter {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(268deg) brightness(0%) contrast(101%);
}

.blue-filter {
    filter: invert(98%) sepia(59%) saturate(7493%) hue-rotate(355deg) brightness(107%) contrast(103%);
}

.modal-header {
    z-index: 10000;
}

#weatherChart {
    padding-top: 5px;
    width: 100%;
    max-width: 396px;
    height: 0px;
    float: left;
    padding-bottom: 16px;
    color: white;
}

#celsius {
    color: white;
}

#current-temperature {
    color: white;
}

#body {
    /* position: absolute; */
    padding: 1rem;
    height: 228px;
    margin: 0;
    overflow: hidden;
}
#forecast-body {
    padding: 1rem;
    height: 228px;
    /* background-color:  */
    display: flex;
    justify-content: center;
}

#contianer {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

.rain {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.rain.back-row {
    display: none;
    z-index: 4;
    bottom: 60px;
    opacity: 0.5;
}

body.back-row-toggle .rain.back-row {
    display: block;
}

.drop {
    position: absolute;
    bottom: 100%;
    width: 15px;
    height: 120px;
    pointer-events: none;
    animation: drop 0.5s linear infinite;
}

@keyframes drop {
    0% {
        transform: translateY(0vh);
    }
    75% {
        transform: translateY(90vh);
    }
    100% {
        transform: translateY(90vh);
    }
}

.stem {
    width: 1px;
    height: 60%;
    margin-left: 7px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.25));
    animation: stem 0.5s linear infinite;
}

@keyframes stem {
    0% {
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    75% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.splat {
    width: 15px;
    height: 10px;
    border-top: 2px dotted rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    opacity: 1;
    transform: scale(0);
    animation: splat 0.5s linear infinite;
    display: none;
}

body.splat-toggle .splat {
    display: block;
}

@keyframes splat {
    0% {
        opacity: 1;
        transform: scale(0);
    }
    80% {
        opacity: 1;
        transform: scale(0);
    }
    90% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

/* RAIN EXPERIMENT END */

.country-select {
    width: 200px;
    margin: 0 auto;
    position: relative;
}

.info-category {
    font-weight: bold;
    display: block;
}

#real-navbar {
    display: none;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    width: 100%;
    z-index: 3;
}

#nav-bar {
    display: none;
    background-color: #435757c7;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    width: 100%;
    border-bottom: solid rgba(128, 128, 128, 0.432);
    z-index: 2;
    opacity: 0;
}

#flag-div {
    float: right;
    width: 200px;
}

.country-flag {
    width: 200px;
    max-height: 137px;
    position: fixed;
    border: 5px solid;
}

#weather-modal-header {
    z-index: 10;
    overflow: hidden;
}

.btn-close {
    z-index: 10;
}
#weather-modal-label {
    z-index: 10;
}

.webcam-footer-paragraph {
    color: grey;
    font-size: 10px;
}

.weather-icon {
    margin: 0;
    padding: 0;
}

.grayed-out {
    color: gray;
}

#weather {
    background-color: transparent;
    position: absolute;
    top: 20px;
    justify-content: center;
    /* z-index: 6; */
}

#weather-header-div p {
    font-size: 18px;
    color: rgb(255, 255, 255);
    background-color: transparent;
    width: 100%;
    text-align: center;
}

#weather-content-div {
    background-color: transparent;
    display: flex;
    align-items: center;
}

#weather-details-div {
    background-color: transparent;
    margin: 0;
    padding: 0 0 0 20px;
    flex-direction: column;
    line-height: inherit;
    display: flex;
    align-items: baseline;
}

#current-weather {
    color: white;
    background-color: transparent;
    /* z-index: 6; */
    font-size: 14px;
    padding: 0;
    margin: 0;
}
#current-wind {
    color: white;
    background-color: transparent;
    /* z-index: 6; */
    font-size: 14px;
    padding: 0;
    margin: 0;

}
#current-humidity {
    color: white;
    background-color: transparent;
    /* z-index: 6; */
    font-size: 14px;
    padding: 0;
    margin: 0;
}

.unit {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

.temp {
    font-size: 32px;
}

h2 {
    font-size: 13px;
}

.degrees {
    font-size: 20px;
}

.current-weather-display {
    display: inline-flex;
}

#map {
    position: absolute;
    /* top: 65px; */
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.reference {
    font-size: 10px;
}

.information {
    padding: 16px;
    margin: 5px auto;
}

.wiki-image {
    float: right;
}

.modal-title {
    font-weight: bold;
}

.settings-btn {
    font-size: 1.5em;
    padding: 0;
    margin: 0 auto;
}

.modal-body {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow-y: scroll;
    list-style: none;
    height: 50vh;
}

.modal-body h1 {
    font-size: 18px;
    font-weight: bold;
    padding-bottom: 10px;
}

.modal-body p, a {
    font-size: 12px;
}

#loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 2s linear infinite;
}

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

#spinner {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

#full-page-spinner {
    border: 30px solid #3455db;
    border-top: 30px solid #17dc45;
    border-bottom: 30px solid #17dc45;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    animation: loading 2s linear infinite;
    margin: auto;
}


@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


#country-list-results button {
    padding: 15px;
    margin: 0 auto;
    text-align: center;
    font-size: 20px;
    width: 100%;
    font-weight: bold;
    border: none;
    background-color: transparent;
}

.marker-header {
    font-size: 16px;
}

.animate-switch {
    background-color: blue;
    animation: slide-in 5s;
}

.switch-out {
    animation: slide-out 0.5s;
}

.behind {
    z-index: -4;
    margin: 0;
    padding: 0;
    height: 0;
    width: 0;
}

@keyframes slide-out {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(100%);
    }
}

@keyframes slide-in {
    from {
        transform: translateY(50%)
    }
    to {
        transform: translateY(20%);
    }
}

.time{
    display: block;
    color: white;
    z-index: 30;
}

#current-time {
    z-index: 30;
}
#sun-set {
    z-index: 30;
}
#sun-rise {
    z-index: 30
}

#current-time :hover {
    font-size: 14px;
    cursor: pointer;
}
#sun-set :hover {
    font-size: 14px;
    cursor: pointer;
}
#sun-rise :hover {
    font-size: 14px;
    cursor: pointer;
}

#forecast-btn-div {
    top: 35%;
    position: absolute;
    background-color: transparent;
    height: 50%;
    width: 25%;
    right: 10%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* #forecast-btn {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    width: 50%;
    height: 50%;
    background-color: transparent;
    color: white;
    background-image: url("data:image/svg+xml, %3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: 1px solid orange;
    border-radius: 0.25rem;
    display: block;
    z-index: 11;
} */

/* #forecast-btn button:hover {
    background-color: orange;
    color: black;
} */

#current-weather-btn-div {
    position: absolute;
    background-color: transparent;
    height: 50%;
    width: 50%;
    right: 10%;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: flex-end;
    flex-direction: column;
}
#current-weather-btn {
    padding: 5px, 5px;
    height: 20;
    background-color: transparent;
    color: white;
    border: 1px solid orange;
    border-radius: 0.25rem;
    display: block;
    z-index: 0;
    position: absolute;
    top: 0;
    right: 0;
}

/*EXCHANGE MODAL*/

.grayed-out-exchange {
    color: gray;
    font-size: 0.7rem;
}

.exrated {
    font-weight: 500;
    font-size: 2rem;
    margin: 0;
    padding: 0px;
}

#exchange-settings-div {
    display: flex;
    background-color: transparent;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#exchange-header {
    font-size: 15px;
    font-weight: 400;
    color: darkcyan;
}

#exchange-rate {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

#exchange-results-body {
    display: flex;
    width: 100%;
    padding: 0;
    margin: 0;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

#exchangeChart {
    width: 100%;
    max-width: 400px;
    max-height: 200px;
    margin: 0 auto;
}

#country-ex-info-div {
    float: left;
}
#top-exchange-div {
    width: 100%;
}

.country-select-currency {
    width: 200px;
    height: fit-content;
}

#chart-div {
    align-items: center;
    width: 100%;
    position: relative;
    display: flex;
    padding: 16px;
    flex-direction: column;
}

#exchange-comparison {
    width: 200px;
    height: fit-content;
}


/* COVID MODAL */
#covid-errormessage {
    width: 100%;
    align-items: center;
    height: 100%;
    display: flex;
}
#covid-errmsg {
    font-size: 20px;
    margin: 0 auto;
    font-weight: 400;
    color: dimgrey;
}

#covid-modal-body{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    height: fit-content;
}

#covid-header-div {
    display: flex;
    width: 100%;
    border-bottom: 1px solid;
    border-bottom-color: darkcyan;
    align-items: center;
    justify-content: space-around;
}

#covid-flag {
    height: 59px;
    margin-bottom: 14px;
    border: 1px solid black;
}

#covid-country-name {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    margin-bottom: 14px;
}

.covid-info-box-div {
    background-color: transparent;
    height: 115px;
    width: 33%;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
}

p.covid-info-header {
    margin-left: 5px;
    font-size: 11px;
    margin-bottom: 0px;
}
p.covid-figure {
    margin-left: 5px;
    font-size: 23px;
    font-weight: 400;
    margin-bottom: 0px;
}
p.covid-info-subheader {
    font-size: 11px;
    margin-left: 5px;
    margin-bottom: 0px;
}
#covid-content-div {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: flex-start;
    align-items: center;
}

#results-body{
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-between;
    height: fit-content;
}

#news-header-div {
    display: flex;
    width: 100%;
    border-bottom: 1px solid;
    border-bottom-color: darkcyan;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 16px;
}

#news-country-flag{
    height: 59px;
    margin-bottom: 14px;
    border: 1px solid black;
}
#news-country-name{
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    margin-bottom: 14px;
}

#general-header-div {
    display: flex;
    width: 100%;
    border-bottom: 1px solid;
    border-bottom-color: darkcyan;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 16px;
}

#general-country-flag {
    height: 59px;
    margin-bottom: 14px;
    border: 1px solid black;
}

#general-country-name {
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    margin-bottom: 14px;
}

#exchange-header-div {
    display: flex;
    width: 100%;
    border-bottom: 1px solid;
    border-bottom-color: darkcyan;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 16px;
}

#exchange-country-flag{
    height: 59px;
    margin-bottom: 14px;
    border: 1px solid black;
}
#exchange-country-name{
    font-size: 24px;
    font-weight: 300;
    margin: 0;
    padding: 0;
    margin-bottom: 14px;
}


.general-info-category {
    font-weight: bold
}

#general-errormessage {
    width: 100%;
    align-items: center;
    height: 100%;
    display: flex;
}

#general-errmsg {
    font-size: 20px;
    margin: 0 auto;
    font-weight: 400;
    color: dimgrey;
}

@media(max-width: 480px) {
    .modal-body {
        max-height: 50vh !important;
    }
    .querymodal {
        position: flex;
        top: 12.5%;
    }
    .country-flag {
        width: 100px;
    }
    .weather-icon {
        width: 60px;
        height: 60px;
    }
    #full-page-spinner {
        padding-top: 40px
    }
    .covid-info-box-div {
        width: 50%;
        border-bottom: 1px solid darkcyan;
    }
    #forecast-btn-div {
        right: 2%
    }
    #weather-content-div {
        margin-top: 37px;
    }
    #weather {
        left: 1%;
    }
    #chart-div {
        padding: 0px;
    }
    #ex-para {
        margin-top: 10px;
        margin-bottom: 1rem;
    }
    .country-select-currency{
        width: fit-content;
    }
    .news-item {
        height: 240px;
        width: 45%;
        margin: 7px;
        display: block;
        border-bottom: 1px solid;
        border-bottom-color: darkcyan;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}