#nav_logo {
    font-family: "Open Sans";
    width: 60%;
    margin-right: 5%;
}

#language-switcher {
    margin: 10px;
    border: none;
    background-color: #fff;
}

.partner_logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
}

.partner_logos a {
    width: 50%;
    padding: 40px;
    min-height: 50px;
}

#news_section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.news_item {
    width: 100%;
    background-color: #fff;
    color: #000000;
    font-size: 16pt;
    transition: 0.7s;
    padding: 25px;
}

.news_item div {
    width: 100%;
    aspect-ratio: 3 / 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.news_item h4 {
    text-align: left;
}

.news_img {
    object-fit: contain;
    max-height: 100%;
    max-width: 100%;
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3001; /* Sit on top */
    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/Box */
.modal_content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 2.5%;
    border: 1px solid #888;
    width: 65%; /* Could be more or less, depending on screen size */
}

.modal_img_wrapper {
    display: flex;
    justify-content: center;
}

.modal_news_img {
    width: 60%;
    margin-bottom: 10px;
}

.news_btn:hover,
.news_btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
    background-color: white;
    opacity: 0.6;
}

/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}  

.modal_text {
    text-align: justify;
    line-height: normal;
    font-size: 18px;
}

#more_news {
    margin: 20px;
    padding: 10px;
}

.more_items_wrapper {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 50px;
    column-gap: 5%;
    overflow-wrap: break-word;
    /*grid-template-rows: masonry;*/
}
.btn-secondary {
    background-color: #84aab0;
}

.btn-secondary:hover {
    background-color: #6c8793;
}


.drought_btn_container {
    flex-direction: row;
    width: 100%;
}

.drought_btn_group {
    flex-direction: column;
    width: 100%;
}

#btn-group-wildfire {
    display: grid;
    grid-template:
    "fwi dfmc dfmc dfmc dfmc" 40px
    "fwi 1h 10h 100h 1000h" 40px / 2fr 1fr 1fr 1fr 1fr;;
}

#btn-fire_spread {grid-area: fwi;}
#btn-fuel_moisture {grid-area: dfmc;}

.product_switch div {
    background-color: #84aab0;
    border-color: #6c757d;
    color: #fff;
}

.download_btn {
    font-size: 22pt;
    color: #758887;
}

.download_btn:hover {
    color: #84aab0;
}

.product_desc {
    text-align: justify;
    font-size: 10pt;
    line-height: 1.5;
    margin-top: 10px;
}

#partners_overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

#map {
    min-height: 300px;
    width: 30%;
    aspect-ratio: 3 / 4;
    background-color: #94bec4;
}

.popupContent {
    min-width: 150px;
    min-height: 100px;
    line-height: 1.5;
}

#windy {
    width: 100%;
    min-height: 650px;
}

.leaflet-map-pane {
    z-index: 0
}

/* Styling for map style toggle */
.toggle-container {
    width:fit-content;
    position: fixed;
    top: 40%;
    left: 85%;
    z-index: 3001;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: fixed rgba(132, 170, 176, 0.9);
    color:#fff;
    border: 0.5px solid #6c757d;
    border-radius: .25rem;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: background-color 0.3s;
}

.slider::before {
    content: "";
    height: 20px;
    width: 20px;
    position: absolute;
    left: 3px;
    bottom: 2.5px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

input:checked + .slider {
    background-color: #4caf50;
}

input:checked + .slider::before {
    transform: translateX(24px);
}


@media (min-width: 992px) {
	.drought_btn_group {
		flex-direction: row;
	}

    .partner_logos a {
        width: 25%;
        padding: 5%;
    }

    .news_item {
        padding: 10px;
    }

    .more_items_wrapper {
        grid-template-columns: 47.5% 47.5%;
    }
}

@media (max-width: 767px) {
    #nav_logo {
        width: 85%;
        margin-right: 0%;
    }

    #partners_overview {
        flex-direction: column;
    }

    #project_link {
        width: 100%;
    }

    #map {
        width: 70%;
    }

    .modal_content {
        width: 80%;
    }
}