.skip {
    position: absolute;
    top: -40px;
    color: black;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: bold;
    transition: top 0.3s ease;
    background-color: beige;
  }
  
.skip:focus {
    top: 10px;
}

body {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #f5f5f5;
    line-height: 1.5;
}

header {
    background: #317ba3;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 2rem;
    background-color: white;
    margin: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.intro-section h2 {
    font-size: 2.5rem;
    color: #317ba3;
}

.intro-text {
    width: 60%;
    min-width: 250px;
    margin-bottom: 8rem;
    font-size: 1.2rem;
}

.intro-photo {
    flex: 1 1 300px;
    max-width: 400px;
    margin-right: 2rem;
}

.intro-photo img {
    width: 100%;
    border-radius: 10px;
}

.intro-photo img:hover {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.favorite-text {
    margin-left: 2rem;
    font-size: 2rem;
    font-weight: bold;
}

.blog-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px darkgray;
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content h2 {
    margin-bottom: 0.3rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

.blog-card-content p {
    font-size: 0.95rem;
    margin-left: 0.5rem;
    margin-bottom: 0.2rem;
    color: #317ba3;
}

.more-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-weight: bold;
    text-decoration: underline;
    color: #317ba3;
    font-size: 1.3rem;
}

.more-link:hover {
    transform: translateY(-2px);
}

footer {
    background: #317ba3;;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

.bucket-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    box-shadow: 0 4px 8px darkgray;
    transition: transform 0.2s ease;
}

.bucket-card:hover {
    transform: translateY(-10px);
}

.bucket-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bucket-card h2 {
    position: absolute;
    bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px black;
    background: rgba(0,0,0,0.5);
    width: 100%;
    padding-left: 1rem;
}

.form-section {
    padding: 2rem;
    background-color: white;
    margin: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.form-section h2 {
    margin-bottom: 1rem;
    text-align: center;
}

.form-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.form-section input, .form-section textarea, .form-section button {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid black;
    border-radius: 5px;
}

.main-nav {
    display: flex;
    justify-content: center;
    background-color: #317ba3;
    padding: 1rem 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav a:hover {
    text-decoration: underline;
}

.section-heading {
    display: grid;
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
}

.form-button-wrapper {
    text-align: center;
}

.contact {
    font-size: 2rem;
    font-weight: bold;
}

.second-nav {
    margin-left: 2rem;
    text-align: left;
}

.second-nav a {
    color: white;
    text-decoration: none;
}

.second-nav:hover {
    text-decoration: underline;
}

.blog-detail {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.blog-detail-image {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.blog-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.blog-detail-content h2 {
    font-size: 1.8rem;
    color: #317ba3;
    margin-top: 1.5rem;
}

.blog-detail-content p, .blog-detail-content ul {
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.custom-carousel {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 2rem auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px darkgray;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
}
  
.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

#sort-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 1rem 2rem;
    font-family: "Quicksand", sans-serif;
    gap: 0.5rem;
}
  
#sort-form label {
    font-size: 1rem;
    font-weight: 500;
}
  
#sort-year {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    font-family: "Quicksand", sans-serif;
    border: 2px solid #317ba3;
    border-radius: 10px;
    background-color: white;
    transition: all 0.3s ease;
}
  
#sort-year:hover {
    border-color: #001e2e;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: beige;
    }

    header {
        background: #013957;
        color: beige;
    }

    .intro-section {
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px beige;
    }

    .form-section {
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px beige;
    }

    .blog-detail {
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px beige;
    }

    .blog-card {
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px beige;
    }

    .bucket-card {
        background-color: #1a1a1a;
        box-shadow: 0 4px 8px beige;
    }

    .blog-card-content p {
        color: #90caf9;
    }

    .more-link {
        color: #90caf9;
    } 

    .intro-section h2 {
        color: #90caf9;
    }

    .form-section input, .form-section textarea, .form-section button {
        background-color: beige;
        color: #90caf9;
        border: 1px solid beige;
    }

    .main-nav {
        background-color: #013957;
    }

    footer {
        background-color: #013957;
    }

    .main-nav a {
        color: beige;
    }

    .second-nav a {
        color: beige;
    }

    .blog-detail-content h2 {
        color: #90caf9;
    }

    #sort-year {
        padding: 0.4rem 0.8rem;
        font-size: 1rem;
        font-family: "Quicksand", sans-serif;
        border: 2px solid #317ba3;
        border-radius: 10px;
        background-color: beige;
        transition: all 0.3s ease;
    }
}

input::placeholder, textarea::placeholder {
    color: black;
    opacity: 1;
}