:root {
    --purple: #8245ad;
    --purple-dark: #5d327c;
    --orange: #fe6f2c;
    --orange-light: #f89430;
    --white: #ffffff;
    --red: #e81b1b;
    --green: #5bbc3b;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--purple);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
}

h1 {
    text-transform: uppercase;
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

p {
    font-weight: 500;
    font-size: 1.1rem;
    opacity: 0.8;
}

section {
    position: relative;
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 3rem 0;
}

section .logo {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

section .logo img {
    width: 100%;
}

.resource {
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border: solid 0.4rem var(--purple-dark);
    border-radius: 0.2rem;
}

.resource.show {
    opacity: 1;
}

.resource iframe {
    display: block;
    margin: 0;
    padding: 0;
}

.robots {
    position: relative;
    width: 100%;
    height: 30vw;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    background-image: url('../images/robots.png');
}

.modal {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;

    animation-delay: 0.5s;
    transition: visibility 0.1s;
}

.modal::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    top: 0;
    left: 0;
    padding: 0;
    opacity: 0.4;

    transition: opacity 0.5s ease-in-out;
}

.modal .content {
    position: absolute;
    box-sizing: border-box;
    padding: 6rem 3rem;
    width: 90%;
    max-width: 1000px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    transform: translate(-50%, -50%);
    background-color: var(--purple);
    border-radius: 2rem;
    text-align: center;
}

.modal .logo {
    display: inline-block;
    width: 100px;
    margin-bottom: 2rem;
}

.modal .logo img {
    max-width: 100%;
}

.modal form {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 500px;
}

.modal form input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    outline: none;
    border: none;
    border-radius: 0.8rem;
    font-family: 'Montserrat';
    font-size: 1.2rem;
    margin-top: 4rem;
}

.modal form button {
    margin-top: 1rem;
    outline: none;
    border: none;
    font-size: 1.2rem;
    color: var(--white);
    background-color: var(--orange);
    font-weight: 800;
    padding: 1rem 1.5rem;
    border-radius: 100rem;
    text-transform: uppercase;
    cursor: pointer;

    transition: background-color 0.2s ease-in-out;
}

.modal form button:hover,
.modal form button:focus {
    background-color: var(--orange-light);
}

.modal.error .content button {
    background-color: red;

    -webkit-animation-name: shake_a;
    animation-name: shake_a;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}

.modal.modal-complete .content {
    -webkit-animation-name: close_m;
    animation-name: close_m;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
}

.modal.modal-complete {
    pointer-events: none;
    visibility: hidden;
}

.modal.modal-complete::before {
    opacity: 0;
}


/*--------------------------------------
ANIMATIONS
--------------------------------------*/

/* Wobble Horizontal */
@keyframes shake_a {
    from, to {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }
  
    10%, 30%, 50%, 70%, 90% {
      -webkit-transform: translate3d(-2px, 0, 0);
      transform: translate3d(-2px, 0, 0);
    }
  
    20%, 40%, 60%, 80% {
      -webkit-transform: translate3d(2px, 0, 0);
      transform: translate3d(2px, 0, 0);
    }
}

@keyframes close_m {
    0% {
        transform: translate(-50%, -50%);
    }
    
    100% {
        transform: translate(-50%, -30%);
    }
}

@media all and (max-width: 480px) {
    html {
        font-size: 3vw;
    }
}