:root {
    --main-color: #EC0000;
    --secondary-color: #FED0C4;
    --main-lighten-color: #EC0000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Santander';
    src:  url('../fonts/Santander.woff') format('woff'),
          url('../fonts/Santander.woff2') format('woff2'),
          url('../fonts/Santander.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Copperplate Gothic Light Regular';
    src:  url('../fonts/Copperplate Gothic Light Regular.woff') format('woff'),
          url('../fonts/Copperplate Gothic Light Regular.woff2') format('woff2'),
          url('../fonts/Copperplate Gothic Light Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


video {
    max-width: 100%;
}

body {
    font-family: 'Santander', sans-serif;
}

.content {
    display: grid;
    height: 100vh;
    grid-template-rows: auto 1fr auto;
    background: url('../img/bg.png');
    background-size: cover;
    overflow: hidden;
}

.main {
    display: grid;
    justify-content: center;
}

.main .sided.butterfly {
    align-self: center;
    padding-bottom: 60px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
    animation: alive 6s ease-in-out infinite alternate;
    will-change: tranform;
    transform: rotateY(50deg);
    max-width: 90vw;
}

.sided.butterfly.htmx-added {
    opacity: 0;
}

.main .small.butterfly {
    width: 150px;
}

.control-wrapper {
    display: grid;
    grid-template-rows: 1fr 200px;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.control-wrapper.htmx-added {
    opacity: 0;
}

.control-wrapper .info {
    align-self: center;
    display: grid;
}

.control-wrapper.finished{
    grid-template-rows: 1fr;
}

.control-wrapper.finished .small.butterfly {
    width: 300px;
}

.info .input-area {
    display: grid;
    grid-template-rows: 0.6fr 1fr;
    padding: 10px;
    color: var(--main-lighten-color);
    font-size: 26px;
}

.info input {
    border: 1px solid var(--main-color);
    width: 60vw;
    font-size: 30px;
    outline: none;
    padding: 5px 15px;
    border-radius: 5px;
}

.info select {
    background: white;
    border: 1px solid var(--main-color);
    font-size: 26px;
    border-radius: 5px;
    padding: 5px 15px;
}

.bug-container {
    display: grid;
    place-content: center;
    /* background: radial-gradient(white 10%, transparent 70%); */
    margin: 0 auto;
    justify-self: end;
}

.header {
    font-family: 'Copperplate Gothic Light Regular', sans-serif;
    text-align: center;
    color: var(--main-lighten-color);
    font-size: 60px;
    line-height: 1.3em;
    padding-top: 100px;
}

.footer {
    justify-self: center;
    padding: 20px;
    width: 150px;
}

.start-container {
    display: grid;
    place-content: center;
}

.btn {
    background: var(--main-color);
    color: var(--secondary-color);
    border: none;
    font-family: 'Thicker Regular trial', sans-serif;
    border-radius: 10px;
    cursor: pointer;
}

.btn.big {
    font-size: 50px;
    padding: 30px 40px 25px 40px;
    box-shadow: 1px 5px 10px black;
}

.btn.small {
    font-size: 35px;
    padding: 10px 20px 5px 20px;
    box-shadow: 1px 1px 5px black;
}

.options,
.end-container {
    display: grid;
    gap: 25px;
    align-self: center;
    max-width: 80vw;
    color: var(--main-lighten-color);
    font-size: 40px;
    text-align: center;
}

.big-gap {
    gap: 55px;
}

.option-xenotes,
.option-xenses {
    height: 195px;
    border-radius: 15px;
    overflow: hidden;
    display: grid;
    place-items: center;
    cursor: pointer;
    width: 100%;
}

.options .black-layer,
.options img {
    z-index: 1;
}

.options img,
.options .video,
.options .black-layer {
    grid-row: 1/2;
    grid-column: 1/2;
}

.options .black-layer,
.options .video {
    height: 195px;
    background: dark;
    width: 100%;
}

.options .video video {
    transform: translateY(-140px) scale(1.1);
}

.options img {
    height: 65px;
}

.options .black-layer {
    background: radial-gradient(rgba(0,0,0,0.1) 10%, rgba(0,0,0,0.8));
}

.big-title {
    font-size: 80px;
}

.message {
    font-size: 30px;
}

.reseter {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
}

/* screen */

#front-layer {
    position: absolute;
    z-index: 999;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

#front-layer video {
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#front-layer video.htmx-added {
    opacity: 0;
}

.screen .header {
    font-size: 80px;
    font-weight: bold;
    padding-top: 130px;
}

.screen .footer {
    width: 220px;
    padding: 40px;
}

.screen .options {
    gap: 70px;
    transform: none;
}

.screen .options .black-layer,
.screen .option-xenotes,
.screen .option-xenses {
    height: 280px;
}

.screen .options img {
    height: 80px;
}

.screen .options .title {
    font-size: 70px;
}

.screen .main .small.butterfly {
    width: 220px;
}

.screen .options .video video {
  transform: translateY(-251px) scale(1.1);
}

.screen .big-title {
    font-size: 120px
}

.screen .message {
    font-size: 55px;
}

.screen .control-wrapper.finished .small.butterfly {
    width: 45vw;
}

.screen .big-gap {
    gap: 80px;
}

.screen .bug-container {
    width: 45vw;
    height: auto;
}

/* Animaciones */

@keyframes alive {
    0%  { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
