/*
    Student: Xeth Atillo
    File: event2.css
    Purpose: Style the CSS Annual Fall Picnic invitation.
*/

/* Apply sizing consistent for all elements. */
* {
    box-sizing: border-box;
}

/* Set the background image. */
html {
    min-height: 100%;
    background-image: url("event2_fall_picnic.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
	}

/* Style the main page and centre its contents. */
body {
    margin: 0;
    min-height: 100vh;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Lato", Arial, sans-serif;
    color: #fffaf0;
    text-align: center;
}

/* Create the main invitation card. */
.invitation {
    width: 100%;
    max-width: 780px;
    margin: auto;
    padding: 40px;

    /* Transparent brown background for readability. */
    background-color: rgba(55, 35, 20, 0.91);

    /* Orange border and shadow. */
    border: 3px solid #d97732;
    border-radius: 22px;
    box-shadow: 0 0 30px rgba(40, 20, 5, 0.55);

    /* Hover animation. */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Move the card slightly when hovered over. */
.invitation:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 38px rgba(217, 119, 50, 0.45);
}

/* Style the university name. */
.eyebrow {
    color: #f5c16c;
    font-family: "Courier New", monospace;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 4px;
	text-transform: uppercase;
    margin-bottom: 20px;
}

/* Style the main event heading. */
h1 {
    color: #f5a742;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    margin: 15px 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Style the picnic slogan. */
.subtitle {
    color: #f4d8a8;
    font-family: "Lato", Arial, sans-serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Create a separate box for the event information. */
.event-details {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 25px;

    /* Lighter background inside the main card. */
    background-color: rgba(255, 231, 190, 0.10);

    border: 2px solid #e9a14b;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(245, 167, 66, 0.15);

    /* Centre all information inside the box. */
    text-align: center;
    line-height: 1.8;
}

/* Style labels DATE and LOCATION. */
.event-details strong {
    display: inline-block;
    color: #ffc875;
    font-family: "Courier New", monospace;
    font-size: 17px;
    letter-spacing: 2px;
    margin-top: 12px;
}

/* Add spacing between information paragraphs. */
.event-details p {
    font-size: 16px;
    margin: 10px 0 18px;
}

/* Remove extra space above the first paragraph. */
.event-details p:first-child {
    margin-top: 0;
}

/* Adjust the invitation for phones and smaller screens. */
@media screen and (max-width: 600px) {
    body {
        padding: 15px;
    }

    .invitation {
        padding: 25px 16px;
    }

    .eyebrow {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 18px;
    }

    .event-details {
        padding: 18px 12px;
    }

    .event-details p {
        font-size: 14px;
    }
}

/* Reduce animation for visitors who prefer less movement. */
@media (prefers-reduced-motion: reduce) {
    .invitation {
        transition: none;
    }

    .invitation:hover {
        transform: none;
    }
}