html, body, #cesiumContainer {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

button {
    color: #111;
    background-color: #f1f1f1;
}
button:hover {
    background-color: #3066be;
}


#loadingScreen {
    position: fixed;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
    flex-direction: column;
}

#loadingScreen img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

#loadingScreen p {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    color: #333;
}

#infoBox {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    max-height: 80vh;
    word-wrap: break-word;
    font-family: 'Arial', sans-serif;
    transition: transform 0.3s, max-height 0.3s;
    color: #333;
    position: absolute;
    top: 130px;
    right: 10px;
    margin: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#infoBox:hover {
    transform: scale(1.05);
    max-height: 85vh;
}

#infoBox strong {
    display: block;
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}

#infoBox span {
    font-size: 14px;
    color: #000;
}

#infoBox .info-content {
    flex: 1;
    overflow-y: auto;
}

#sideNav {
    height: 50%;
    width: 10%;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #0a0a0a00;
    padding-top: 20px;
    overflow-x: hidden;
    transition: 0.5s;
    
}

#sideNav a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

#sideNav a:hover {
    color: #3066be;
}

#sideNav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}

#controls {
    margin-top: 50px;
}

#controls label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

#controls input[type="radio"] {
    accent-color: #444;
}

#reset {
    display: block;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 14px;
    color: #fff;
    background-color: lightgrey;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#reset:hover {
    background-color: #3066be;
}

#searchContainer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

#searchContainer input {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

#searchContainer input:focus {
    border-color: #888;
    outline: none;
}

#searchContainer button {
    padding: 8px 15px;
    font-size: 14px;
    background-color: lightgrey;
    border: none;
    border-radius: 5px;
    color: black;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    
}

#searchContainer button:hover {
    background-color: #3066be;
    /* transform: scale(1.05); */
}

#searchContainer button:active {
    background-color: #388e3c;
}

#legendContainer {
    position: absolute;
    bottom: 40px;
    right: 10px;
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: hsl(0, 0%, 99%);
    border: 1px solid hsl(0, 1%, 58%);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #0a0a0a;
    z-index: 1000;
}

#rankingsToggle {
    padding: 8px 15px;
    font-size: 14px;
    background-color: rgb(214, 5, 5);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#rankingsToggle:hover {
    background-color: rgb(156, 21, 21);
    /* transform: scale(1.05); */
}

#rankingsToggle:active {
    background-color: #d61233;
}

#topBottomInfoBox {
    position: absolute;
    bottom: 90px;
    right: 10px;
    padding: 15px;
    background-color: rgba(228, 66, 66, 0.9);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: black;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
    display: none;
}

#openNavBtn {
    position: fixed;
    width: 2%;
    top: 10px;
    left: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #111;
    background-color: #f1f1f1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    z-index: 2;
}