/*
    Student: Xeth Atillo
    File: event4.css
    Purpose: CSS Scavenger Hunt Invitation.
*/

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

/* Set the autumn background image. */
html {
    min-height: 100%;
    background-image: url("event4_scavenger_hunt.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: "Trebuchet MS", Arial, sans-serif;
    color: #fff8e7;
    text-align: center;
}

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

	/* Transparent green background for readability. */
    background-color: rgba(15, 40, 29, 0.93);

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


	/* Hovered effect. */
.invitation:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 38px rgba(217, 119, 50, 0.45);
}

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

/* Style the main event heading. */
h1 {
    color: #f4d58d;
    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: #c7e0b5;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Style the event information section. */
.event-details {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 25px;

	/* Lighter background inside the main card. */
    background-color: rgba(255, 248, 231, 0.09);
	
    border: 2px solid #d5b66b;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(231, 189, 101, 0.15);

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

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

/* Space out the information paragraphs. */
.event-details p {
    font-size: 16px;
    overflow-wrap: break-word;
    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;
        border-radius: 15px;
    }

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

    .subtitle {
        font-size: 18px;
    }

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

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

/* Respect reduced-motion accessibility preferences. */
@media (prefers-reduced-motion: reduce) {
    .invitation {
        transition: none;
    }

    .invitation:hover {
        transform: none;
    }
}