/*
    Student: Xeth Atillo
    File: event3.css
    Purpose: Style the CSS Craft Night invitation.
*/

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

/* Set the background image. */
html {
    min-height: 100%;
    background-image: url("event3_craft_night.png");
    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: #fffaf5;
    text-align: center;
}

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

    /* Transparent dark purple background for readability. */
    background-color: rgba(43, 30, 51, 0.91);

	/* Pink border and shadow. */
    border: 3px solid #e9a8c5;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(20, 10, 25, 0.45);

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

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

/* Style the main heading. */
h1 {
    color: #f5b8d1;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 54px);
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Style the craft slogan. */
.subtitle {
    color: #e7d7f2;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.7;
	margin-bottom: 30px;
}

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

	/* Lighter background inside the main card. */
    background-color: rgba(255, 245, 235, 0.09);
	
    border: 2px solid #c7d9a8;
    border-radius: 18px;

	/* Centre all information inside the box. */
    text-align: center;
    line-height: 1.8;
    box-shadow: 0 0 15px rgba(199, 217, 168, 0.12);
}

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

/* Space out the event information. */
.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;
}

/* Make the event description easy to read. */
.event-details p {
    font-size: 16px;
    margin-bottom: 15px;
	
/* Adjust the invitation for phones and smaller screens. */
@media screen and (max-width: 600px) {
    body {
        padding: 15px;
    }

    .invitation {
        padding: 25px 16px;
        border-radius: 18px;
    }

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

    .subtitle {
        font-size: 16px;
    }

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

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

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

    .invitation:hover {
        transform: none;
    }
}