/* Tablet */
@media (max-width: 768px) {
    html {
        min-height: 100vh;
        scroll-behavior: smooth;
        width: 100%;
    }
    body {
        margin-top: 0;
        overflow-x: hidden;
        width: 100%;
        background-image: url('./img/background.webp');
        background-size: cover;
        background-position: center;
    }

    .contentGames, .navbar ul, .main-news, .search-container {
        flex-direction: column;
        align-items: center;
    }

    .contentGames #login .login-button{
        width: 100%;
    }

    .news-item, .recent-news {
        width: 88%;
    }

    .search-bar {
        display: block;
    }

    .subscription input[type="email"] {
        width: 100%;
    }

    .subscription button {
        display: block;
    }

    nav.navbar > div.contentGames > div#name{
        width: 10vh;
        align-self: center;
        align-items: center;
        padding: 0;
    }

    nav.navbar > div.contentGames{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .navbar ul .search-container{
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .navbar ul .search-container .search-bar{
        font-size: 1.1rem;
    }

    .logo img {
        display: block;
    }

    header > div.logo{
        display: flex;
        height: 10%;
        padding-top: 5vh;
        right:50%;   
        align-items: center;
        align-self: center;
    }

    nav > div#barra{
        width: 100%;
    } 

    .navbar {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        
        height: 200vh;
    }

    header {
        padding-top: 0px;
        position: static; /* Esto asegura que el header no sea fijo */
        display: flex;
        flex-direction: column;
        height: 85vh;
        width: 100%;
        padding: 0;
    }
    

    .navbar ul {
        margin-top: 0%; 
        display: flex;
        justify-content:flex-start;
        padding: 0;
        height: 50vh;
    }

    nav.navbar li {
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .contentGames #login .login-button {
        width: 90%; 
        text-align: center;
        font-size: 1.2rem;
    }

    .containeer{
        width: 100%;
    }

    #mainplus{
        width: 100%;
        padding-bottom: 5vh;
        padding-top: 5vh;
    }

    #mainplus #main{
        width: 100%;
    }

    #mainplus #main #analisis .main-news{
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    #mainplus #main #analisis .main-news .news-item{
        height: inherit;
        width: 100%;
        border: 0px;
    }

    #mainplus #main #analisis .main-news .news-item img{
        width: 100px;
        height: 100px;
    }

    #mainplus #main #analisis .main-news .news-item a h2{
        display: block;
        padding-left: 5vh;
        font-size: 1.5rem;
        width: 100%;
    }

    #mainplus #main #guias .main-news1{
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 5vh 0  5vh 0;
        gap: 3vh;
        margin: 0;
        height: 80vh;
        box-shadow: none;
    }

    #mainplus #main #guias{
        height: 150%;
        width: 100%;
        padding: 0vh;
        margin: 0;
        margin-top: 4vh;
        background-color: #1C7970;
    }

    #mainplus #main #guias .main-news1 .news-item1{
        width: 100%;
        height: 70%;
        padding: 0;

        margin-left: 0;
        margin-right: 0;
        border: 0;
        box-shadow: 0;
    }

    #mainplus #main #guias .main-news1 .news-item1 h2{
        font-size: 1.5rem;
    }

    #mainplus #main #guias .main-news1 .news-item1 img{
        font-size: 1.5rem;
        width: 100%;
        height: 100%;
    }

    #mainplus #main #articulos{
        display: flex;
        justify-content: center;
        padding: 0;
        width: 100%;
        
    }

    #mainplus #main #articulos .recent-news{
        padding: 0;
    }
    #mainplus #main #articulos .recent-news h2{
        font-size: 2rem;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item{
        height: 20vh;
        border: none;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra{
        padding: 0;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra h3{
        font-size: 1.3rem;
        margin-right: 2vh;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra p{
        font-size: 1rem;
    }
    .containeer .subscription{
        padding: 5vh;
        border-radius: 0;
    }
    .containeer .subscription h3{
        font-size: 1.6rem;
    }
    .containeer .subscription form{
        display: flex;
        justify-content: space-between;
        gap: 2vh;
    }
    .containeer .subscription form input{
        font-size: 1.4rem;
    }
    .containeer .subscription form button{
        font-size: 1.3rem;
    }
    .containeer .subscription p{
        font-size: 1.1rem;
    }
    div.space{
        display: none;
    }

    section#main{
        display: flex;
        flex-direction: column;
        width: 100%;
      
    }
    footer .social-media .redes{
        width: 20vh;
        display: flex;
        justify-content: center;
    }

    footer .social-media .redes ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 10vh;
    }
    footer{
        padding: 0;
        display: block;

    }
    footer .footer-info{
        display: flex;
        justify-content: space-between;
        padding: 5vh;
    }
    footer .footer-info1{
        display: flex;
        justify-content: space-between;
        padding: 0vh 5vh  2vh 5vh;
        gap: 20vh;
    }
    footer .social-media .redes ul li{
        height: 5vh;
        padding-bottom: 2vh;
    }
    footer .indice{
        padding: 0;
    }
    footer .social-media{
        padding: 0;
    }
    footer .social-media div{
        padding-left: 3vh;
    }
    footer .footer-info div ul li a{
        font-size: 1.1rem;
    }
    footer .footer-info div ul li a .upper{
        font-size: 1.2rem;
    }
    footer .footer-info1 div ul li a{
        font-size: 1.1rem;
    }
    footer .footer-info1 div ul li a .upper{
        font-size: 1.2rem;
    }
    .social-media div h2{
        margin-top: 2vh;
    }
}


/* Celular */
@media (max-width: 480px) {
    html {
        min-height: 100vh;
        scroll-behavior: smooth;
        width: 100%;
    }
    body {
        margin-top: 0;
        overflow-x: hidden;
        width: 100%;
        background-image: url('./img/background.webp');
        background-size: cover;
        background-position: center;
    }

    .search-results {
    margin-top: 5px;
    width: 100px;

}

.search-item {
    z-index: 1;
    width: 300px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 10%;
    opacity: 85%;
}

.search-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}
#search-results h3{
    background-color: #f9f9f9;
    border-radius: 10%;
    opacity: 85%;
    text-align: center;
}

#search-results h3 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #2f35d4;
}


.search-item p {
    font-size: 14px;
    color: #555;
}

.search-item a {
    font-size: 14px;
    color: #2f35d4;
    text-decoration: none;
}

.search-item a:hover {
    text-decoration: underline;
}

.no-results {
    margin-top: 20px;
    color: #888;
}


    .contentGames, .navbar ul, .main-news, .search-container {
        flex-direction: column;
        align-items: center;
    }

    .news-item, .recent-news {
        width: 88%;
    }

    .search-bar {
        display: block;
    }

    .subscription input[type="email"] {
        width: 100%;
    }

    .subscription button {
        display: block;
    }

    nav.navbar > div.contentGames > div#name{
        width: 5vh;
        align-self: center;
        align-items: center;
        padding: 0;
    }

    nav.navbar > div.contentGames{
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .navbar ul .search-container{
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .navbar ul .search-container .search-bar{
        font-size: 1.1rem;
    }

    .logo img {
        display: block;
    }

    header > div.logo{
        display: flex;
        height: 10%;
        padding-top: 5vh;
        right:50%;   
        align-items: center;
        align-self: center;
    }

    nav > div#barra{
        width: 100%;
    } 

    .navbar {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 0;
        
        height: 200vh;
    }

    header {
        padding-top: 0px;
        position: static; /* Esto asegura que el header no sea fijo */
        display: flex;
        flex-direction: column;
        height: 85vh;
        width: 100%;
        padding: 0;
    }
    
    .navbar ul {
        margin-top: 0%; 
        display: flex;
        justify-content:flex-start;
        padding: 0;
        height: 50vh;
    }

    nav.navbar li {
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .contentGames #login .login-button {
        width: 100%; 
        text-align: center;
        font-size: 1.1rem;
        padding: 1vh 0vh;
    }

    .containeer{
        width: 100%;
    }

    #mainplus{
        width: 100%;
        padding-bottom: 5vh;
    }

    #mainplus #main{
        width: 100%;
    }

    #mainplus #main #analisis .main-news{
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }
    #mainplus #main #analisis .main-news .news-item{
        height: inherit;
        width: 100%;
        border: 0px;
    }

    #mainplus #main #analisis .main-news .news-item img{
        width: 100%;
        height: 100%;
    }

    #mainplus #main #analisis .main-news .news-item a h2{
        display: block;
        padding-left: 5vh;
        font-size: 1.2rem;
        width: 100%;
    }

    #mainplus #main #guias .main-news1{
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 5vh 0  5vh 0;
        gap: 3vh;
        margin: 0;
        height: 80vh;
        box-shadow: none;
    }

    #mainplus #main #guias{
        height: 150%;
        width: 100%;
        padding: 0vh;
        margin: 0;
        margin-top: 4vh;
        background-color: #1C7970;
    }

    #mainplus #main #guias .main-news1 .news-item1{
        width: 100%;
        height: 70%;
        padding: 0;

        margin-left: 0;
        margin-right: 0;
        border: 0;
        box-shadow: 0;
    }

    #mainplus #main #guias .main-news1 .news-item1 h2{
        font-size: 1.3rem;
    }

    #mainplus #main #guias .main-news1 .news-item1 img{
        font-size: 1.5rem;
        width: 100%;
        height: 100%;
    }
    
    #mainplus #main #articulos{
        display: flex;
        justify-content: center;
        padding: 0;
        width: 100%;
        
    }

    #mainplus #main #articulos .recent-news{
        padding: 0;
    }
    #mainplus #main #articulos .recent-news h2{
        font-size: 1.5rem;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item{
        height: 20vh;
        border: none;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra{
        padding: 0;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra h3{
        font-size: 0.9rem;
        margin-right: 2vh;
    }
    #mainplus #main #articulos .recent-news .news-list a .recent-news-item #letra p{
        font-size: 0.6rem;
    }
    .containeer .subscription{
        padding: 5vh;
        border-radius: 0;
    }
    .containeer .subscription h3{
        font-size: 1.2rem;
    }
    .containeer .subscription form{
        display: flex;
        justify-content: space-between;
        gap: 2vh;
    }
    .containeer .subscription form input{
        font-size: 1rem;
    }
    .containeer .subscription form button{
        font-size: 1rem;
    }
    .containeer .subscription p{
        font-size: 0.9rem;
    }
    div.space{
        display: none;
    }

    section#main{
        display: flex;
        flex-direction: column;
        width: 100%;
      
    }
    footer .social-media .redes{
        width: 10vh;
        display: flex;
        justify-content: center;
        
    }

    footer .social-media .redes ul{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 10vh;
        gap: 1.5vh;
    }
    footer{
        padding: 0;
        display: block;

    }
    footer .footer-info{
        display: flex;
        justify-content: space-between;
        padding: 5vh;
        gap:1%;
    }
    footer .footer-info1{
        display: flex;
        justify-content: space-between;
        padding: 5vh;
        gap:1%;
    }
    footer .social-media .redes ul li{
        height: 5vh;

    }
    footer .indice{
        padding: 0;
    }
    footer .social-media{
        padding: 0;
        padding-right: 3vh;
    }
    footer .social-media div{
        padding-left: 0vh;
    }
    footer .footer-info div ul li a{
        font-size: 1rem;
    }
    footer .footer-info div ul li a .upper{
        font-size: 1.1rem;
    }
    footer .footer-info1 div ul li a{
        font-size: 1rem;
    }
    footer .footer-info1 div ul li a .upper{
        font-size: 1.1rem;
    }
    .social-media div h2{
        margin-top: 2vh;
    }
}
