@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Cinzel:wght@400..900&display=swap');

* {
    margin: 0;
    font-family: "Barlow", sans-serif;
}

header {
    background-color: #0f1820;
    padding: 1rem 2rem;
}

header svg {
    color: #fff;
    max-width: 160px;
    min-height: 45px;
}

.logo-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.divider {
    border-left: 1px solid #fff;
    margin: 0 2rem;
}

main {
    margin-bottom: 5rem;
}

#banner {
    background: url(img/NASM2020-11016.jpeg);
    background-size: cover;
    background-position: center 75%;
    width: 100%;
    min-height: 200px;
}


section {
    max-width: 80%;
    margin: 1rem auto;
    background-color: #fcfcfc;
    border: 1px solid lightgray;
    border-radius: 4px;
    padding: 1rem;
}

hr {
    margin: 1rem 0;
}

#honoree-selection {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 1rem;
}

#honoree-selection label,
#notify label {
    border: 1px solid #0f1820;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
}

#honoree-selection label.selected,
#notify label.selected {
    background-color: #1eb1e4;
}

#honoree-selection label input[type="radio"],
#notify label input[type="radio"] {
    display: none;
}

#name-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

#wall-of-honor-name,
#third-party-first,
#third-party-last,
#third-party-email,
#level-other-input {
    max-width: 300px;
    font-size: 18px;
    padding: 12px;
    outline: none;
}

#donation-level {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

#levels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#levels label {
    border: 1px solid #0f1820;
    border-radius: 4px;
    font-weight: 600;
    font-size: 20px;
    padding: 0.5rem 1rem;
    min-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

#levels label.selected {
    background-color: #1eb1e4;
}

#levels label input[type="radio"] {
    display: none;
}

#levels label small {
    font-size: 14px;
    font-weight: 400;
}

#levels label[for="level-other"] {
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 2rem;
}

#level-other-input {
    font-size: 22px;
    font-weight: 500;
    text-align: center;
}

small#level-error {
    color: darkred;
    font-size: 16px;
    display: none;
}

#display {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#display span {
    font-weight: 600;
    font-size: 18px;
    font-family: "Cinzel", serif;
    text-align: center;
}

#notify {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
}

#self-notification {
    width: 100%;
}

#third-party {
    display: none;
    flex-direction: column;
    gap: 0.5rem
}

#address-container,
#third-party-info {
    display: none;
}

#address {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.address-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.address-row input,
.address-row select {
    width: 100%;
    max-width: 50%;
    min-height: 36px;
    font-size: 18px;
    outline: none;
    padding: 0 8px;
    box-sizing: border-box;
}

#error {
    font-size: 16px;
    color: darkred;
    display: none;
    margin: 1rem 0;
}


#error.errors {
    display: block;
}

#submit {
    display: flex;
    flex-direction: row;
    justify-content: start;
    margin-top: 1.5rem;
}

#submit button {
    display: block;
    background-color: #1eb1e4;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
}

@media(max-width:1023px) {

    section {
        max-width: 100%;
        margin: 1rem;
    }

    .logo-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .divider{
        border: none;
        border-bottom: 1px solid #fff;
        width: 50%;
        margin: 0.55rem auto;
    }

    #donation-level {
        flex-direction: column;
    }

    #levels label {
        text-align: center;
        min-width: unset;
    }

    #levels label[for="level-other"] {
        justify-content: center;
        flex-direction: column;
        gap: 0.35rem;
    }

    #level-other-input {
        max-width: 100%;
    }
}