@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Story+Script&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap");

* {
    --white: rgb(238, 238, 238, 255);
    --dark-purple: rgb(165, 137, 198, 255);
    --light-purple: var(--white);
    --light-green: rgb(175, 194, 148, 255);
    --dark-green: rgb(111, 119, 98, 255);

    --header-font: "Cormorant Garamond", serif;
    --header-color: #1f1f1f;
    --text-font: "Cormorant Garamond", serif;
    --bg-color: var(--dark-purple);
}

.fa-location-dot {
    color: #ff4646;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

h1,
h2,
h3 {
    font-family: var(--header-font);
    font-weight: bold;
    color: var(--header-color);
}

#header {
    padding: 2em 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    line-height: 4.5em;
    height: 100vh;

    img {
        --border-size: 10px;
        width: calc(100% - var(--border-size) * 2);
        max-width: 600px;
        border: solid var(--border-size) #1f1f1f;
    }

    h1 {
        font-size: 6em;
        font-weight: bold;
        margin: 0;
        padding: 0.5em 0 0 0;
        text-align: center;
    }

    h2 {
        font-size: 4em;
        padding: 0 0 1em 0;
        margin: 0;
        text-align: center;
    }
}

#information {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: var(--white);
    padding: 5em 0 4em 0;

    h3 {
        --border-color: var(--dark-purple);
        font-size: 3.2em;
        border-bottom: solid 3px var(--border-color);
        border-top: solid 3px var(--border-color);
        color: #1f1f1f;
        font-weight: bold;
        margin: 0 auto;
        margin-bottom: 1em;
        padding-inline: 1em;
        line-height: 1em;
        max-width: 500px;
    }

    #container {
        font-family: var(--text-font);
        color: #1f1f1f;
        font-size: 2.2em;
        font-weight: 500;
        max-width: 600px;
        margin: 0 auto;

        p {
            margin: 0;
        }

        a {
            text-decoration: underline;
            color: var(--text-color);
            margin-top: 1em;
            display: block;
            font-size: 0.75em;
        }

        .blurb {
            font-style: italic;
            font-size: 0.9em;
            font-weight: bold;
            text-align: center;
        }
    }
}

form {
    max-width: 600px;
    margin: 0 auto;
    padding: 5em 1em 4em 1em;
    font-family: var(--text-font);

    h3 {
        --border-color: var(--light-green);
        text-align: center;
        font-size: 3.5em;
        border-bottom: solid 3px var(--border-color);
        border-top: solid 3px var(--border-color);
        color: #1f1f1f;
        font-weight: bold;
        margin: 0 auto;
        max-width: 600px;
        line-height: 1em;
        letter-spacing: 0.3em;
    }

    .rsvp-response {
        font-size: 2.2em;
        font-weight: bold;
        color: var(--light-green);
        text-align: center;
        padding: 2em 0;
    }

    .form-field {
        display: flex;
        flex-direction: column;
        gap: 0.4em;

        label {
            color: #1f1f1f;
            font-weight: 700;
            font-size: 1.6em;
            padding-top: 1.2em;
        }

        input {
            height: 2em;
            padding-inline: 1em;
            font-size: 1.5em;
        }

        .radio-group {
            display: flex;
            align-items: center;

            label {
                padding: 0 0.5em;
                font-weight: bold;
            }
        }

        textarea,
        input {
            border-radius: 1em;
            border: none;
            font-family: var(--text-font);
        }
        textarea {
            padding: 0.5em;
            font-size: 1.2em;
        }
    }

    button {
        border: solid 1px var(--light-purple);
        font-weight: bold;
        font-family: var(--text-font);
        font-size: 1.5em;
        padding: 0.5em;
        border-radius: 1em;
        background-color: var(--light-green);
        width: 100%;
        margin-top: 2em;
    }

    button:hover {
        cursor: pointer;
        background: var(--light-purple);
    }
}

#image-upload {
    max-width: 100%;
    background-color: var(--light-purple);
    display: flex;
    gap: 1em;
    flex-direction: column;
    padding: 3em 0;

    label {
        display: block;
        max-width: 600px;
        text-align: center;
        text-wrap: wrap;
        margin: 0 auto;
        font-size: 1.7em;
        font-weight: 700;
        color: #1f1f1f;

        .small {
            font-size: 0.8em;
            font-style: italic;

            a {
                color: var(--text-color);
                font-weight: 900;
            }
        }
    }

    input[type="file"] {
        padding: 1em 0.5em 1.5em 0.5em;
        cursor: pointer;
        margin: 0 auto;
    }

    input[type="file"]::file-selector-button {
        background-color: var(--light-green);
        border: none;
        border-radius: 1em;
        padding: 0.3em 0.5em;
        margin-right: 1.5em;
        font-weight: 700;
        font-family: var(--text-font);
        font-size: 1.5em;
        color: #1f1f1f;
        cursor: pointer;
    }

    #preview {
        width: 500px;
        margin: 0 auto;
    }

    button {
        max-width: 600px;
        margin: 0 auto;
    }
    button:hover:enabled {
        background-color: var(--dark-purple);
    }
    button:disabled {
        background-color: grey;
        cursor: default;
    }

    .photo-upload-response {
        font-size: 2.2em;
        font-weight: bold;
        color: var(--light-green);
        text-align: center;
        padding: 2em 0;
    }
}

#song-request {
    font-family: var(--text-font);
    max-width: 600px;
    h2 {
        margin-top: 0;
        font-size: 1.7em;
        font-weight: 600;
        display: block;
    }

    label {
        font-weight: 600;
        font-size: 1.5em;
    }
    input {
        display: block;
        width: calc(100% - 2em);
        margin-bottom: 1em;
        border-radius: 1em;
        height: 2em;
        padding: 0 1em;
        border: none;
        font-size: 1.5em;
    }

    #response {
        font-size: 1.3em;
        font-weight: 500;
        padding-top: 1em;
        text-align: center;
    }
}
