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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111;
    color: white;
    overflow-x: hidden;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 40px;
}


.screen {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #111;

    padding: 40px 0;
}


h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

h2 {
    margin-bottom: 20px;
}

p {
    font-size: 14px;
    margin: 0;
}

.btn {
    background-color: #fea8ab;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.logo {
    width: 50px;
    height: auto;
}

.titulo {
    font-size: 1.5rem;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    background-color: #fea8ab;
    padding: 10px 30px;
    color: white;

    width: 100%;
    box-sizing: border-box;

    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-center {
    display: flex;
    gap: 25px;
}

.nav-center a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.nav-center a:hover {
    opacity: 0.7;
}

.nav-right {
    position: relative;
}

.nav-right input{
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    outline: none;
}


.main-layout {
    display: flex;
    gap: 30px;
    width: 95%;
    max-width: 1400px;
    margin: auto;
    align-items: flex-start;
}

.left-content {
    flex: 3;
}

.right-content {
    flex: 1;
    background: #ffffff0d;
    border-radius: 12px;
    padding: 15px;
    height: fit-content;

    position: sticky;
    top: 100px;
}


.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 50px;
    width: 100%;
}

.manga-card {
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: 0.2s;
}

.manga-card img {
    width: 100%;
    display: block;
}

.manga-card p {
    padding: 10px;
    font-size: 0.9rem;
    color: black;
    background: none; 
}

.manga-card:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resultados {
    position: absolute;
    top: 40px;
    left: 0;
    width: 200px;

    background: white;
    color: black;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);

    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.resultados div {
    padding: 10px;
    cursor: pointer;
}

.resultados div:hover {
    background-color: #f0f0f0;
}


.footer {
    background-color:#fea8ab;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    bottom: 0%;
}


.banner {
    width: 100%;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
    display: block; 
}


a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

a:active {
  color: inherit;
}

a:focus {
  outline: none;
}


@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }

    .right-content {
        position: static;
    }
}


.titulo-grid {
    text-align: center;
    margin-bottom: 20px;
    font-size: 28px;
}




* {
    box-sizing: border-box;
}


@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-center {
        width: 100%;
        display: flex;
        justify-content: space-around;
    }

    .nav-right {
        width: 100%;
    }

    .nav-right input {
        width: 100%;
    }

    .titulo {
        font-size: 1.2rem;
    }

    .logo {
        width: 40px;
    }
}


.manga-grid {
    gap: 20px;
}

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


@media (max-width: 900px) {
    .right-content {
        display: none;
    }
}


@media (max-width: 768px) {
    .chapters {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 20px;
    }

    .details h1 {
        font-size: 22px;
    }
}


@media (max-width: 768px) {
    #mangaPage {
        max-height: none;
        width: 100%;
    }

    .nav-overlay {
        display: none;
    }
}


@media (max-width: 768px) {
    button {
        font-size: 16px;
        padding: 12px;
    }

    .botones {
        flex-direction: column;
    }
}

.manga-card {
    position: relative;
    background-color: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: 0.2s;
}

.etiqueta-nuevo {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 70px;
    height: 70px;
    overflow: hidden;
    z-index: 10;
}

.etiqueta-nuevo span {
    position: absolute;
    display: block;
    width: 100px;
    padding: 8px 0;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-45deg);
    top: 15px;
    left: -25px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.etiqueta-roja span {
    background: linear-gradient(135deg, #f76388e6, #8f1c42e6);
}

.barra-nuevo {
    position: static;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 6px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    border-radius: 5px;
}

.barra-roja {
    background: linear-gradient(90deg, #f76388e6, #8f1c42e6);
}

.barra-verde {
    background: linear-gradient(90deg, #93e745e6, #93e745e6);
}

.titulo-finalizados {
    margin-top: 50px;
}

.barra-finalizado {
    position: static;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 6px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    font-style: italic;
    background: linear-gradient(90deg, rgba(255,140,0,0.9), rgba(255,100,0,0.9));
    border-radius: 5px;
}