:root {

    --rw_hltBlue:#05DCE6;
    --rw_ltBlue:#00BDFB;
    --rw_typeBlue: #6e8efe;
    --rw_paleBlue: #567aff;
    --rw_blue: #6d8cff;
    --rw_dkBlue: #5b59c9;
    --rw_black: #3b3b3b;
    --rw_dkgrey: #4b4b4b;
    --rw_dkblack: #292929;
    --rw_type: #f2f2e6;
    --formType: var(--rw_typeBlue);
    --rw_font: Montserrat, sans-serif;
    --font-size: clamp(.9rem, 1rem, 20ch);
    --line-height: clamp(1rem, 1.2rem, 20ch);
    --textBox-width: clamp(180px, 240px, 260px);
    --textBox-height: clamp(30px, 32px, 38px);
    --mainBoxSize: clamp(375px, 580px, 80vmin);
}
@font-face {
    font-family: "Montserrat", sans-serif;
    src: "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;";
    font-optical-sizing: auto;
    font-style: normal;
}
* {
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}
body {
    background-color: var(--rw_blue);
    color: var(--rw_formType);
    font-family: var(--rw_font);
    font-weight: 300;
    font-style: normal;
    font-size: var(--font-size);
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

body img {
    display: fixed;
    object-fit: cover;
    width: 100%;
    height: 100vh;
    z-index: 0;
}

p, .hotlink {
    color: var(--formType);
    text-align: center;
}
#legal {
    font-size: .8rem;
    padding-top: 40px;
}
.form-container > p, form > p, .modal > p {
    padding: .5rem 0;
    width: 100%;
}

label {
    color: var(--formType);
    text-align: right;
}

.alert {
    color: var(--rw_black);
    background-color: var(--formType);
    text-align: center;
    font-weight: 600;
}
.errorMessage > * {
    display: grid;
    place-items: center;
    align-self: center;
}
.errorMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

input:not(#email)::placeholder {
    color: var(--rw_dkgrey);
}
input::placeholder {
    color: var(--rw_dkBlue);
}


.form-container {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    height: auto;
    min-height: 440px;
    min-width: var(--mainBoxSize);
    background-color: var(--rw_black);
    padding: min(2rem, 2.5rem);
}

form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-box {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    width: 100%;
    flex: 1;
    margin: .3rem;
}

input, select, option {
    font-family: var(--rw_font);
    font-weight: 300;
    font-style: normal;
    font-size: var(--font-size);
    width: var(--textBox-width);
    height: var(--textBox-height);
    text-align: center;
    border: none;
    margin: .5em;
    caret-color: var(--rw_blue);
    color: var(--formType);
    background-color: var(--rw_dkblack);
    -webkit-appearance: none;
    padding-left: 1rem;
}
/* .input-box * {
    outline: 1px solid magenta;
} */


#submitBtn, #exitBtn {
    font-family: var(--rw_font);
    font-weight: 600;
    font-style: normal;
    font-size: var(--font-size);
    align-self: center;
    padding: .3rem 0;
    background-color: var(--rw_paleBlue);
    color: var(--rw_black);
    border: none;
    margin: 2rem;
    width: 120px;
    height: 50px;
    cursor: pointer;
    /* border: 1px solid var(--rw_blue); */
    z-index: 10;
}

.urlLink > .styled-input {
    width: 100%;
}
#exitBtn {
    width: auto;
    padding: 0 .5rem .3rem .5rem;

}

.wrapper {
    width: 100%;
    height: 100%;
}

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: space-between;
    z-index: 99;
    background-color: var(--rw_black);
    opacity: .93;
    padding: 2rem;
    line-height: 1.7em;
    /* contain: content; */
}

.modal a {
    cursor: pointer;
}

.off {
    display: none;
}

@media (max-width:500px) {
    .modal {
        width: 100%;
        height: 100%;
    }
    * {
       padding: unset;
       margin: 0;
    }
    .form-container {
        padding: 2rem 1rem;
        /* min-width: 100vmin; */
        height: auto;
        overflow-y: scroll;
    }
    input, select, option {
        width: 50%;
    }
    .input-box {
        flex: 0;
        /* outline: 1px solid magenta; */

    }
}