body {
    background-color: var(--background-color);
    color: white; /* White text */
    font: "Themundayfreeversion", sans-serif;
}

/******* Top photo and title *******/
.trek-banner {
    position: relative;
    width: 100vw;
    min-height: 250px;
    /* aspect-ratio: 5 / 2; */
    overflow: hidden;
}

.trek-banner img {
    width: 100%;
    height: 40vw;
    object-fit: cover; 
}

.empty-banner {
    height: 20vw;
}

.trek-title {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for centering */
    color: white;
    font-size: 3.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    font-family: 'HaveIdea', 'HeyAugust', cursive;
    z-index: 5; /* Ensure text is above the image */
}

/******* Trek details *******/
.trek-content {
    background-color: var(--background-color); /* Dark blue background */
    position: relative; /* For stacking context */
}

.stats-overview {
    display: flex;
    flex-direction: row; /* Default to column layout */
    position: relative; /* For stacking context */
    margin-bottom: 15px;
    padding-left: 2em;
    padding-right: 2em;
    gap: 2em;
}

.left-column {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-column {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-row {
    display: flex;
}

.full-row {
    display: flex;
    border-bottom: 0px solid #ccc; 
    justify-content: space-between;
    padding: 10px 0;
}

.indiv-value {
    font-family: var(--caps-font);
}

.indiv-value.align-right {
    display: flex;
    justify-content: flex-end;
    text-align: center;
}

.indiv-value.align-left {
    text-align: left;
}

.country-flag {
    height: 2em;
    width: auto;
    margin-right: 3px;
    vertical-align: middle;
    border: 1px solid rgba(202, 202, 202, 0.132); 
}

.row-part-one {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ccccccc7 ; 
}

.row-part-two {
    flex: 0.3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-left: 0.25em;
    border-bottom: 1px solid var(--secondary-color);
}

.stat-label {
    color: rgb(202, 202, 202);
    display: flex;
    font-family: var(--caps-font);
    font-weight: bold;
    font-size: 1.1em;
}

.stat-value {
    color: rgb(202, 202, 202);
    margin-right: 0.25em;
    font-family: var(--caps-font);
}

.actual-value {
    font-size: 1.1em;
    padding-right: 0.25em;
    font-family: var(--digits-font);
}
.metrics {
    font-size: 0.9em;
    opacity: 0.55;
}

.title.my-stat {
    font-weight: bold;
    text-align: left;
    font-family: var(--caps-font);
    padding-left: 0.5em;
}

.indiv-value.indiv-value.align-right.default-stat {
    color: rgb(202, 202, 202);
}

.my-stat {
    color: var(--secondary-color);
    padding-left: 0.25em;
}

.stat-label.good-month {
    color: rgb(200, 200, 200);
}

.stat-label.maybe-month {
    color: rgba(200, 200, 200, 0.441);
}

.stat-label.bad-month {
    color: rgba(200, 200, 200, 0.123);
}

.description {
    font-size: 1em;
    line-height: 1.5;
    font-family: var(--text-font);
}

.my-description {
    margin-top: 0px;
    color: var(--secondary-color);
}

.horizontal-line {
    height: 6px;
    background-color: var(--secondary-color);
    border: 0;
    opacity: 0.1;
    margin: 1em 0;
}

.score-icon {
    height: 22px;
    width: auto;
    filter: invert(1);
}

/* Scores section styling */
.scores-container {
    margin: 20px 0;
}

.scores-border {
    position: relative;
    border: 1.5px solid var(--secondary-color);
    border-radius: 8px;
    padding: 7px 5px 7px 5px;
    margin-top: 5px;
}

.scores-title {
    position: absolute;
    top: -0.8em;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--background-color);
    padding: 0 10px;
    color: var(--secondary-color);
    font-family: var(--caps-font);
    font-weight: bold;
    font-size: 1.2em;
}

.scores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-content: space-evenly;
}

.scores-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.scores-label {
    color: rgb(202, 202, 202);
    font-family: var(--caps-font);
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: bold;
}

.scores-icons {
    display: flex;
    gap: 3px;
    justify-content: center;
}

.scores-icons .score-icon {
    height: 20px;
    width: auto;
    filter: invert(1);
    opacity: 0.75;
}

/****** Getting there ******/
.access-and-overnight {
    gap: 2em;
}

.access-overnight-single-container {
    display: flex;
    align-items: center;
    gap: 2em;
}

.practical-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    justify-content: center;
    color: var(--secondary-color);
    font-family: var(--text-font);
    font-size: 1.9em;
    margin: 0;
    line-height: 1;
}

.route-row {
    padding: 2px 0;
    border-bottom: 1px solid rgba(204, 204, 204, 0.173) ; 
}

.route-row:last-child {
    border-bottom: none;
}

.route-icon {
    max-width: 4em;
    max-height: 4em;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8;
}

.route-place {
    font-family: var(--caps-font);
    color: var(--secondary-color);
}

.or {
    margin: 0 5px;
}

.route-place.final-place {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    font-family: "Cymbria", cursive;    
}

.arrow-sign {
    color: var(--secondary-color);
    margin: 0 5px;
}


.overnight-content {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.overnight-text {
    margin-left: 1em;
    color: var(--secondary-color);
    font-family: var(--text-font);
    line-height: 1.5;
}

.overnight-row {
    display: flex;
    align-items: center;
}

.overnight-icons {
    display: flex;
    gap: 0.2em;
}

.overnight-icon {
    width: 5em;
    height: 5em;
    opacity: 0.8;
}

.altitude-my-part {
    white-space: nowrap;
}

@media (orientation: portrait) {
    .trek-banner img {
        width: 100%;
        height: 60vh;
        object-fit: cover; 
    }
}

@media (max-width: 1200px) {
    .month-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
}

@media (max-width: 900px) {
    .stats-overview {
        flex-direction: column; 
        font-size: 0.7rem;
    }
    .month-row {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 5px;
    }
}

@media (max-width: 800px) {
    .altitude-my-stat {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 600px) {
    .trek-title {
        font-size: 3rem;
    }
    .stats-overview {
        flex-direction: column; 
        font-size: 0.8rem;
    }
    .row-part-two {
        flex:0.35;
    }
    .access-overnight-single-container {
        gap: 1em;
    }
    .route-icon {
        max-width: 2.5em;
        max-height: 2.5em;
    }
    .overnight-icon {
        width: 3.5em;
        height: 3.5em;
    }
    .route-place.final-place {
        font-size: 0.9em;
    }
    .arrow-sign {
        margin: 0 3px;
    }
    .or {
        margin: 0 3px;
    }
    
    .scores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .month-row {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 5px;
    }
}