﻿html, body {
    margin: 0;
    padding: 0;
}

body {
    background: url(../media/background.jpg);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
}

#left, #right {
    position: relative;
}

#left {
    float: left;
    background: url(../media/proposal.JPG);
    background-position: center;
    background-size: cover;
    width: 35%;
    height: calc(100% - 40px);
    margin: 10px 0 10px 5%;
    border: 5px solid #FFF;
}

#right {
    width: 50%;
    float: left;
    margin: 10px 0 10px 5%;
    background-color: rgba(255, 255, 255, 0.5);
    height: calc(100% - 30px);
}

#proposal {
    max-height: 100%;
    margin: auto;
    display: block;
    max-width: 100%;
}

.date-location {
    height: 100%;
    text-align: center;
}

.text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    width: 100%;
    color: #FFF;
    font-family: 'Shadows Into Light', cursive;
    font-size: 3em;
}

.names {
    color: #FFF;
    position: absolute;
    font-size: 4em;
    font-family: 'Parisienne', cursive;
    text-align: center;
    width: 100%;
    margin-top: 6%;
}

#rsvp-form {
    margin-top: 20px;
    font-size: 0.7em;
}

input, select {
    border: 0;
    border-radius: 3px;
    padding: 3px 0 3px 10px;
    font-size: 0.6em;
    font-family: 'Shadows Into Light', cursive;
    line-height: 0.7em;
    vertical-align: middle;
}

button {
    border: 0;
    background-color: #E49555;
    padding: 3px 20px;
    color: #FFF;
    font-family: 'Shadows Into Light', cursive;
    margin-top: 10px;
    font-size: 0.8em;
    border-radius: 3px;
    cursor: pointer;
}

    button:focus {
        outline: none;
    }

#thanks {
    display: none;
}

#ohno {
    display: none;
}

#loading {
    display: none;
}

.lds-dual-ring {
    display: inline-block;
    width: 2em;
    height: 2em;
}

    .lds-dual-ring:after {
        content: " ";
        display: block;
        width: 1em;
        height: 1em;
        margin: 7px;
        border-radius: 50%;
        border: 6px solid #fff;
        border-color: #fff transparent #fff transparent;
        animation: lds-dual-ring 1.2s linear infinite;
    }

@keyframes lds-dual-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



@media only screen and (max-width: 1000px) {
    #left, #right {
        float: initial;
        margin: 25px auto;
        height: initial;
    }

    #left {
        width: 90%;
        min-height: 600px;
    }

    #right {
        font-size: 0.8em;
        width: calc(90% + 10px);
    }

    .date-location {
        height: initial;
    }

    .text {
        position: initial;
        top: initial;
        transform: initial;
        padding: 0.5em 0;
    }
}
