.navbar {
    background-color: #2f3445;
    min-height: 90px;
    padding: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

.navbar-brand {
    padding: 0.5rem;
}

.navbar-brand img {
    max-height: 80px;
    width: auto;
    display: block;
}

.navbar-collapse {
    justify-content: center;
}

.navbar-nav {
    align-items: center;
}
body {
    background-color: #1f2230;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.content {
    padding-top: 20px;
    max-width: 100%;
}

.top-cards-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: stretch;
    flex-wrap: wrap;
}

.card-chart {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    width: 70%;
    background-color: #2f3445;
    min-height: 200px;
}

.card-chart .card-body {
    flex-grow: 1;
}

.legend-controls-card {
    width: 100%;
    background-color: #2f3445;
    display: flex;
    flex-direction: column;
}

.legend-controls-card .card-header {
    background-color: #2f3445;
    text-align: center;
    padding: 15px 20px;
    border-bottom: 1px solid #404759;
}

.legend-controls-card .card-body {
    display: flex;
    gap: 30px;
    padding: 25px;
    align-items: stretch;
    min-height: 180px;
}

.legend-container {
    flex: 0 0 400px;
    background-color: #2f3445;
    border-radius: 8px;
    padding: 0;
    border: 1px solid #404759;
    overflow: hidden;
}

.legend-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
    border-radius: 8px;
    margin: 0;
    padding: 0;
}

.controls-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #2f3445;
    border-radius: 8px;
    border: 1px solid #404759;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    color: #e1e3e8;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-description {
    color: #9ca3af;
    font-size: 13px;
    margin-top: 5px;
    line-height: 1.4;
}

.controls-container select,
#selectRegimeType {
    background-color: #000;
    color: #fff;
    border: 1px solid #5c5c5c;
    padding: 8px 12px;
    font-family: Mulish, sans-serif;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
}

.controls-container select:focus,
#selectRegimeType:focus {
    outline: none;
    border-color: #ffffff;
}

.controls-container select option,
#selectRegimeType option {
    background: #2f3445;
    color: #fff;
}

@media (max-width: 968px) {
    .legend-controls-card .card-body {
        flex-direction: column;
        gap: 20px;
    }

    .legend-container {
        flex: none;
        order: 2;
    }

    .legend-container iframe {
        height: 120px;
    }

    .controls-container {
        flex: none;
        order: 1;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .legend-controls-card .card-body {
        padding: 20px 15px;
    }

    .controls-container {
        padding: 15px;
    }

    .controls-container select,
    #selectRegimeType {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .legend-container iframe {
        height: 100px;
    }

    .controls-container select {
        font-size: 13px;
        padding: 6px 10px;
    }

    .control-description {
        font-size: 12px;
    }
}

.axis path,
.axis line {
    fill: none;
    stroke: #ffffff;
    shape-rendering: crispEdges;
}

.axis text {
    font-size: 12px;
    fill: #ffffff;
}

rect {
    stroke: #444;
}

.cell {
    cursor: pointer;
}

.first-year {
    stroke: white !important;
    stroke-width: 1.5px;
}

.period-group rect {
    display: none;
}

.period-group text {
    fill: #ffffff;
    font-size: 12px;
    text-anchor: middle;
}

.decade-group text {
    fill: #ffffff;
    font-size: 12px;
    text-anchor: middle;
}

.controls {
    margin: 10px;
    padding: 10px;
    background-color: #444;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.controls select {
    background-color: #000;
    color: #fff;
    border: 1px solid #5c5c5c;
    padding: 6px 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
}

.controls select:focus {
    outline: none;
    border-color: #ffffff;
}

.controls select option {
    background: #2f3445;
    color: #fff;
}

.controls label {
    color: #ffffff;
    font-weight: bold;
    margin-right: 5px;
}

#backButton,
#toggleButton,
#viewToggleButton {
    background: linear-gradient(to right, #000000, #222222);
    color: white;
    border: 1px solid white;
    padding: 6px 12px;
    font-size: 14px;
    font-family: 'Mulish', sans-serif;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    cursor: pointer;
    border-radius: 4px;
    white-space: nowrap;
    width: auto;
}

#backButton:hover,
#toggleButton:hover,
#viewToggleButton:hover {
    background-color: #4662a0;
}

#heatmap {
    background-color: #1f2230;
    padding: o0px;
}

.btn-toolbar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;     /* stick buttons to the left */
    margin: 0;                   /* remove auto-centering */
    padding: 0;  
    align-self: self-start;
}


.btn-toolbar button {
    width: 100%;
}

.controls-buttons {
    flex: none;
    width: 100%;
    max-width: 280px;
    padding: 20px;
    background-color: #2f3445;
    border-radius: 8px;
    border: 1px solid #404759;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

}

