body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: 'Noto Serif', serif;
}

#big-container {
    margin: 0 auto 0;
    padding: 0%;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    justify-content: space-between;
    align-items: center;
    max-width: 98%;
    margin: 1% .5% 0;
}

#small-container {
    flex-basis: 85%;
    max-height: 85%;
    margin: 1% auto 0;
    padding: .5%;
    width: 90vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    flex-shrink: 1;
}


#map {
    border-style: solid;
    border-width: .1em;
    flex-basis: 90%;
    align-self: center;
    width: 80%;
    margin: 2% auto 1%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.471), 0 6px 20px 0 rgba(0, 0, 0, 0.509);
    border-radius: 2px;
    flex-shrink: 1;
}


#legend {

    width: 80%;
    flex-basis: 8%;
    max-height: 8%;
    margin: 1.25% .5% 0;
    background-color: rgba(162, 162, 162, 0.144);
    border: .09em solid #0c2c846d;
    border-radius: 5px;
    align-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    text-shadow: 2px 2px 5px rgb(211, 211, 211);
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.471), 0 6px 20px 0 rgba(0, 0, 0, 0.509); */
}

#legend-gradient {
    max-width: 100%;
    height: 40%;
    background: linear-gradient(to right, #ffffcc, #c7e9b4 20%, #7fcdbb 40%, #41b6c4 60%, #0c2c84);
    margin: auto;
    flex-basis: 60%;
    border: 2.5px solid;


}

.legend-text-left {
    font-size: .85em;
    padding: 2px;
    flex-basis: 20%;
    text-align: center;


}

.legend-text-right {
    font-size: .85em;
    padding: 2px;
    flex-basis: 20%;
    text-align: center;
}


#toggle-id {
    width: 20%;
    max-width: 100%;
    flex-basis: 2%;
    margin: 1% auto 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-shadow: -1px -1px 2px rgba(0, 0, 0, 0.815), -1px 1px 2px rgba(0, 0, 0, 0.815), 1px -1px 2px rgba(0, 0, 0, 0.815), 1px 1px 2px rgba(0, 0, 0, 0.815);
    color: #ffffff;
}

#toggle-text {
    margin: .5% auto 0;
    font-weight: 600;
    text-align: center;
    flex-basis: 3%;
}


.switch {
    position: relative;
    display: inline-block;
    width: 2.5rem;
    height: 1.416rem;
}

/* 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: 1.083rem;
    width: 1.083rem;
    left: .166rem;
    bottom: .166rem;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #0D2F85;
}

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

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

.underlined {
    text-decoration: underline #0D2F85 3px;
    text-shadow: 2px 2px 5px rgb(211, 211, 211);
}

#the-info {
    flex-basis: 10%;
    align-self: center;
    width: 98%;
    margin: 0 auto 0;
    padding: 0;
    /* flex-shrink: 1; */
    max-width: 100%;
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.471), 0 6px 20px 0 rgba(0, 0, 0, 0.509); */
    border-radius: 2px;
    font-size: .8em;
}

.p-text {
    border-width: .1em;
    align-self: center;
    width: 100%;
    max-width: 95%;
    padding: 0%;
    margin: 0;
}

#footer-container {
    flex-basis: 5%;
    box-shadow: -2px -2px 6px 1px rgba(47, 47, 47, 0.836);
    display: flex;
    background-color: #010611ef;
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    font-size: .8em;
    left: 0;
    bottom: 0;
}

.p-footer {
    color: rgb(255, 251, 251);
    flex-basis: 30%;
    /* padding: .5%; */
    margin: auto;
    width: 100%;
    text-align: center;
    border-right: .5px solid rgba(0, 0, 0, 0.815);
    border-left: .5px solid rgba(0, 0, 0, 0.815);
    align-items: center;
}

.p-footer a {
    color: rgb(255, 251, 251);
}



@media screen and (max-height: 700px),
        screen and (max-width: 820px) {
    #small-container {
        flex-basis: 80%;
    }

    #map {
        flex-basis: 80%;
        min-height: 70%;

    }

    #toggle-id {
        flex-basis: 1%;
        /* max-height: 5%; */
        margin: 1% auto 0;
    }

    #toggle-text {
        flex-basis: 1%;
        max-height: 4%;
        flex-basis: 2%;
        width: 100%;
        font-size: .9em;
    }

    #legend {
        flex-basis: 10%;
        max-height: 15%;
        width: 100%;
        margin: 1% auto 0;
    }
/* 
    #the-info {
        border: 1rem;
        max-height: 10%;
    } */

    #footer-container {
        font-size: .8em;
    }
}

button {
    padding: 5px 5px;
    font-size: 0.8em;
    font-weight: bolder;
    border: 2px solid rgba(244, 244, 244, 0.2);
    background: rgba(100, 100, 100, 0.9);
    color: rgba(253, 253, 253, 0.924);
    /* box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); */
    /* border-radius: 5px; */
    z-index: 9999;
    cursor: pointer;
    flex-basis: 2%;
    margin: 2% auto;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 15px;
    border: 1px solid #888;
    width: 80%;
    z-index: 999;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

