* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 15px;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: url('content/normal.png'), auto;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: -1;
    pointer-events: none;
}

.page-container {
    display: flex;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.main-container {
    background: url('media/photos/grenee.png') repeat center center fixed;
    text-align: center;
    width: 900px;
    max-width: 100%;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    min-height: calc(100vh - 40px);
    z-index: 1;
    position: relative;
}

#dvd-logo {
    position: fixed;
    width: 150px;
    height: auto;
    filter: hue-rotate(0deg) saturate(100%) brightness(5);
    user-select: none;
    pointer-events: none;
    z-index: 1000;
}

.dvd-counters {
    font-family: 'Jersey 25', sans-serif;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 20px;
    border-radius: 8px;
    font-size: clamp(0.8em, 2vw, 1.2em);
}

.dvd-counters div {
    margin: 2px 0;
}

.corner-hit {
    color: #00fd87 !important;
    font-weight: bold;
}

#unset-button {
    width: 130px;
    padding: 5px 10px;
    background-color: red;
    color: white;
    font-family: 'Jersey 25', sans-serif;
    font-size: large;
    border: none;
    border-radius: 5px;
}

#info-aside {
    font-family: 'MS Gothic', 'Osaka', 'Tahoma', monospace;
    width: 220px;
    flex-shrink: 1;
    background: rgba(0, 0, 0, 0.6);
    color: red;
    padding: 15px;
    border-radius: 8px;
    font-size: large;
    z-index: 2;
    height: fit-content;
    position: sticky;
    top: 10px;
}

#info-aside h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.button-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 8px;
    justify-items: center;
}

body button,
body a,
body input {
    cursor: url('content/link.png'), auto;
}

.button-link,
.image-button {
    width: 90px;
    height: auto;
    display: block;
}

.button-link:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.azumanga-gif {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.construction-gif {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.nav-links {
    list-style: none;
    padding: 0px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-family: 'MS Gothic', 'Osaka', 'Tahoma', monospace;
    font-size: 20px;
    min-height: 35px;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.nav-links li a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
}

.nav-links li a:hover {
    color: red;
    font-size: 25px;
    transition: font-size 0.2s ease-in-out, color 0.2s ease-in-out;
}

.television-container {
    position: relative;
    margin-top: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tv-screen {
    position: absolute;
    top: 15%;
    left: 7.5%;
    width: 67%;
    height: 66%;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    padding-bottom: 100px; 
    overflow-y: auto;
}

@font-face {
    font-family: 'Meticula';
    src: url('content/meticula-bold.ttf') format('truetype');
    font-display: swap;
    font-weight: normal;
    font-style: normal;
}

.content-info {
    font-family: 'Meticula', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    -webkit-text-stroke: #3ca023 0.1px;
    text-align: center;
    line-height: 1.25; 
    padding: 15px;
    color: #50332f; 
    border-radius: 8px;
    text-shadow: #3ca023 0 0 5px;
    filter: drop-shadow(0 0 5px #3ca023);
    text-transform: uppercase;
}

.content-info h1 {
    font-size: 2.5rem;
    margin: 0 0 15px 0;
}

.content-info p {
    margin: 8px 0;
    font-size: 1.4rem; 
}

.bg-television {
    position: absolute;
    top: 320px;
    left: 40px;
    width: 100%;
    max-width: 800px;
    height: 500px;
}

#pinkerton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(2px);
    opacity: 0.9;
}

#draw-container {
    margin-top: 25px; 
    position: relative;
    max-width: 900px;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#draw-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}


/* Footer con redes sociales */
.footer {
    margin-top: 40px;
    padding: 25px 15px;
    background: rgba(80, 51, 47, 0.9);
    border-radius: 10px;
    border: 2px solid #3b7046;
    box-shadow: 0 0 20px rgba(60, 160, 35, 0.4);
}

.footer-content {
    text-align: center;
    font: 16px 'MS Gothic', 'Osaka', 'Tahoma', monospace;
}

.footer-content h3 {
    color: #3ca023;
    font-size: 1.5em;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px #3ca023;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #3ca023, 0 0 20px #3ca023; } 
    to { text-shadow: 0 0 20px #d5e0d3, 0 0 30px #3ca023; }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    padding: 10px;
    border: 2px solid #3b7046;
    border-radius: 8px;
    background: rgba(59, 112, 70, 0.3);
    transition: all 0.3s ease;
    min-width: 80px;
}

.social-link:hover {
    transform: scale(1.1) rotate(2deg);
    background: rgba(59, 112, 70, 0.5);
    border-color: #3ca023;
    box-shadow: 0 0 15px rgba(60, 160, 35, 0.6);
}

.social-link img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    filter: brightness(1.2) drop-shadow(0 0 3px #3ca023);
}

.social-link span {
    font-size: 0.9em;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(80, 51, 47, 0.8);
}

.footer-info {
    border-top: 1px solid #3b7046;
    padding-top: 15px;
    font-size: 0.8em;
    color: #e0e0e0;
}

.custom-button {
    border-top: 1px solid #3b7046;
    padding-top: 15px;
    margin: 20px auto;
    text-align: center;
}

.custom-button label {
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(80, 51, 47, 0.8);
}

.custom-button img {
    width: 120px;
    height: auto;
    margin-top: 2px;
    border: 2px solid #3b7046;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(60, 160, 35, 0.4);
}

.custom-button textarea {
    width: 80%;
    max-width: 300px;
    height: 40px;
    resize: none;
    border: 1px solid #3b7046;
    border-radius: 5px;
    padding: 5px;
    font-family: 'MS Gothic', 'Osaka', 'Tahoma', monospace;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.7);
    color: #e0e0e0;
}

.footer-info p {
    margin: 5px 0;
    text-shadow: 1px 1px 2px rgba(80, 51, 47, 0.8);
}

/* ------------------------ TE ODIO RESPONSIVE DEL ORTO ----------------------------------------- */
@media (max-width: 992px) {
    .page-container {
        flex-direction: column;
        gap: 15px;
    }
    .main-container {
        width: 100%;
    }
    #info-aside {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        position: static;
    }
    .button-collection {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 6px;
    }
    .button-link,
    .image-button {
        width: 80px;
    }
    .tv-screen {
        padding: 15px;
    }
    #logo {
        width: 350px;
    }
    .bg-television {
        top: 280px;
        left: 35px;
        max-width: 700px;
        height: 440px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .main-container {
        padding: 15px;
        min-height: calc(100vh - 30px);
    }
    #info-aside {
        padding: 12px;
    }
    .button-collection {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 5px;
    }
    .button-link,
    .image-button {
        width: 70px;
    }
    .nav-links {
        font-size: 16px;
        gap: 15px;
        min-height: 30px;
    }
    .tv-screen {
        padding: 10px;
        padding-top: 25px; /* Más espacio arriba qcyo */
        top: 14%;
        left: 8%;
        width: 65%;
        height: 62%;
    }
    
    #pinkerton {
        filter: blur(1px);
        opacity: 0.95;
    }
    
    .bg-television {
        top: 230px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 500px;
        height: 350px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        border: 2px solid #3b7046;
    }

    .footer .social-links {
        gap: 15px;
    }
    .footer .social-link {
        min-width: 70px;
        padding: 8px;
    }
    .footer .social-link img {
        width: 28px;
        height: 28px;
    }
    .footer .footer-content h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    .page-container {
        gap: 10px;
    }
    .main-container {
        padding: 10px;
    }
    #info-aside {
        padding: 10px;
    }
    .button-collection {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 4px;
    }
    .button-link,
    .image-button {
        width: 60px;
    }
    #dvd-logo {
        width: 100px;
    }
    .nav-links {
        font-size: 20px;
        font-weight: bold;
        gap: 10px;
    }
    .nav-links li a:hover {
        font-size: 20px;
    }
    .tv-screen {
        display: none; 
    }
    
    #pinkerton {
        filter: none;
        opacity: 1;
        border-radius: 12px;
    }
    
    .television-container {
        margin-top: 1.5em;
        margin-bottom: 2em;
    }
    .bg-television {
        filter: none;
        top: 200px;
        left: 50%;
        max-width: 350px;
        height: 230px;
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        border: 3px solid #3b7046;
    }
    .footer {
        margin-top: 30px;
        padding: 20px 10px;
    }
    .footer .social-links {
        gap: 10px;
    }
    .footer .social-link {
        min-width: 60px;
        padding: 6px;
    }
    .footer .social-link img {
        width: 24px;
        height: 24px;
    }
    .footer .social-link span {
        font-size: 0.8em;
    }
    .footer .footer-content h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
    }
    .footer .footer-info {
        font-size: 0.7em;
    }
}