
@charset "utf-8";

/* General page styling */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: rgb(246, 247, 250);
    font-family: Arial, sans-serif;
}

/* Header and navigation */
header {
    background-color: rgb(5, 4, 57);
    padding: 20px 50px 20px 20px;
    text-align: right;
    font-weight: bold;
    color: rgb(223, 197, 52);
    border-bottom: 2px solid black;
}

header h2 {
    font-family: "Arial Black", Arial, sans-serif;
}

header nav {
    border-top: 1px solid rgb(223, 197, 52);
    padding-top: 15px;
}

/* Distributes navigation links evenly across the header */
header nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
}

header nav a {
    color: rgb(223, 197, 52);
    text-decoration: none;
    display: block;
    font-size: 12px;
}

/* Main content layout */
main {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Trail image and map layout */
.trail-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.trail-images figure {
    margin: 0;
    min-width: 0;
}

.trail-images img {
    display: block;
    width: 100%;
    height: 450px;
    border: 2px solid rgb(16, 7, 89);
    border-radius: 10px;
}

/* Trail title styling */
#trail-name {
    font-family: 'Avenir Next', Avenir, sans-serif;
    color: rgb(67, 100, 236);
    -webkit-text-stroke: 1.5px rgb(9, 9, 97);
    letter-spacing: 2px;
    border-bottom: 2px solid rgb(197, 199, 247);
}

/* Two-column layout for trail details and booking */
#hikeMain {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding-top: 10px;
}

.hikeInfo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hikeInfo li {
    padding: 12px;
    border-bottom: 1px solid rgb(197, 199, 247);
    font-size: 16px;
    line-height: 1.5;
}

/* Notes styling */
.notes{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.notes textarea{
    width: 80%;
    min-height: 100px;
    padding: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    resize: vertical;
}

.notes-buttons{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* Shared styling for both booking buttons */
#favorites, #addNotes {
    font-size: 18px;
    font-weight: bold;
    padding: 12px 25px;
    margin-bottom: 20px;
    border: 2px solid black;
    border-radius: 8px;
    cursor: pointer;
}

/* Individual button colors */
#favorites {
    background-color: rgb(8, 17, 72);
    color: white;
    transition: transform 0.15s;
}

#favorites:hover {
    background-color: rgb(17, 34, 141);
}

#favorites:active {
    transform: scale(0.9);
}

#addNotes {
    transition: transform 0.15s;
}

#addNotes:hover {
    background-color: rgb(216, 195, 59);
}

#addNotes:active {
    transform: scale(0.9);
}

/* Weather feature */
#trailWeather {
    width: 80%;
    box-sizing: border-box;
    margin-top: 0px;
    background-color: rgb(5, 4, 57);
    color: white;
    padding: 10px;
    border-radius: 15px;
}

#weather-headers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

#weather-headers h2,
#weather-headers h3 {
    margin: 0 0 15px 0;
    color: rgb(216, 195, 59);
    padding-left: 10px;
    padding-right: 10px;
}


#forecast {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.weather-card {
    flex: 0 0 140px;
    border: 1px solid rgb(216, 195, 59);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.weather-card h4 {
    color: rgb(223, 197, 52);
}

.weather-card p {
    margin: 5px 0;
    padding-bottom: 10px;
}

/* Footer styling */
footer {
    background-color: rgb(5, 4, 57);
    color: rgb(223, 197, 52);
    text-align: center;
    padding: 10px;
    font-size: 10px;
    margin-top: 30px;
}


/* MOBILE MEDIA QUERY */
@media screen and (max-width: 767px) {
    .trail-images {
        grid-template-columns: 1fr;
    }

    #hikeMain {
    grid-template-columns: 1fr;
    }

    header nav a {
    font-size: 10px;
    }

    header {
    padding: 15px 10px;
    }

    header h2 {
        font-size: 15px;
    }
}