@font-face {
    font-family: 'VCR OSD Mono';
    src: url('https://cdnfonts.com/vcr-osd-mono') format('truetype');
}

body {
    font-family: 'VCR OSD Mono', monospace;
    background-color: #1A1A1A;
    color: #B0B0B0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

.header-section {
    background: linear-gradient(to bottom, #A10000, #7A0000);
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    height: 60px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.social-icons img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(1px 1px 2px #000000);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: #B0B0B0;
    cursor: pointer;
    transition: color 0.2s;
}

.hamburger:hover {
    color: #A10000;
}

.gif-section {
    padding: 0 20px;
    box-sizing: border-box;
}

.gif-section h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #B0B0B0;
    text-align: center;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gif-section a {
    color: #B0B0B0;
    text-decoration: none;
}

.gif-section a:hover {
    color: #A10000;
}

.gif-section img {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(161, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.nav {
    padding: 10px 20px;
    box-sizing: border-box;
    border-bottom: 3px solid #B0B0B0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav.active {
    display: block;
}

.nav a {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #B0B0B0;
    text-decoration: none;
    transition: color 0.2s;
}

.nav a:hover {
    color: #A10000;
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 8px;
    box-sizing: border-box;
}

.about-content, .paintings {
    margin-top: 40px;
    display: none;
}

.about-content.active, .paintings.active {
    display: block;
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
    justify-items: center;
}

.painting {
    background-color: #2A2A2A;
    padding: 15px;
    border: 3px solid #B0B0B0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    width: 100%;
    max-width: 220px;
}

.painting:hover {
    transform: scale(1.02);
    border-color: #A10000;
}

.painting img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.painting h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: #A10000;
    margin: 0 0 10px;
}

.painting p {
    font-size: 12px;
    margin: 0 0 10px;
    text-align: left;
}

.about-content h2, .paintings h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 18px;
    color: #A10000;
    margin: 0 0 15px;
}

.about-content p {
    font-size: 14px;
    margin: 0 0 15px;
    text-align: justify;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1A1A1A;
    border: 3px solid #B0B0B0;
    border-radius: 8px;
    max-width: 1200px;
    width: 95%;
    max-height: 95vh;
    display: flex;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #B0B0B0;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #A10000;
}

.carousel {
    flex: 2;
    position: relative;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-images img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 8px;
    flex: 0 0 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-nav button {
    background: #2A2A2A;
    border: 2px solid #B0B0B0;
    color: #B0B0B0;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.carousel-nav button:hover {
    border-color: #A10000;
    color: #A10000;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #B0B0B0;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.carousel-dot.active {
    background-color: #A10000;
}

.modal-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: #A10000;
    margin: 0 0 15px;
}

.modal-info p {
    font-size: 12px;
    margin: 0 0 15px;
    text-align: left;
}

.modal-info a {
    color: #B0B0B0;
    text-decoration: none;
    font-size: 12px;
    border: 2px solid #A10000;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.2s, color 0.2s;
    margin-bottom: 10px;
}

.modal-info a:hover {
    background-color: #A10000;
    color: #1A1A1A;
}

.modal-info .status {
    font-size: 12px;
    color: #B0B0B0;
    margin-top: 10px;
}

.footer {
    background: linear-gradient(to top, #A10000, #7A0000);
    text-align: center;
    padding: 10px;
    font-size: 12px;
    border-top: 3px solid #B0B0B0;
    margin-top: 40px;
}

.footer a {
    color: #B0B0B0;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #A10000;
}

@media (max-width: 900px) {
    .paintings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        flex-direction: column;
    }
    .carousel-images img {
        height: 300px;
    }
    .modal-info {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 10px;
    }
    .social-icons img {
        width: 24px;
        height: 24px;
    }
    .hamburger {
        display: block;
    }
    .nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        background-color: #1A1A1A;
        padding: 10px;
        border: 2px solid #B0B0B0;
        border-radius: 4px;
    }
    .nav.active ul {
        display: flex;
    }
    .gif-section h1 {
        font-size: 14px;
    }
    .gif-section img {
        max-width: 100%;
    }
    .nav a {
        font-size: 10px;
    }
    .paintings-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .painting {
        max-width: 100%;
    }
    .painting img {
        height: 120px;
    }
    .painting h3 {
        font-size: 12px;
    }
    .painting p, .modal-info p, .modal-info .status {
        font-size: 12px;
    }
    .about-content {
        margin: 0 10px;
    }
    .about-content h2 {
        font-size: 14px;
    }
    .about-content p {
        font-size: 12px;
    }
    .modal-content {
        width: 95%;
    }
    .carousel-images img {
        height: 200px;
    }
    .modal-info h3 {
        font-size: 14px;
    }
    .footer {
        font-size: 10px;
    }
}