/* Part of the following is from the about section :*/
/* Taken from index css (global css):*/

:root {
    --primary-color: #5e4d9e;
    --dark-color: #2c1b2d;
    --light-color: #955b68;
    --white-color: #ffffff;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
    margin: 0 auto;
    padding: 0 0px;
}

/* body styles */
body {
    font-family: var(--body-font);
    background-color: var(--white-color);
    margin: 0;
    color: var(--dark-color);
    line-height: 1.6;
    overscroll-behavior: none;
}

main-body {
    padding-top: 9vh;
}

/* heading styles */
h1, h2, h3 {
    font-family: var(--header-font);
    font-weight: 700;
    margin: 10px 0 0 0; /* maybe this could be changed elsewhere? */
}

h1 {
    font-size: 6rem;
}

h2, h3 {
    font-size: 2rem;
}

p{
    font-size: 1rem;
}

/*homepage css:*/
.hero {
    background-image: url('https://img.freepik.com/free-vector/sunset-city-background_1092-42.jpg'); /* replace with your chapter's background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* allows the background image to stay fixed while scrolling */
    height: 50vh;
    margin: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
}

/* animating fade-in title */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contest Container Layout */
.contest-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

/* Vertical Subnav Styles */
.year-subnav {
    flex: 0 0 250px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.year-subnav h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

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

.year-list li {
    margin-bottom: 0.5rem;
}

.year-link {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.year-link:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-left-color: var(--light-color);
    transform: translateX(5px);
}

.year-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-left-color: var(--light-color);
    font-weight: 600;
}

/* Contest Content Area */
.contest-content {
    flex: 1;
    padding: 1rem;
}

/* Default content styling */
.default-content {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--dark-color);
    font-style: italic;
    opacity: 0.8;
}

.default-content p {
    font-size: 1.2rem;
    margin: 0;
}

.year-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.year-content.active {
    display: block;
}

.year-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.year-content p {
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contest-container {
        flex-direction: column;
        padding: 0 1rem;
    }
    
    .year-subnav {
        flex: none;
        position: static;
        order: -1;
    }
    
    .year-list {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .year-list li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .year-link {
        white-space: nowrap;
        min-width: 80px;
        text-align: center;
    }
}

