@font-face {
    font-family: 'UVN Thay Giao';
    src: url("../fonts/UVNThayGiao.TTF") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'UVN Thay Giao';
    src: url("../fonts/UVNThayGiao_BI.TTF") format("truetype");
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'UVN Thay Giao';
    src: url("../fonts/UVNThayGiao_R.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'UVN Thay Giao';
    src: url("../fonts/UVNThayGiao_I.TTF") format("truetype");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "UTM A&S Signwriter";
    src: url("../fonts/UTM_A&S_Signwriter.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

html,body {
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
}

textarea:focus, input:focus, div:focus {
    outline: none;
}

a {
    color: #DC4F4C;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0;
}

input:not([type=radio]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-border-radius:0;
    border-radius:0;
}

* {
    font-family: "UVN Thay Giao", Arial, Helvetica, sans-serif;
    line-height: 1.5em;
    font-size: 16px;
}

body {
    position: relative;
    width: 100%;
}

nav {
    background-color: #DC4F4C;
    padding: 12px 0;
    position: relative;
    z-index: 10;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 0;
}

nav ul li {
    padding: 0 16px;
}

nav ul li a {
    color: #FEE690;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

header {
    background: #DC4F4C;
    padding: 85px 0 120px 0;
    display: flex;
    justify-content: center;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.6);
    border: none;
    position: relative;
    z-index: 9;
    font-size: 18px;
    overflow: hidden;
}

header>div {
    max-width: 480px;
    background-repeat: repeat;
    background-image: url("../images/paper.jpg");
    background-blend-mode: overlay;
    text-align: center;
    box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.3);
    padding: 60px;
    position: relative;
    width: calc(95% - 120px);
}

header>div #main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header>div #left-flowers {
    display: block;
    position: absolute;
    width: 230px;
    height: 600px;
    background-repeat: no-repeat;
    background-image: url("../images/left_flowers.svg");
    background-size: 100%;
    left: -100px;
    top: -75px;
    z-index: -1 !important;
    filter: drop-shadow(-1px 1px rgba(0,0,0,0.1));
}

header>div #right-flowers {
    display: block;
    position: absolute;
    background-repeat: no-repeat;
    background-image: url("../images/right_flowers.svg");
    background-size: 100%;
    background-position: bottom right;
    width: 220px;
    height: 450px;
    right: -85px;
    bottom: -60px;
    z-index: -1 !important;
    filter: drop-shadow(-1px 1px rgba(0,0,0,0.1));
}

header>div em {
    display: flex;
    flex-direction: column;
    margin: 25px 0 40px 0;
    align-items: center;
}

header>div em span {
    font-family: "UTM A&S Signwriter", Arial, Helvetica, sans-serif;
    color: #DC4F4C;
    font-size: 58px;
    font-style: normal;
    text-shadow: 1px 1px rgba(255,255,255,0.8);
}

header>div em span:first-child {
    position: relative;
    right: 15%;
}

header>div em span:last-child {
    position: relative;
    left: 10%;
}

header>div em span:first-child::before {
    content: "";
    display: block;
    position: absolute;
    left: -70px;
    top: 70px;
    width: 122px;
    height: 170px;
    background-repeat: no-repeat;
    background-image: url("../images/left_bird.svg");
    filter: drop-shadow(1px 1px rgba(255,255,255,0.8));
}

header>div em span:last-child::after {
    content: "";
    display: block;
    position: absolute;
    right: -40px;
    top: -150px;
    width: 110px;
    height: 170px;
    background-repeat: no-repeat;
    background-image: url("../images/right_bird.svg");
    filter: drop-shadow(1px 1px rgba(255,255,255,0.8));
}

header>div em img {
    display: inline-block;
    margin: 26px 0 10px 0;
}

header a {
    border: solid #666666 1px;
    text-decoration: none;
    font-size: 1.2em;
    color: #444444;
    padding: 2px 15px;
    margin-top: 75px;
    font-weight: bold;

}

header a:hover {
    background-color: #666666;
    border: solid #666666 1px;
    color: ivory;
    text-decoration: none !important;
}

header time {
    display: inline-block;
    margin-top: 100px;
    border-bottom: solid 1px;
    border-top: solid 1px;
}

header address {
    font-style: normal;
    font-weight: bold;
    color: #DC4F4C;
    font-size: 1.2em;
    margin-top: 1em;
}

#body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#body>section {
    width: 90%;
}

.section-head {
    color: #d0b300;
    font-size: 28px;
    font-style: normal;
    font-weight: normal;
    margin: 55px 0 15px;
    text-shadow: 1px 1px rgba(255,255,255,0.8);
}

#party,
#travel,
#registry,
#qa {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

#travel-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#travel-content span.material-icons {
    font-size: 2em;
    color: #d0b300;
    text-shadow: 1px 1px rgba(255,255,255,0.8);
}

#travel-content>div {
    width: 30%;
    text-align: center;
}

#travel-content>div>h6 {
    margin-top: 5px;
    font-size: 0.8em;
    color: #d0b300;
}

#travel h5 {
    color: #DC4F4C;
    margin-bottom: 0;
    text-align: center;
}

#travel address {
    text-align: center;
}

#venue-intro {
    text-align: center;
    max-width: 640px;
}

#party {
    max-width: 640px;
    text-align: center;
}

#qa ul {
    list-style: none;
    text-align: center;
    padding: 0;
    columns: 2;
    column-gap: 40px;
}

#qa ul h6 {
    margin: 4em 0 0 0;

}

#qa ul li:first-child h6 {
    margin-top: 0;
}

#map {
    display: block;
    height: 400px;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
}

footer {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 50px;
}

footer em {
    font-family: "UTM A&S Signwriter", Arial, Helvetica, sans-serif;;
    font-style: normal;
    font-size: 35px;
}

footer time {
    display: inline-block;
    border-top: solid 1px;
    margin-top: 10px;
    padding-top: 3px;
}

#rsvp-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(220,79,76,1);
    z-index: 18;
}

#rsvp-form {
    display: flex;
    flex-flow: column;
    max-width: 360px;
    background-repeat: repeat;
    background-image: url("../images/paper.jpg");
    padding: 50px 60px;
    box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.6);
    align-items: center;
}

#rsvp-form label,
#rsvp-form h3,
#rsvp-form em {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#rsvp-form h3 {
    color: #DC4F4C;
    font-size: 2.4em;
    padding: 0;
    margin: 0;
    line-height: 1em;
    text-shadow: 1px 1px rgba(255,255,255,0.8);
}

#rsvp-form>em {
    text-transform: uppercase;
    font-style: normal;
    margin: 20px 0 30px 0;
    max-width: 200px;
    text-align: center;
    font-size: 16px;
    line-height: 1.8em;
    color: #c5a775;
    text-shadow: 1px 1px rgba(255,255,255,0.8);
}

#rsvp-form input,
#request {
    background: transparent;
    border: none;
    border-bottom: solid 1px #444444;
    text-align: center;
    color: #004ad2;
    line-height: 1.5em;
}

.name-group {
    margin-bottom: 25px;
}

.name-group label {
    display: none;
}

#name {
    min-width: 200px;
}

#name::placeholder {
    font-weight: normal;
}

#name,
.number-group input {
    font-weight: bold;
}

.attend-group {
    display: flex;
    flex-basis: content-box;
    align-items: center;
}


.attend-group div {
    margin-left: 10px;
    margin-right: 10px;
}

.attend-group label {
    text-transform: uppercase;
    line-height: 2em;
}

.number-group {
    margin: 15px 0 20px 0;
}

.number-group input:disabled,
.number-group input:disabled+label {
    opacity: 0.5 !important;
}

.number-group div {
    margin-bottom: 8px;
}

.number-group input {
    width: 40px;
}

.request-group label {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

#submit {
    margin-top: 45px;
    padding: 5px 15px;
    border: solid 1px black !important;
    color: black !important;
    text-transform: uppercase;
}

#submit:hover {
    cursor: pointer;
    color: white !important;
    background: #666666;
    border: solid 1px #666666 !important;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 19;
    background-repeat: no-repeat;
    background-color: rgba(255,255,255,1);
    background-image: url("../images/loading.gif");
    background-attachment: fixed;
    background-position: center;
}

#message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 19;
    background-color: rgba(255,255,255,1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

@media only screen and (max-width: 640px) {
    #qa>ul {
        columns: 1;
        max-width: 480px;
    }

    #qa>ul h6,
    #qa ul li:first-child h6 {
        margin-top: 2em;
    }

    #travel-content {
        flex-direction: column;
    }

    #travel-content>div {
        width: 100%;
        margin-top: 30px;
    }

    #travel-content>div h6 {
        margin-bottom: 20px;
    }

}

@media only screen and (max-width: 480px) {
    header {
        padding: 55px 0 95px 0;
    }

    header>div {
        padding: 5% 10% 10% 10%;
        width: 75%;
    }

    header>div em span {
        font-size: 48px;
    }

    header>div em span:first-child::before {
        left: -40px;
        top: 80px;
        width: 100px;
        height: 130px;
    }

    header>div em span:last-child::after {
        /*background-color: blue;*/
        right: -25px;
        top: -130px;
        width: 95px;
        height: 130px;
    }

    header a {
        margin-top: 30px;
    }

    header time {
        margin-top: 60px;
    }

    header>div em {
        margin: 15px 0 25px 0;
    }

    header>div #left-flowers {
        width: 200px;
        height: 600px;
        left: -100px;
        top: -55px;
    }

    header>div #right-flowers {
        width: 180px;
        height: 450px;
        right: -85px;
        bottom: -60px;
    }

    header address {
        margin-top: 0.75em;
    }

    #rsvp-form {
        padding: 10% 5%;
    }
}
