/*
    Student: Xeth Atillo
    File: event1.css
    Purpose: Style the CSS Annual Halloween Party invitation.
*/

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

/* Set the background image */
html {
    min-height: 100%;
    background-image: url("event1_halloween_party.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: 95vh;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: fffaf0;
    text-align: center;
}

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

	/* Transparent dark purple background for readability. */
    background-color: rgba(20, 10, 35, 0.88);

	/*border and shadow. */
    border: 3px solid #ff7518;
    border-radius: 20px;95
    box-shadow: 0 0 25px rgba(255, 117, 24, 0.55);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
	}

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

/* Style the main heading. */
h1 {
    color: #ff7518;
    font-family: "Melting", Arial, sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: bold;
    line-height: 1.2;
    margin: 15px 0;
    text-shadow: 0 0 12px rgba(255, 117, 24, 0.6);
}

/* Style the party slogan. */
.subtitle {
    color: #d9b3ff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Style the event information section. */
.event-details {
    width: 100%;
	max-width: 600px;
    margin: 0 auto;
    padding: 25px;
	
	/* Lighter background inside the main card. */
    background-color: rgba(255, 255, 255, 0.07);

    border-top: 2px solid #ff7518;
    border-bottom: 2px solid #ff7518;
    border-radius: 10px;

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

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

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

/* Make the event description easy to read. */
.event-details p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Add a subtle animation when hovering over the invitation. */
.invitation {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invitation:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 35px rgba(255, 117, 24, 0.75);
}

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

    .invitation {
        padding: 25px 18px;
		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;
    }
}

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

    .invitation:hover {
        transform: none;
    }
}