@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lemonada:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lemonada:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bree+Serif&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lemonada:wght@300..700&family=Press+Start+2P&display=swap');

:root{
    --header-height: 5rem;

    --body-font: "Inter", sans-serif;
    --normal-font-size: .85rem;

    --font-regular: 400;
    --font-semi-bold: 600;

    --z-tooltip: 10;
    --z-fixed: 100;
    
}

@media screen and (min-width: 1024px) {
    :root {
        --normal-font-size: 1rem;
    }
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: #1a1a1a;
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    z-index: var(--z-fixed);
}

.nav{
    height: var(--header-height);
}

.nav__logo,
.nav__burger,
.nav__close{
    color: white;
}

.nav__data{
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo{
    display: inline-flex;
    align-items: center;
    column-gap: .25rem;
    font-family: "Press Start 2P", system-ui;
    font-weight: var(--font-semi-bold);
}

.imglogo{
    width:75px;
    height:auto;
}

.nav__toggle{
    position: relative;
    width: 32px;
    height: 32px;
}

.nav__burger,
.nav__close{
    position: absolute;
    width: max-content;
    height: max-content;
    inset: 0;
    margin: auto;
    font-size: 1.25rem;
    cursor: pointer;
    transition: opacity 1.s, transform, 0.4s;
}

.nav__close{
    opacity: 0;
}

/* Mobile */

@media screen and (max-width:1118px) {
    .nav__menu{
        position: absolute;
        left: 0;
        top: 2.5rem;
        width: 100%;
        height: calc(100vh - 3.5rem);
        overflow: auto;
        pointer-events: none;
        opacity: 0;
        transition: top .4s, opacity .3s;
    }
    .nav__menu::-webkit-scrollbar{
        width: 0;
    }
    .nav__list{
        padding-top: 1rem;
    }    
}

.nav__link{
    color: white;
    background-color: black;
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color .3s;
}

.nav__link:hover{
    background-color: red;
}

.show-menu{
    opacity: 1;
    top: 3.5rem;
    pointer-events: initial;
}

.show-icon .nav__burger{
    opacity: 0;
    transform: rotate(90deg);
}

.show-icon .nav__close{
    opacity: 1;
    transform: rotate(90deg);
}

/*BREAKPOINTS*/

/*Small device*/
@media screen and (max-width: 340px) {
    .container{
        margin-inline: 1rem;
    }

    .nav__link{
        padding-inline: 1rem;
    }
}

/*Large device*/
@media screen and (min-width: 1118px) {
    .container{
        margin-inline: auto;
    }

    .nav{
        height: calc(var(--header-height) + 2rem);
        display: flex;
        justify-content: space-between;
    }
    .nav__toggle{
        display: none;
    }
    .nav__list{
        height: 100%;
        display: flex;
        column-gap: 3rem;
    }
    .nav__link{
        height: 100%;
        padding: 0;
        justify-content: initial;
        column-gap: 25rem;
    }
    .nav__link:hover{
        background-color: transparent;
    }
}

.centrar{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    max-width:  min(1120px, 100%);
}

.section{
    color: white;
    text-align: left;
}

.presentation{
    color: white;
    text-align: center;
    align-items: center;
}

.Hellostars{
    font-family: "Press Start 2P", system-ui;
}

.presentation a{
    color: black;
    background-color: yellow;
    padding: 1rem;
    font-weight: var(--font-semi-bold);
    border-radius: 8%;
}

.presentation a:hover{
    color: red;
    background-color: white;
}

/* animation */

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.fade{
    animation: appear 5s linear;
    animation-timeline: view();
    animation-range: entry 0;
}

.news{
    justify-content: space-between;
    align-items: center;
    align-content: center;
    display: inline-flex;
}

.newschild{
    width: 340px;
    flex: 1 1 auto;
    font-family: var(--body-font);
    padding-top: 1rem;
    padding-bottom: 1rem;
    justify-items: left;
    align-items: center;
    border-radius: 16%;
}

.newsdoc{
    flex-direction: column;
}

.newsdoccard{
    width: 100%;
    flex-direction: row;
    text-align: left;
    align-items: left;
}

.newsdoccard img{
    width: 50px;
    padding: 1rem;
}

@media(max-width:700px){
    .newsdoccard{
        flex-direction: column;
        text-align: center;
    }
    .newsdoccard img{
        width: 100%;
    }
}

.newstitle{
    justify-content: space-between;
    align-items: center;
    align-content: center;
    display: inline-flex;
}

.wrapper{
    height: 100px;
    width: 90%;
    margin-inline:auto;
    position: relative;
    top:-75px;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0),
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0)
    );
}

@keyframes scrolleo {
    to {
        left: -300px;
    }
}

.wrapperitem{
    color: rgba(255, 255, 255, 0.25);
    position: absolute;
    height:100px;
    align-items: center;
    left: calc(500px * 5);
    animation: scrolleo 10s linear;
    animation-iteration-count: infinite;
    font-family: "Press Start 2P", system-ui;
}

.witem1{
    animation-delay: calc(10s / 5 * (5 - 1) * -1);
}

.witem2{
    animation-delay: calc(10s / 5 * (5 - 2) * -1);
}

.witem3{
    animation-delay: calc(10s / 5 * (5 - 3) * -1);
}

.witem4{
    animation-delay: calc(10s / 5 * (5 - 4) * -1);
}

.witem5{
    animation-delay: calc(10s / 5 * (5 - 5) * -1);
}

.tailer{
    
    width: 100%;
    background-color: white;
    z-index: var(--z-fixed);
    height: auto;
    padding: 2rem;
    padding-left: 5rem;
    padding-right: 5rem;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    display: inline-flex;
}

.tailbutton{
    background-color: rgb(130, 130, 130);
    color: white;
    align-items: right;
    align-content: right;
    padding: 1rem;
    border-radius: 8%;
    border-style:double;
    display: inline-flex;
    cursor: not-allowed
}

@media(max-width:700px){
    .tailer{
        flex-direction: column;
        text-align: center;
    }
}

@media(max-width:1050px){
    .news{
        flex-direction: column;
        text-align: center;
    }
}