* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    background: #511c2e;
    background-size: 200px, cover;
    background-repeat: no-repeat;
    background-position: 50% -3%, 0 0; 
    background-attachment: fixed;

    color: white;
    font-family: 'Roboto', sans-serif;
    height: 100%;
    padding: 0;
    margin: 0;
} 
/*img {
    height: 70%;
    opacity: 0.8;
    object-fit: fill;
    object-position: 30% 20%;
} '*/



#bgimg {
    display: block;
    /*max-width: 200px;
    height: auto; */
    height: auto;
    width: 40%;
    max-width: 200px;
    object-fit: contain;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    margin-top: 2vw;
}

h1 {
    margin-bottom: 5%;
    margin-top: 0%;
    font-family: 'Suez One', serif;
    font-size: 250%;
    color: #e3be52;
    font-weight: 400;
}
h3 {
    text-align: left;
    font-weight: 400;
    font-size: 120%;
    margin: 0;
    margin-bottom: 5px;
}
#dja {
    margin-top: 20px;
    margin-bottom: 13px;
}

.container {
    display: table;
    position: absolute;
    top: 0;
    left: 0;
    height: 90%;
    width: 100%;
}

.mid {
    display: table-cell;
    vertical-align: middle;
}

.formWrapper {
    padding: 2%;
    margin-left: auto;
    margin-right: auto;
    width: 480px;
    text-align: center;
    background-color: rgb(48, 48, 48);
    position: relative;
    background-color: rgb(12, 12, 12);

    border-radius: 15px;
}


.LeftAbove {
    padding: 0 1em;
    display: flex;
    flex-direction: row-reverse;
    justify-content: left; 
}

.LeftAbove input {
    width: 100%;
    margin-bottom: 25px;
    padding: 15px 4px;
    font-size: 150%;
    color: #fff;
    border: 1px solid white;
    border-radius: 10px;
    background: transparent;
    outline: none;
    transition: .5s;
}
.LeftAbove input:disabled {
    border: 1px solid grey;
    color: grey;
} 

.LeftAbove input:disabled + label {
    color: grey;
}

#Iname {
    margin-bottom: 15px;
}
.Acknowledge {
    display: block;
    margin-bottom: 10px;
    margin-left: 15px;
    font-size: 120%;
    text-align: left;
}
.cba {
    float: left;
}
.align-text {
    overflow: hidden; 
    padding: 0px 0px 0px 5px;
    text-align: left;
}

#EDI {
    margin-top: 2vh;
}

a, a:visited {
    color: #e3be52;
}

.AInfo {
    margin-top: 15px
}

.LeftAbove label {
    position: absolute;
    font-size: 120%;
    color: #fff;
    pointer-events: none;
    transition: .5s;
}

.LeftAbove input[type="text"]:focus + label, 
.LeftAbove input[type="text"]:valid + label,
.LeftAbove input[type="email"]:focus + label, 
.LeftAbove input[type="email"]:valid + label, 
.LeftAbove input[type="email"]:invalid + label {
    color: aqua;
    font-size: 100%;
    transform: translateY(-20px);
} 

.confirmation p {
    font-size: 100%;
    transition: .5s;
    margin-top: 0;
    margin-bottom: 20px;
}


#submit {
    background: transparent;
    color: #e3be52;
    border: none;
    font-size: 180%;
    font-family: 'Barlow';
    font-weight: 100;
    padding: 5px 14px;
    border: 2px solid #511c2e;
    transition: .5s;
    text-align: center;
    border-radius: 8px;
}
#submit:hover {
    background-color: #68243a7e;
}

@media (max-width:1320px) {
    body {
        background-size: 45vw, cover;
        background-position: -6vw -3vw, 0 0;
     }
    /*#bgimg {
        margin-bottom: 2%;
    } */
}

@media (max-width:600px) {
    body {
        background-size: 100vw, cover;
        background-position: 0px 45vh, 0 0; 
    }
    #bgimg {
        width: 20vh;
    }

    .formWrapper {
        max-width: 400px; 
    } 
    h1 {
        font-size: 170%;
        margin-bottom: 4%;
    }
    
    .LeftAbove input {
        font-size: 100%;
        margin-bottom: 20px;
        padding: 13px 3px;
    }
    .LeftAbove label {
        font-size: 100%;
    }
    .LeftAbove input[type="text"]:focus + label, 
    .LeftAbove input[type="text"]:valid + label,
    .LeftAbove input[type="email"]:focus + label, 
    .LeftAbove input[type="email"]:valid + label, 
    .LeftAbove input[type="email"]:invalid + label {
        font-size: 85%;
    }
    .Acknowledge {
        font-size: 100%;
        margin-bottom: 10px;
    }
    h3 {
        font-size: 100%;
    }
    .confirmation p {
        font-size: 90%;
        margin-bottom: 20px;
    }
    #submit {
        font-size: 120%;
        margin-bottom: 3px;
    }
    #Iname {
        margin-bottom: 10px;
    }
}

@media (max-width:600px) and (max-height:630px){
    body {
        background-position: 0px 40vh, 0 0; 
    }
}

@media (min-height: 1000px) {
    #bgimg {
        max-width: 18vh;
        margin-bottom: 2.5vw;
    }
}
@media (min-height: 650px) and (max-width:600px){
    #bgimg {
        margin-bottom: 6vw;
    }
}

@media (max-width:470px) {
    body {
        background-size: 100vw, cover;
        background-position: 0px 50vh, 0 0; 
    }
    
    #bgimg {
        width: 18vh;
        margin-bottom: 2vh;
    } 

    .formWrapper {
        max-width: 90vw;
    } 
    h1 {
        font-size: 170%;
        margin-bottom: 2%;
    }
    
    .LeftAbove input {
        font-size: 100%;
        margin-bottom: 20px;
        padding: 1.7vh 0.6vh;
    }
    .LeftAbove label {
        font-size: 100%;
    }
    .LeftAbove input[type="text"]:focus + label, 
    .LeftAbove input[type="text"]:valid + label,
    .LeftAbove input[type="email"]:focus + label, 
    .LeftAbove input[type="email"]:valid + label, 
    .LeftAbove input[type="email"]:invalid + label {
        font-size: 85%;
    }
    .Acknowledge {
        font-size: 100%;
    }
    h3 {
        font-size: 100%;
    }
    .confirmation p {
        font-size: 90%;
        margin-bottom: 20px;
    }
    #submit {
        font-size: 120%;
    }
    #Iname {
        margin-bottom: 15px;
    }
}

@media (max-width:370px) {
    body {
        background-position: 0px 57vh, 0 0; 
    }
    #bgimg {
        width: 18vh;
    } 
    
    h1 {
        font-size: 7vw;
        margin-bottom: 1.4vh;
    }
    
    .LeftAbove input {
        font-size: 4.3vw;
        margin-bottom: 1.4vh;
    }
    .LeftAbove label {
        font-size: 4.3vw;
    }
    .LeftAbove input[type="text"]:focus + label, 
    .LeftAbove input[type="text"]:valid + label,
    .LeftAbove input[type="email"]:focus + label, 
    .LeftAbove input[type="email"]:valid + label, 
    .LeftAbove input[type="email"]:invalid + label {
        font-size: 3.7vw;
        transform: translateY(-6vw);
    }
    .Acknowledge {
        font-size: 4vw;
        margin-bottom: 1.3vh;
    }
    h3 {
        font-size: 4.5vw;
        margin-bottom: 0.5vh;
    }
    .confirmation p {
        font-size: 3.9vw;
        margin-bottom: 1.4vh;
    }
    #submit {
        font-size: 5vw;
    }
    #Iname {
        margin-bottom: 1vh;
    }
    input[type="checkbox"] {
        width: 4vw;
        height: 3.6vw;
    }
}
