:root {
    --white: white;
    --dim: #00000020;
    --smoke: #ffffff4d;
    --index: #000000b8;

    --spacing-l: 30px;
    --spacing-m: 15px;
    --spacing-s: 10px;
    --spacing-xs: 5px;

    --radius-s: 5px;
    --radius-m: 10px;

    --bold: 'Nunito ExtraBold';
    --regular: 'Nunito Regular';

}

html {}

body {
    margin: 15px;
    padding: 0;

    overflow-x: hidden;

    /* min-height: 200vh; */

    background-image: url(../images/background.png);
    background-position: top top;
    background-size: cover;
    background-repeat: none;

    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: large;
    color: var(--white);
    font-family: var(--regular);

}

a,
a:hover,
a:visited {
    color: inherit;
    text-decoration: inherit;
}

p {
    margin: 0;
}

.buttons:active {
    background-color: white;
    color: red;
}

/************** STYLES ***************/

.text-header {
    font-family: var(--bold);
    font-size: 130%;
}

/************** HEADER ***************/

#logo-top {
    width: 100%;
    margin-bottom: var(--spacing-m);
    height: auto;
}

.intro {
    line-height: 1.3;
    font-size: 110%;
    display: flex;
    flex-direction: column;
    height: calc(var(--vh, 1vh) * 100 - 30px);
    min-height: calc(var(--vh, 1vh) * 100 - 30px);
    transition: all ease-in-out .5s;

}


.box {
    padding: var(--spacing-m) 0 0 0;

    display: flex;
    flex-direction: column;
    /*! height: calc(100% - var(--spacing-m)); */
    transition: all ease-in-out .8s;

    border-top: 2px solid var(--white);

}

#texto,
.bor {
    transition: all ease-in-out .8s;
    padding-bottom: var(--spacing-l);
    line-height: 1.3;
}

.texto80 {
    opacity: .6;
}


.remove {
    animation: .8s ease-in-out;
    animation-name: remove;
    animation-fill-mode: forwards;
    transition: all ease-in-out .8s;
}

@keyframes remove {
    0% {
        height: fit-content;
    }

    100% {
        height: 60px;
        overflow-x: scroll;
        -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent);
    }
}

.hidden {
    transition: all ease-in-out .8s;
    display: none;
    animation: .8s ease-in-out;
    animation-name: hidden;
    animation-fill-mode: forwards;
}

@keyframes hidden {
    0% {
        opacity: 1;
        height: 100%;
    }

    99% {
        display: block;
    }

    100% {
        height: 40px;
        opacity: 0;
        display: none;
    }
}

.fit {
    height: fit-content;
    transition: all ease-in-out .5s;
    opacity: .6;
}


#contact {
    margin: 0;
    border: 1px solid white;
    border-radius: 20px;
    padding: 0px 8px;
    transition: all ease-in-out .5s;
}

#contact:hover {
    text-decoration: none;
    background-color: white;
    color: black;
    transition: all ease-in-out .5s;


}

.updated {

    padding-top: var(--spacing-m);
    border-top: 2px solid white;


}

#updated {
    font-size: 90%;
    text-align: center;
    /*! border: 1px dotted white; */
    border-radius: 10px;
    padding: var(--spacing-s);
    text-decoration: none;
    background-color: #ffffff26;
    color: white;
}

#updated>a {
    text-decoration: underline;
}

#updated>a:hover {
    text-decoration: none;

}



.buttons {
    font-size: 110%;
    text-align: center;
    padding: var(--spacing-m);
    width: auto;
    /*! background-color: white; */
    /*! color: red; */
    /*! color: red; */
    transition: all ease-in-out .8s;
    text-decoration: underline;
    box-sizing: border-box;
    border: 2px solid white;
    border-radius: 130px;
    text-decoration: navajowhite;
    /*! color: red; */
}

.buttons:hover {
    box-shadow: 0px 0px 0 transparent;
    cursor: pointer;
    text-decoration: none;

}

/************** INDEX ***************/

.guide {
    position: fixed;
    top: 0;
    left: 50vw;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    font-size: 2rem;
    transform: translate(-50%, -100%);

    border-width: 2px 2px 0 2px;
    border-color: white;
    border-style: solid;

    padding: 5px 0 3px 0;

    background-color: var(--index);
    backdrop-filter: blur(10px);
}

.guide:hover,
#list:hover,
#flags:hover {
    cursor: pointer;
}

.rotationClockside {
    animation: .8s ease-in-out;
    animation-name: rotationNormal;
}


@keyframes rotationNormal {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}


.rotationAnticlockside {
    animation: .8s ease-in-out;
    animation-name: rotation;
}


@keyframes rotation {
    0% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(0deg);
    }
}



.index {
    width: 100%;
    box-sizing: border-box;
    padding: var(--spacing-m);
    border-top: 2px solid var(--white);
    transition: all ease-in-out .8s;
    position: fixed;
    bottom: 0;
    left: 0;
    transform: translateY(calc(100%));
    background-color: var(--index);
    backdrop-filter: blur(10px);
}

.indexOpen {
    transition: all ease-in-out .8s;
    transform: translateY(0);
}

.indexHeader {
    margin-bottom: var(--spacing-s);
    font-size: 130%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-items: center;

}

.indexContent {
    background-color: #ffffff26;
    display: grid;
    align-content: start;
    border-radius: var(--radius-m);
    font-size: 200%;
    grid-template-columns: repeat(4, auto);
    padding: var(--spacing-xs);
    overflow-y: scroll;
    overflow-x: hidden;
    margin-bottom: var(--spacing-s);
    height: 30vh;
}

.indexContent>a:last-child {
    border-bottom: none;

}

.selected {
    font-family: var(--bold);
    text-decoration: underline;
}

.disable {
    opacity: 0.4;
}

.indexList {
    grid-template-columns: 1fr;
    font-size: 130%;
}


.hideName {
    display: none;
}

.indexBlock {
    padding: var(--spacing-s);
    height: fit-content;
    border-bottom: 1px solid var(--dim);
    display: block;
}

.indexBlockFlag {
    display: flex;
    justify-content: center;

}

.addLine {
    border-bottom: 0px solid var(--dim);
    display: flex;
}



/************** BLOCKS ***************/
.content {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: var(--spacing-m);
    margin: var(--spacing-m) 0 60px 0;

}

.content>.block:first-child {
    margin-top: 0;

}

.block {
    /*! width: 100%; */
    box-sizing: border-box;

    border-radius: var(--radius-m) var(--radius-m) var(--radius-s) var(--radius-s);
    border-color: var(--dim);
    border-width: 0 2px 2px 2px;
    box-sizing: border-box;
    background-color: var(--dim);

}

.block-name {
    font-family: var(--bold);
    font-size: 130%;

    margin: 0 0 var(--spacing-s) 0;
    background-color: var(--dim);
    padding: var(--spacing-s);

    border-radius: var(--radius-m) var(--radius-m) 0 0;

}

.block-entry {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 var(--spacing-s) var(--spacing-s) var(--spacing-s);

    font-family: var(--bold)
        /* row-gap: var(--spacing-xs); */
}

.content span,
.indexContent span {
    margin-right: var(--spacing-xs);
}

#flag {}

#country {}

#contributor {
    font-size: 70%;
    font-family: var(--regular);
}

#word {
    font-family: var(--regular);

    font-size: 80%;
    grid-column: 1/3;
}

#translate {
    font-size: 150%;
    text-transform: uppercase;

}

.audio * {
    pointer-events: none
}

.audio {
    background-color: var(--dim);
    padding: 2px;
    border-radius: var(--radius-s);
    height: 27px;
    width: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--dim);
}

.audioPlay {
    animation: .8s ease-in-out;
    animation-name: flash;
}


@keyframes flash {
    0% {
        background-color: red;
    }

    100% {
        background-color: var(--dim);
    }
}

#audio img {
    width: 80%;
}