* {
    font-family: 'Montserrat', sans-serif;
}

#map {
    height: 100%;
    width: 100%;
}

html,
body {
    margin: 0;
    padding: 0;
}

.main-page {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#descP{
    width: 90%;
    text-align: center;
}

.attribute{
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-width: 1px;
    border-color: black;
    border-style: solid;
}

.pAttribute{
    padding: 10px
}

@media screen and (max-height: 900px) {
    #DButton {
        white-space: nowrap;
    }
}

@media screen and (min-height: 900px) {
    #DButton {
        white-space: wrap;
    }
}

#descBox{
    justify-content: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    width: 100%;
    
}

.selectorButton:hover{
    scale: 1.05;
}

.selectorButton {
    margin-top: 10px;
    font-size: x-large;
    margin-bottom: 10px;
    border-radius: 10px;
}

@media screen and (max-height: 900px) {
    .NavBar {
        height: 9%;
    }
}

@media screen and (min-height: 900px) {
    .NavBar {
        height: auto;
    }
}

.NavBar {
    width: 100%;
    height: 9%;
    background-color: #e1aeae;
    border: 2px solid #333;
    box-shadow: 0 2px 5px rgba(250, 242, 242, 0.2);
    text-align: center;
    display: flex;
    align-items: center;
    color: rgb(20, 10, 10);
    font-size: 1.2em;

}

.iWrapper{
    display: flex;
    justify-content: center;
    width: 10%;
}

.title {
    display: flex;
    width: 80%;
    justify-content: center;
}

@media screen and (max-width: 1000px) {
    .title {
        margin-left: 5%;
    }
}

.popupIContainer {
    border-radius: 10px;
    transform: translate(-50%, -50%);
    display: block;
    position: fixed;
    background-color: #f3fcaf;
    text-align: center;
    left: 50%;
    top: 50%;
    z-index: 1000;
    width: 30%;
    height: 35%;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid black;
    overflow: auto; /* Enables scrolling */
    max-height: 80%; 
    max-width: 90%; 
    
}

.popupText {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 2%;
}


.MSOA-Overlay {
    width: auto;
    height: auto;
    white-space: nowrap;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    transition: transform 0.3s ease;
}

@media screen and (max-width: 1200px) {
    #citySelector {
        width: 150px;
    }
}

@media screen and (min-width: 1200px) {
    #citySelector {
        width: 10%;
    }
}

#citySelector {
    font-size: large;
    margin-left: 10px;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #f9f9f9;
    color: #333;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

#citySelector:focus {
    outline: none;
    border-color: #007BFF;
    /* Change border color on focus */
}


.MSOA-Overlay:hover {
    transform: scale(1.05);
}

.Additional-Overlay {
    margin-top: 10%;
    width: auto;
    height: auto;
    white-space: nowrap;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    transition: transform 0.3s ease;
}

.Additional-Overlay:hover {
    transform: scale(1.05);
}

#CQILegend{
    width: auto;
    height: auto;
    white-space: nowrap;
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #333;
    transition: transform 0.3s ease;
}

.CQILegendBox{
    display: inline-block; 
    width: 20px; 
    height: 20px;
}

.CQILegendList{
    list-style-type: none;
    padding: 0;
    margin: 0; 
}