@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@400;700&display=swap');

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page Body CSS */
body {
    width: 100%;
    background-color: white;
    line-height: 1.5;
    font-family: 'Lora', serif;
}

/* Homepage styling */
#home-intro {
    padding: 40px 20px;
    background-color: darkred;
    color: #f4f4f4;
    text-align: center;
}

#home-intro h2 {
    animation: fadeInUp 2.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 30px;
    color: white;
}

/* HomePage Introduction Text */
.homeintrotext {
    animation: fadeInDown 2.5s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
    font-size: 15px;
    padding-top: 10px;
    color: white;
}

/* More Info Section */
#home-moreinfo {
    display: flex;
    height: 30em;
}

#sutherlandimage-container {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../images/sutherland.jpg);
    color: white;
    background-position: center;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#sutherlandimage-container h2 {
    color: white;
    text-align: center;
}


#homemoreinfo-textcontainer {
    background-color: white;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#homemoreinfo-textcontainer p {
    width: 70%;
    text-align: center;
    font-size: 15px;
}

/* Upcoming Events */
#upcoming-events {
    font-family: "Poppins", serif;
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

#upcoming-events h2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #ba1b18;
    margin-bottom: 30px;
}

/* Events Grid */
#events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 75%;
    margin: 0 auto;
}

/* Event Card */
.event-card {
    font-family: 'Poppins';
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 350px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.event-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.event-header h3 {
    font-family: 'Poppins';
    font-size: 1.2rem;
    color: #333;
    margin: 0;
}

.event-description {
    margin-top: 10px;
    line-height: 1.4;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    padding-bottom: 10px;
    align-self: center;
}

.event-card:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.gcal-button {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ba1b18;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    justify-content: center;
    text-align: center;
}

.gcal-button:hover {
    background-color: #a31512;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.gcal-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Sponsors Section */
#sponsors {
    width: 100%;
    background-color: #ffffff;
    color: black;
    text-align: center;
    padding-bottom: 20px;
}

#sponsors h2 {
    padding-top: 50px;
    font-size: 50px;
    font-family: 'Playfair Display', serif;
}

.sponsorlogo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sponsor-logo img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gcal-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .gcal-button i {
        font-size: 16px;
    }

    .event-card {
        height: 400px;
    }
}

@media (max-width: 480px) {
    #intro h2 {
        font-size: 4rem;
    }

    #introtext, #mainbody, #conc {
        padding: 2em 1.5em;
    }

    p {
        font-size: 4vw;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #intro h2 {
        font-size: 4.5rem;
    }

    #introtext, #mainbody, #conc {
        padding: 2em 2em;
    }

    p {
        font-size: 1.3vw;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 2.3rem;
    }

    h4 {
        font-size: 1.4rem;
    }
}

@media (min-width: 1025px) {
    #intro h2 {
        font-size: 5rem;
    }

    #introtext, #mainbody, #conc {
        padding: 3em 6em;
    }

    p {
        font-size: 1rem;
    }

    h2 {
        font-size: 3.5rem;
    }

    h3 {
        font-size: 2.5rem;
    }

    h4 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    #home-moreinfo {
        flex-direction: column; /* Stack the items vertically */
        height: auto; /* Adjust the height to auto */
    }

    #sutherlandimage-container, 
    #homemoreinfo-textcontainer {
        width: 100%; /* Make both containers take the full width */
        height: auto; /* Adjust height to auto */
    }

    #sutherlandimage-container {
        height: 500px;
    }

    #homemoreinfo-textcontainer {
        padding: 2em;
    }
}
