/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Patrick Hand', sans-serif;
}

html {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFF3E0;
    color: #4E342E;
    background: url('images/background.png') no-repeat center center fixed;
    background-size: cover;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page{
    flex: 1;
}

main {
    overflow: hidden;
    height: 100% !important;
}

.card-group {
    display: flex;
    flex-wrap: wrap;
}

.adventure-card-heading {
    border-bottom: 3px double;
    margin-bottom: 10px;
}

.card, .adventure-card {
    border-radius: 12px;
    background-color: #fff;
    margin: 1rem;
    padding: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1 1 calc(33% - 2rem);
    max-width: calc(33% - 2rem);
    display: flex;
    flex-direction: column;
}

.adventure-card-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    flex: 0 0 auto; /* Fixed size */
}

.adventure-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    flex: 0 0 auto; /* Fixed size */
}

.adventure-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    border-radius: 10px;
    flex: 0 0 auto; /* Fixed size */
}

.dates {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #666;
    flex: 0 0 auto; /* Fixed size */
}

.adventure-card p {
    flex: 1 0 auto; /* Grow/shrink to fill space */
    margin-bottom: 1rem;
}

.adventure-card button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background-color: #205e80; /* Deep blue */
    color: #fff;
    cursor: pointer;
    align-self: center;
    flex: 0 0 auto; /* Fixed size */
    border-radius: 5px;
}

.adventure-card .description{
    flex:100%;
}

@media (max-width: 768px) {
    .intro {
        flex-direction: column;
    }

    .intro-image, .intro-text {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: center;
    }

    .intro-text {
        padding: 1rem;
    }

    .card, .adventure-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
    background: #F5F5F5;
    border-radius: 10px;
}

::-webkit-scrollbar {
    width: 3px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #FFF;
    background-image: -webkit-gradient(linear, 40% 0%, 75% 84%, from(#205e80), to(#06402b), color-stop(.6,#06402b))
}

.admin-dashboard {
    padding: 2rem;
}

.admin-edit {
    margin: 2rem;
    padding: 10px;
    border-radius: 5px;
    background-color: #eaeaea;
}

.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.loading-spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #06402B;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}