
/* TITLE */

#title{
    color: white;
    text-decoration: none;
    width:min-content;
    float: left;
    transition: 0.4s;
}

#title:hover {
    color: #8c82fd;
}

h2 {
    color: white;
    font-size: 20px;
    padding-left: 40px;
}

body {
    background-color: #01001b;
}
/* NAVIGATION BAR */

.header {
    color: #f4f4f4;
    background-color: #01001b;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
    height: 120px;
    z-index: 100;
    position: relative;
}

.header h1{
    padding-left: 30px;
    padding-bottom: 15px;
    font-size: 60px;
    /* float: left; */
}

#navigationBar li{
    display: inline;
    float: right;
    padding-top: 25px;

    a{
        text-decoration: none;
        color: #ffffff;
        padding-right: 20px;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 5px;
        transition: 0.4s;
    }
    
    a:hover{
        background-color: #8c82fd;
        /* color: #01001b; */
        padding-right: 20px;
        padding-left: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        border-radius: 5px;
        box-sizing: border-box;    
    }
}


@media (max-width: 895px) {
    .nav1 {
        display: none;
    }
}

@media (max-width: 810px) {
    .nav2 {
        display: none;
    }
}

@media (max-width: 700px) {
    .nav3 {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav4 {
        display: none;
    }
}

@media (max-width: 600px) {
    #elections {
        display: none;
    }
}

@media (max-width: 860px) {
    #conflicts {
        display: none;
    }
}

@media (max-width: 1100px) {
    #records {
        display: none;
    }
}

@media (max-width: 1340px) {
    #mapping {
        display: none;
    }
}


/* MAP */

#hoverName {
    font: normal 15px 'SourceSans3';
    margin-top: 5px;
}

.legend-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: -15px;
}

.legend-container p {
    display: flex;
    align-items: center;
    margin: 0;
}

.legend-container span {
    display: inline-block;
    vertical-align: middle;
}

#map {
    height: 800px;
    width: 500px;
    flex-shrink: 0;
    flex-grow: 0;  
    align-content: auto;
}

#mapContainer {
    display: flex;
    gap: 20px; 
}

#textOne {
    width: calc(100vw - 670px);
}

#textTwo {
    width: calc(100vw - 670px);
    display: block;
}

#textThree {
    display: none;
}

#textFour {
    display: none;
}

@media (max-width: 910px) {
    #textOne {
        display: none;
    }
    #textThree {
        display: block;
    }
    #map {
        margin: 0 auto;    
    }
}

@media (max-width: 1200px) {
    #textTwo {
        display: none;
    }
    #textFour {
        display: block;
    }
}

.maplibregl-swipe {
    z-index: 1001 !important;
}

.maplibregl-swipe--vertical {
    cursor: ew-resize !important;
}

.btn {
    background-color: #01001b;
    color: #fffee2;
    transition: 0.2s;
    border: none;
    text-align: center;
    font: 15px 'SourceSans3';
    border-radius: 10%;
    margin-top: 4px; 
    margin-left: 4px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.clickedBtn {
        background-color: #8c82fd;
}

.btn:hover {
    background-color: #333169; 
    color: #fffee2;
}

.mappingBox {
    flex: 0 1 auto;
    width: 400px;
    height: 500px;
    background-color: #ffffff;
    border:0px #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    margin-bottom: 80px;
}

.mappingButton {
    width: 420px;
    height: 520px;
    background-color: #ffffff;
    border:0px #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    transition: 0.3s;
    padding: 5px 5px 1px 5px;
}

.mappingImage {
    width: 400px;
    height: 500px;
    background-color: #ffffff;
    border:0px #ccc;
    border-radius: 10px;
}

.mappingTile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-evenly;
    margin: 0 auto;
}

.mappingButton:hover {
    background-color: #988cff;
    opacity: 0.8;
    transition: 0.3s;
}


/* LEGEND */

.maplibregl-ctrl-legend {
    background: white;
    padding: 10px;
    border-radius: 4px;
    max-width: 200px;
    font-family: "SourceSans3";
}

.legend-header h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #2c2929;
    /* border-bottom: 1px solid #ccc; */
    /* padding-bottom: 5px; */
}

.legend-item {
    display: flex;
    align-items: center;
    /* margin-bottom: 5px; */
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #ffffff;
    border-radius: 2px;
}

.legend-label {
    font-size: 12px;
    color: #000000;
}

.centerHeader {
    text-align: center;
}

.box1{
    background-color: #ffffff;
    border:3px #ccc;
    border-radius: 10px;
    box-sizing: border-box;
    height:fit-content;
    padding-top: 40px;
    padding-bottom: 130px;
    padding-right: 5vw;
    padding-left: 5vw;
}

/* FOOTER */

footer{
    margin-bottom: -10px;
    text-align: center;
    color: rgb(255, 255, 255);
    padding-top: 10px;
    padding-bottom: 50px;
    z-index: 100;
    position: relative;
    background-color: #01001b;
    height: 140px;
    h3{
        transition: 0.4s;
    }
    p, h4 {
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

footer:hover {
    h3{
        color: #a9acff;
        transition: 0.4s;
    }
}

.footerLeft {
    width: 50%;
    float: left;
    padding-bottom: 40px;
    padding-left: 15%;
    p {
        font-size: 16px;
    }
}

#footerLabel{
    margin-top: -10px;
}


.footerRight {
    width: 20%;
    float: right;
    padding-top: 12px;
    padding-right: 15%;
    font-size: 16px;
    a {
        text-decoration: none;
        color: #ffffff;
        transition: 0.3s;
    }
    a:hover {
        color: #a9acff;
    }
}
