/* Book */
@font-face{
    font-family: 'Gotham';
    src: url('fonts/Gotham-Book.woff2') format('woff2'), url('fonts/Gotham-Book.woff') format('woff'), url('fonts/Gotham-Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* Medium */
@font-face{
    font-family: 'Gotham';
    src: url('fonts/Gotham-Medium.woff2') format('woff2'), url('fonts/Gotham-Medium.woff') format('woff'), url('fonts/Gotham-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Black */
@font-face{
    font-family: 'Gotham';
    src: url('fonts/Gotham-Black.woff2') format('woff2'), url('fonts/Gotham-Black.woff') format('woff'), url('fonts/Gotham-Black.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    /* typo */
    font-family: "Gotham", sans-serif;
    font-size: 100%;
    line-height: 1.4;
    color: #000000;
    background-color: #fff;
    min-height: 100vh;
}
body.body__invitation{
    font-size: 25px;
    height: 100vh;
}

img{
    max-width: 100%;
}

a {
    color: inherit;
}

p + p {
    margin-top: 1em;
}

.flex{
    display: flex;
    flex-wrap: wrap;
}

.logo {
    height: 70px;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.layout-container{
    width: 1520px;
    margin: 0 auto;
    max-width: 100%;
}
.header{
    padding: 45px 100px;
    padding-right: 640px;
    background-color: #fff;
    text-align: left;
    height: 160px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.logo-wrapper{
    display: block;
    max-height: 100%;
}
.content-wrapper {
    background-color: #d2dbda;
    padding: 100px;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    max-height: calc(100% - 160px - 100px);
    min-height: 590px;
}
.content-wrapper__left{
    width: 65%;
    padding-right: 20px;
}
.content-wrapper__right{
    width: 35%;
    position: relative;
}

.accolade-symbol{
    position: absolute;
    bottom: -40px;
    right: 0;
    left: 0;
    margin: 0 auto;
    max-width: 120%;
    max-height: calc(100% + 280px);
}

.container {
    display: block;
}

.container.invitation__page{
    display: flex;
    flex-direction: column;
    height: 100%;
}
.container.invitation__page h1{
    text-transform: uppercase;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
}
.container.invitation__page p{
    font-size: 1em;
    line-height: 1.7em;
}
.container.invitation__page p + p{
    margin-top: 0;
}

.invitation__info{
    font-size: 1em;
    font-weight: 500;
    align-items: center;
    margin-bottom: auto;
    margin-bottom: 30px;
}
.invitation__info-item + .invitation__info-item{
    margin-left: 60px;
}
.invitation__info-item--icon{
    height: 32px;
    width: 30px;
}
.invitation__info-item--label{
    margin-left: 30px;
}
.invitation__text{
    margin: auto 0;
}
.container-centered {
    max-width: 480px;
    text-align: center;
}
.invitation__buttons{
    margin-top: 30px;
}

.container-narrow {
    max-width: 540px;
    margin: auto;
}

.text-center {
    text-align: center;
}

.button {
    display: inline-block;
    margin: auto;
    border: 0;
    padding: 1em 1.4em;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
    min-width: 250px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}
.btn--blue{
    background: #36c4f4;
    color: #ffffff;
}
.btn--blue:hover{
    background: #ffffff;
    color: #36c4f4;
}
.btn--gray{
    background-color: #b7b7b7;
    color: #ffffff;
}
.btn--gray:hover{
    background: #ffffff;
    color: #36c4f4;
}

.button + .button{
    margin-left: 65px;
}

.thankyou__page{
    text-align: left;
}
.thankyou__page p{
    font-size: 2em;
    font-weight: 600;
}
.thankyou__page .button{
    margin-top: 1.5em;
}

/* sections */
section {
    display: none;
}

section:target {
    display: block;
}

/* form */
form {
    transition: opacity .5s;
}

.loading {
    pointer-events: none;
    opacity: .5;
}

.form-group {
    margin: 1.25em 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group-error {
    display: block;
    width: 100%;
    margin: 0;
    font-size: .75em;
    color: darkred;
}

.form-group-label {
    display: block;
    width: 100%;
    margin-bottom: 0.5em;
}

.pot-group {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    padding:0 !important;
    border:0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.input-group input {
    position: absolute !important;
    clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
    clip: rect(1px, 1px, 1px, 1px);
    padding:0 !important;
    border:0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.input-group-label {
    display: inline-block;
    margin: .25rem;
    width: 240px;
    background: #262262;
    color: #ffffff;
    border: 0;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.input-group input:checked ~ .input-group-label {
    background: #36c4f4;
}

/* checkboxes */
.checkbox-group {
    display: flex;
}

.checkbox-group .input-group {
    position: relative;
    height: 250px
}

.checkbox-group .input-group-label {
    width: 50px;
    font-size: .75em;
    padding: 0;
    position: relative;
    background: none;
    color: #262262;
}

.checkbox-group .input-group-label:after {
    content: '';
    display: block;
    margin-top: .25em;
    height: 50px;
    background: #262262;
}

.checkbox-group .input-group-label:before {
    content: '';
    display: block;
    position: absolute;
    width: 1px;
    height: 98px;
    background: #262262;
    top: 63px;
    right: 13px;
}

.checkbox-group input:checked ~ .input-group-label {
    background: none;
}

.checkbox-group input:checked ~ .input-group-label:after {
    background: #36c4f4;
}

.checkbox-group input:disabled ~ .input-group-label:after {
    background: gray;
}

.input-group-tag {
    position: absolute;
    transform: translateX(-50%) rotate(-90deg);
    top: 180px;
    left: 50%;
    width: 180px;
    text-align: right;
    font-size: .75em;
}

/* width mq */
@media all and (max-width: calc(1520px + 240px)) {
    .layout-container{
        max-width: calc(100% - 240px);
    }
    .header{
        padding-right: 30%;
    }
}

@media all and (min-width: 1600px) {
    body {
        font-size: 125%
    }
}

@media all and (max-width: 1400px) {
    .button + .button{
        margin-left: 25px;
    }
    .content-wrapper__left{
        width: 70%;
    }
    .content-wrapper__right{
        width: 30%;
    }
    .accolade-symbol{
        right: -30px;
        left: auto;
    }
    .header{
        padding-right: 100px;
    }
}

@media all and (max-width: 1200px) {
    body.body__invitation{
        height: auto;
    }
    .header{
        padding: 45px 60px;
    }
    .layout-container{
        max-width: calc(100% - 120px);
    }
    .content-wrapper{
        padding: 60px;
        max-height: none;
    }
}

@media all and (max-width: 1080px) {
    .content-wrapper{
        min-height: 0;
    }
    .content-wrapper__right{
        display: none;
    }
    .content-wrapper__left{
        width: 100%;
        padding-right: 0;
    }
}

@media all and (max-width: 1000px) {
    .button + .button{
        margin-left: 40px;
    }
    
}

@media all and (min-width: 1000px) {
    body {
        font-size: 110%
    }
}

@media all and (max-width: 900px) {
    .header img{
        height: 50px;
    }
}

@media all and (max-width: 800px) {
    body{
        font-size: 90%;
    }
    body.body__invitation{
        font-size: 20px;
    }
    .layout-container{
        max-width: 100%;
    }
    .content-wrapper{
        padding: 50px;
    }
    .header{
        text-align: center;
    }
    .invitation__page{
        text-align: center;
    }
    .invitation__info{
        justify-content: center;
    }
    .invitation__buttons{
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .invitation__buttons .btn--blue{
        order: 1;
        margin-left: auto;
        margin-right: auto;
    }
    .invitation__buttons .btn--gray{
        order: 2;
        margin-top: 40px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media all and (min-width: 800px) {
    .form-group {
        justify-content: space-between;
    }
}

@media all and (max-width: 600px) {
    body{
        font-size: 80%;
    }
    body.body__invitation{
        font-size: 16px;
    }
    .header{
        padding: 40px;
    }
    .header img{
        height: 50px;
    }
    .content-wrapper{
        padding: 40px;
    }
    .invitation__info{
        flex-direction: column;
    }
    .invitation__info-item + .invitation__info-item{
        margin-left: 0;
        margin-top: 20px;
    }
}

@media all and (max-width: 500px) {
    .header{
        flex-direction: column;
        height: auto;
    }
    .header a:not(:last-child){
        margin-bottom: 45px;
    }
}