/* Global and Reset */
* {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0faf0;
    color: #2c3e50;
}
header {
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/Glacier_National_Park_Goat.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 250px;
    color: white;
    text-align: center;
    padding-top: 80px;
    font-weight: bold;
    font-size: 1.8em;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}
nav {
    margin-top: 0.5em;
}
nav button {
    margin: 0 1em;
    padding: 0.5em 1em;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
nav button:hover {
    background-color: #45a045;
}

/* Main layout */
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1em;
    gap: 1em;
}
.info-section {
    flex: 1 1 400px;
    background: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
}
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}
.card {
    background: #e6f2e6;
    border-radius: 10px;
    padding: 1em;
    flex: 0 0 200px;
    cursor: pointer;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.05);
}
.card img {
    max-width: 100%;
    border-radius: 8px;
}
.card h4 {
    margin-top: 0.5em;
    text-align: center;
}

/* Details section */
.details {
    flex-basis: 100%;
    background: white;
    padding: 1em;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgb(0 0 0 / 0.2);
    position: relative;
}
.details img {
    max-width: 100%;
    border-radius: 10px;
}
.details button {
    position: absolute;
    top: 1em;
    right: 1em;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.4em 0.8em;
    cursor: pointer;
}
.details button:hover {
    background-color: #aa0000;
}
.hidden {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 700px) {
    main {
        flex-direction: column;
        margin: 0.5em;
    }
    .info-section {
        flex-basis: 100%;
    }
    .card {
        flex-basis: 100%;
    }
}
