:root {
    --light-color: #FFE8DD;
    --accent-color: #BB5048;
    --main-color: #481D1E;
}

* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #FFF5F0;
    color:var(--main-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
}

address {
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Caveat', cursive;
}

h1 {
    font-size: 144px;
    font-weight: 400;
}

h2 {
    font-size: 92px;
    font-weight: 400;
    color: var(--accent-color);
    text-align: center;
}

a {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    color: var(--accent-color);
}

p {
    font-family: Oswald;
    font-style: normal;
    font-weight: 300;
    font-size: 20px;
    line-height: 27px;
    text-align: center;
}

section {
    margin-left: 120px;
    margin-right: 119px;
    margin-bottom: 180px;
    flex-wrap: wrap;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    justify-content: flex-start;
}

section > img {
    max-width: 50%;
    height: auto;
    flex: 0 0 auto;
    max-height: 100%;
    align-self: center;
    -webkit-align-self: center;
    object-fit: scale-down;
}

section > h2, section > p {
    width: 100%;
}

.hero {
    margin: 40px;
    min-height: calc(100vh - 80px);
    background-image: url(hero-img-min.webp);
    background-position: center;
    background-size: cover;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 32px;
}

.hero h1, .hero h2, .rsvp h2 {
    color: var(--light-color);
}

.hero h1 {
    margin-bottom: 160px;
    margin-top: 0;
}

.hero h2 {
    text-align: right;
    margin: 0;
    margin-top: 130px;
}

.schedule {
    flex-wrap: wrap;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
}

.events {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    font-family: 'Oswald', sans-serif;
    max-width: 48%;
    margin-right: 2%;
}

.event {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 80px;
}

.event:last-child {
    margin-bottom: 0;
}

.event-details > * {
    margin-bottom: 12px;
}

.event-name, .event time {
    font-weight: 300;
    font-size: 48px;
}

.event time {
    margin-right: 18px;
}

.event-place {
    font-weight: 500;
    font-size: 24px;
}

.event-location {
    font-weight: 300;
    font-size: 20px;
}

.transfer {
    align-items: center;
}

.transfer > h2 {
    margin-bottom: 24px;
}

.transfer > p {
    margin-top: 0;
    margin-bottom: 80px;
}

.events--transfer {
    margin-right: 0;
    margin-left: 10%;
    max-width: 40%;
}

.colors {
    justify-content: space-around;
}

.color {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.color:last-child {
    margin-right: 0;
}

.color:nth-child(2) {
    background-color: #151B20;
}

.color:nth-child(3) {
    background: #481D1E;
}

.color:nth-child(4) {
    background: #70494A;
}

.color:nth-child(5) {
    background: #8C3E43;
}

.color:nth-child(6) {
    background: #DA625A;
}

.color:nth-child(7) {
    background: #E78A83;
}

.color:nth-child(8) {
    background: #FFBA99;
}

.color:nth-child(9) {
    background: #F9C7B2;
}

.hero--footer {
    background-image: url(footer-min.webp);
    flex-direction: column;
    display: none;
}

.hero--footer h2 {
    text-align: left;
    margin-top: 88px;
    margin-left: 88px;
    width: auto;
}

.rsvp {
    background: #70494A;
    width: 100%;
    margin: 0;
    justify-content: center;
    padding-bottom: 140px;
}

.rsvp h2 {
    margin-top: 140px;

}

input[type="radio"] + label, 
input[type="checkbox"] + label, 
textarea + label {
    color: var(--light-color);
    cursor: pointer;
    font-family: Oswald;
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
}

/* Hide the browser's default checkbox */
.input-container input[type="checkbox"], .input-container input[type="radio"] {
    opacity: 0;
    margin: 0;
    position: absolute;
    bottom: 0;
}

.input-container {
    position: relative;
    margin-bottom: 48px;
}

.rsvp-inputs .input-container {
    margin-bottom: 32px;
}

.input-container input[type="radio"] + label,
.input-container input[type="checkbox"] + label {
    position: relative;
    padding-left: 72px;
    transition: color 0.25s ease-in-out;
}

.input-container input[type="radio"] + label::before, input[type="checkbox"] + label::before,
.input-container input[type="radio"] + label::after, input[type="checkbox"] + label::after {
    position: absolute;
    transition: all 0.25s ease-in-out;
}

.input-container input[type="radio"] + label::before,
.input-container input[type="checkbox"] + label::before {
    content: "";
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 4px var(--light-color) solid;
    top: 18px;
    left: 0;
}

.input-container input[type="radio"] + label::after,
.input-container input[type="checkbox"] + label::after {
    content: "";
    display: inline-block;
    height: 20px;
    width: 45px;
    border-left: 4px solid;
    border-bottom: 4px solid;
    transform: rotate(-55deg) skewX(-18deg);
    left: 3px;
    top: 8px;
}

/*Hide the checkmark by default*/
.input-container input[type="radio"] + label::after, 
.input-container input[type="checkbox"] + label::after {
    content: none;
}
/*Unhide the checkmark on the checked state*/
.input-container input[type="radio"]:checked + label::after, 
.input-container input[type="checkbox"]:checked + label::after {
    content: "";
}

.input-container input[type="radio"]:not(:checked) + label::before,
.input-container input[type="checkbox"]:not(:checked) + label::before{
    border-color: #E78A83;
}

.input-container input[type="radio"]:not(:checked) + label,
.input-container input[type="checkbox"]:not(:checked) + label {
    color: #E78A83;
}

.input-container:hover label {
    color: var(--light-color) !important;
}

.input-container:hover label::before {
    border-color: var(--light-color) !important;
}

.input-container--column {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.input-container--column label {
    color: var(--light-color);
    font-weight: 500;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 18px;
}

input[type="text"], input[type="number"], textarea {
    font-family: inherit;
    background-color: transparent;
    border: 4px solid var(--light-color);
    font-weight: 300;
    font-size: 48px;
    line-height: 71px;
    padding: 18px;
    color: var(--light-color);
    width: 100%;
}

.rsvp-inputs {
    margin-bottom: 60px;
}

.input-row {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    justify-content: space-between;
    flex-wrap: wrap;
}

.input-row .input-container--column {
    max-width: 49%;
}

.input-row .input-container--column:first-child {
    margin-right: 2%;
}

input[type="submit"] {
    cursor: pointer;
    width: 100%;
    font-family: Oswald;
    font-style: normal;
    font-weight: 300;
    font-size: 48px;
    line-height: 71px;
    color: var(--main-color);

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    padding: 18px 36px;

    background: #F9C7B2;
    border: none;

    margin-top: 48px;

    transition: all 0.25s ease-in-out;
}

input[type="submit"]:hover {
    background-color: var(--light-color);
}

textarea::placeholder {
    color: #481D1E;
}

@media screen and (max-width: 900px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 40px;
    }
    section {
        margin: 0 16px 60px;
        width: calc(100% - 32px);
    }
    section > img {
        max-width: 100%;
    }
    .hero {
        margin: 16px;
        width: calc(100% - 32px);
        min-height: calc(100vh - 32px);
        padding: 60px 20px;
        justify-content: space-between;
    }
    .hero h1 {
        margin-bottom: 0;
        margin-top: 0;
    }
    .events {
        max-width: none;
        margin-right: 0;
        margin-bottom: 48px;
    }
    .event-name, .event time {
        font-size: 32px;
    }
    .event-place {
        font-size: 18px;
    }
    .event {
        margin-bottom: 40px;
    }
    .schedule, .transfer {
        justify-content: center;
    }
    .transfer > p {
        margin-bottom: 24px;
    }
    .events--transfer {
        margin-left: 0;
        margin-top: 24px;
        margin-bottom: 0;
    }
    .color {
        margin: 8px;
        width: 60px;
        height: 60px;
    }
    .hero--footer h2 {
        margin: 0;
    }
    input[type="radio"] + label,
    input[type="checkbox"] + label,
    textarea + label {
        font-size: 28px;
    }
    input[type="text"], input[type="number"], textarea {
        font-size: 32px;
        line-height: 1.5;
        padding: 8px 12px;
    }
    .rsvp {
        padding: 60px 16px;
    }
    .rsvp h2 {
        margin-top: 0;
        margin-bottom: 40px;
    }
    .input-container--column label {
        font-size: 20px;
    }
    .input-row .input-container--column {
        max-width: none;
        width: 100%;
    }
    .input-row .input-container--column:first-child {
        margin-right: 0;
    }
    .input-container input[type="radio"] + label::before,
    .input-container input[type="checkbox"] + label::before {
        width: 20px;
        height: 20px;
        top: 6px;
    }

    .input-container input[type="radio"] + label,
    .input-container input[type="checkbox"] + label {
        padding-left: 48px;
    }

    .rsvp-inputs .input-container {
        margin-bottom: 20px;
    }

    .rsvp-inputs {
        margin-bottom: 48px;
    }

    input[type="submit"] {
        font-size: 40px;
        padding: 12px 24px;
        line-height: 1.5;
    }
    .input-container input[type="radio"] + label::after, 
    .input-container input[type="checkbox"] + label::after {
        left: 2px;
        top: 0px;
        height: 12px;
        width: 32px;
    }
}

