/* #region base */

@font-face {
    font-family: 'Lexend';
    src: url('../web/font/Lexend.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue';
    src: url('../web/font/BebasNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --naranja: linear-gradient(110deg, rgb(255, 200, 120) 0%, rgb(255, 165, 0) 12px, rgb(255, 165, 0) calc(100% - 12px), rgb(200, 120, 0) 100%);
    --sombra: 0 0 4px black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif;
}

body {
    background-color: rgb(20, 20, 20);
    padding: 2%;
    padding-bottom: 100px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%), url('../web/img/bg1.jpg');
    background-size: 100%, 600px;
}

header {
    color: white;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

main {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

section {
    position: relative;
    padding: 20px 0;
}

/* #endregion */

/* #region hoja */

.fueya {
    padding: 28px 8px 28px 28px;
    background: url('../web/img/barbes.svg') repeat-y, linear-gradient(to right, transparent 20px, white 20px);
}

.fueya_header,
.fueya_footer {
    min-height: 40px;
    position: absolute;
    left: 28px;
    right: 8px;
    display: flex;
    gap: 8px;
}

.fueya_header {
    top: 0;
}

.fueya_footer {
    bottom: 0;
    justify-content: center;
}

.fueya_header_title {
    background-color: rgb(255, 255, 104);
    box-shadow: var(--sombra);
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.fueya_header_buttons {
    flex: 1;
    display: flex;
    justify-content: end;
    gap: 8px;
}

/* #endregion */

/* #region botones */

.boton1 {
    background: var(--naranja);
    box-shadow: var(--sombra);
    border: none;
    border-radius: 2px;
    height: 40px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-decoration: none;
}

.boton1_symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.boton1_texto {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding-right: 12px;
}

@media (max-width: 599px) {
    .boton1_texto {
        display: none;
    }
}

/* #endregion */

/* #region vocabulario */

.voc {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.voc_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 1200px) {
    .voc_grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .voc_grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
    .voc_grid { grid-template-columns: repeat(2, 1fr); }
}

.voc_grid.is-hidden-labels .voc_item_text {
    visibility: hidden;
}

.voc_grid.is-uppercase-labels .voc_item_text {
    text-transform: uppercase;
}

.voc_item {
    background-color: white;
    box-shadow: 0 0 4px grey;
    position: relative;
    cursor: pointer;
    aspect-ratio: 6 / 5;
    container-type: inline-size;
}

.voc_item img {
    background-color: lightblue;
    position: absolute;
    inset: 4cqw;
    width: calc(100% - 8cqw);
    height: calc(100% - 8cqw);
    object-fit: contain;
}

.voc_item_text {
    font-size: 10cqw;
    position: absolute;
    bottom: 4cqw;
    left: 4cqw;
    right: 4cqw;
    padding: 0 4px;
    text-align: center;
    letter-spacing: 0.06em;
    word-spacing: 0.3em;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-shadow: var(--sombra);
}

.voc_item.is-correct {
    background-color: lightgreen;
}

.voc_item.is-wrong {
    background-color: lightcoral;
}

/* #endregion */

/* #region reproductor */

.voc_player {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    height: 60px;
}

.boton_player {
    background: var(--naranja);
    box-shadow: var(--sombra);
    border: none;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.boton_player:first-child {
    border-radius: 4px 0 0 4px;
}

.boton_player:last-child {
    border-radius: 0 4px 4px 0;
}

.boton_player_symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
}

.boton_player_texto {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    padding-right: 20px;
}

/* #endregion */

/* #region order / write */

.voc_fila {
    padding: 0;
    min-height: 150px;
}

.voc_fila .voc_item {
    position: absolute;
    left: 28px;
    width: 180px;
}

.voc_fila .fueya {
    min-height: 120px;
    margin-top: 15px;
    padding: 8px 8px 8px 216px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.fueya_campo {
    min-height: 48px;
    border: 2px solid transparent;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 4px;
    font-size: 20px;
    font-weight: bold;
    outline: none;
}

.fueya_campo:first-child {
    border-color: lightgrey;
}

.fueya_campo[contenteditable] + [data-extra]:empty {
    display: none;
}

.fueya_campo.is-correct {
    background-color: lightgreen;
}

.fueya_campo.is-wrong {
    background-color: lightcoral;
}

/* un contenedor flex vacío no genera línea de texto y el cursor se iría arriba a la izquierda */
.fueya_campo[contenteditable] {
    display: block;
    text-align: center;
    line-height: 44px;
}

@media (max-width: 750px) {
    .voc_fila .voc_item {
        left: 50%;
        transform: translateX(-50%);
    }

    .voc_fila .fueya {
        margin-top: 100px;
        padding: 58px 8px 8px 28px;
    }
}

/* #endregion */

/* #region irregular verbs */

.fueya_past {
    width: 480px;
    max-width: 100%;
    min-width: 0;
    margin: auto;
}

.fueya_past table {
    width: 100%;
    cursor: default;
}

.fueya_past table th,
.fueya_past table td {
    height: 32px;
    padding: 0 12px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .fueya_past table th,
    .fueya_past table td {
        font-size: 3.2vw;
    }
}

.fueya_past table tr.past-g1:nth-child(even) td {
    background-color: #c2e4ff;
}

.fueya_past table tr.past-g1:nth-child(odd) td {
    background-color: #dff2ff;
}

.fueya_past table tr.past-g2:nth-child(even) td {
    background-color: #ffc8c8;
}

.fueya_past table tr.past-g2:nth-child(odd) td {
    background-color: #ffe2e2;
}

.fueya_past table tr.past-g3:nth-child(even) td {
    background-color: #ffea90;
}

.fueya_past table tr.past-g3:nth-child(odd) td {
    background-color: #fff6c4;
}

.fueya_past table tr.past-g4:nth-child(even) td {
    background-color: #c4ebb4;
}

.fueya_past table tr.past-g4:nth-child(odd) td {
    background-color: #def4d2;
}

.fueya_past .fueya_footer .past-btn-test {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fueya_past .fueya_footer .past-btn-test .boton1_symbol {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 10px;
    font-weight: bold;
    line-height: 1.15;
    text-align: center;
}

.fueya_past .fueya_footer .past-btn-1 {
    background: linear-gradient(110deg, #f2f9ff 0%, #8ec8f0 12px, #8ec8f0 calc(100% - 12px), #2f6a9a 100%);
    color: #051e4a;
}

.fueya_past .fueya_footer .past-btn-2 {
    background: linear-gradient(110deg, #fff0f0 0%, #e89898 12px, #e89898 calc(100% - 12px), #a03a3a 100%);
    color: #4a0000;
}

.fueya_past .fueya_footer .past-btn-3 {
    background: linear-gradient(110deg, #fff8d4 0%, #e8d04a 12px, #e8d04a calc(100% - 12px), #8a7808 100%);
    color: #3d2e00;
}

.fueya_past .fueya_footer .past-btn-4 {
    background: linear-gradient(110deg, #eefae6 0%, #8ed47a 12px, #8ed47a calc(100% - 12px), #3d8a32 100%);
    color: #06240a;
}

.fueya_past .fueya_footer .past-btn-5 {
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.5) 0%, transparent 12px, transparent calc(100% - 12px), rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(90deg, #8ec8f0 0 25%, #e89898 25% 50%, #e8d04a 50% 75%, #8ed47a 75% 100%);
    color: #222;
}

.fueya_past.is-test table tr[class*="past-g"]:nth-child(even) td {
    background-color: #d8d8d8;
}

.fueya_past.is-test table tr[class*="past-g"]:nth-child(odd) td {
    background-color: #eeeeee;
}

.fueya_past.is-test table th:nth-child(1),
.fueya_past.is-test table td:nth-child(1) {
    width: 1%;
    white-space: nowrap;
}

.fueya_past.is-test table td.past-input {
    cursor: text;
    outline: none;
}

.fueya_past.is-test table td.past-input.is-correct {
    background-color: lightgreen !important;
}

.fueya_past.is-test table td.past-input.is-wrong {
    background-color: lightcoral !important;
}

.fueya_past.is-test .past-solucion {
    margin-left: 6px;
    opacity: 0.75;
    pointer-events: none;
}

.past-nota:not([hidden]) {
    margin: 0 auto;
    width: max-content;
    height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255, 255, 104);
    box-shadow: var(--sombra);
    font-size: 20px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.7);
}

/* #endregion */

/* #region arasaac */

.arasaac blockquote {
    font-family: 'Bebas Neue', sans-serif;
    color: grey;
    text-transform: uppercase;
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.arasaac a {
    color: inherit;
    color:orange;
    text-decoration: none;
}

/* #endregion */

/* #region burger */

#b { display: none; }
#b + label {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 11;
    width: 52px;
    height: 52px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}
#b + label span {
    height: 8px;
    border-radius: 2px;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    transition: .2s;
    box-shadow: 0 0 8px #000;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
#b:checked + label span:nth-child(1) { transform: translateY(16px) rotate(45deg); }
#b:checked + label span:nth-child(2) { transform: rotate(45deg); opacity: 0; }
#b:checked + label span:nth-child(3) { transform: translateY(-16px) rotate(-45deg); }

/* #endregion */

/* #region nav */

.menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    max-height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px;
    color: #fff;
    transform: translateX(-100%);
    transition: transform .4s ease;
}
#b:checked ~ .menu {
    transform: translateX(0);
}
@media (max-width: 499px) {
    .menu { width: 100%; }
}
.menu, .menu * {
    font-family: 'Bebas Neue', sans-serif;
    color: #fff;
}
.menu a {
    color: inherit;
    text-decoration: none;
}
.menu_container{
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    scrollbar-width: none;
}
.menu_container::-webkit-scrollbar {
    display: none;
}
.menu_footer{
    padding: 18px;
    flex: 1;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#logoltpe {
    width: 52px;
    height: 52px;
    fill: rgba(255, 255, 255, 0.4)
}

.menu_item1{
    display: flex;
    flex-direction: column;
    gap: 0;
}
.menu_item1.is-open {
    gap: 6px;
}
.menu_item1_header{
    font-size: 32px;
    background-color: rgba(0, 0, 0, 0.8);
    line-height: 1;
    padding: 8px 10px 6px;
    cursor: pointer;
}

.menu_item1_content{
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    height: 0;
    transition: height .4s ease;
}

.menu_item2{
    background-color: rgba(10, 10, 10, 0.6);
    font-size: 28px;
    line-height: 1;
    padding: 4px 6px 2px;
    font-weight: 100;
}

/* #endregion */
