/* ./CSS/psx-style.css */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
}

body {
    background: linear-gradient(135deg, #2b1857 0%, #2a0f44 100%);
    color: #d0d0d0;
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: none;
    min-height: 100vh;
    padding: 20px;
}

body::-webkit-scrollbar {
  display: none;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 100;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 99;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    pointer-events: none;
    z-index: 98;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    border: 4px solid #3a4c5c;
    background-color: rgba(15, 15, 30, 0.8);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 15px rgba(60, 80, 100, 0.4);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    border-bottom: 3px solid #cc0022;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    color: #ccc900;
    text-shadow: 4px 4px 0 #cc0022, 8px 8px 0 rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.subtitle {
    color: #3a4c5c;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: rgba(25, 25, 45, 0.7);
    padding: 20px;
    border: 3px solid #3a4c5c;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(60, 80, 100, 0.4);
    border-color: #ccaa00;
}

h2 {
    color: #ccaa00;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #cc0022;
    padding-bottom: 10px;
}

h3 {
    font-size: 2.5rem;
    color: #910000;
    text-shadow: 4px 4px 0 #290000, 8px 8px 0 rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: #a7a7c0;
}

.pixel-art {
    display: block;
    margin: 20px auto;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #cc0022, #ccaa00, #3a4c5c);
    image-rendering: pixelated;
    transform: perspective(500px) rotateY(20deg) rotateX(10deg);
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(to bottom, #cc0022, #800018);
    color: #ddd;
    text-decoration: none;
    border: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.button:hover:before {
    left: 100%;
}

.console {
    width: 300px;
    height: 60px;
    background: linear-gradient(to bottom, #222222, #111111);
    margin: 30px auto;
    border-radius: 5px;
    position: relative;
    padding: 10px;
    border: 2px solid #333;
}

.psx-logo {
    color: #ccaa00;
    font-size: 0.6rem;
    text-align: center;
    margin-top: 5px;
}

.cd-tray {
    position: absolute;
    width: 80px;
    height: 20px;
    background: #333;
    top: 20px;
    left: 40px;
    border-radius: 3px;
    transition: all 1s ease;
}

.cd-tray.open {
    left: 120px;
}

.power-btn, .reset-btn {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    border: 1px solid #444;
    top: 23px;
}

.power-btn {
    right: 50px;
    background: linear-gradient(to bottom, #500, #300);
}

.reset-btn {
    right: 25px;
    background: linear-gradient(to bottom, #335, #223);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 3px solid #cc0022;
    font-size: 0.7rem;
    color: #3a4c5c;
}

@keyframes wobble {
    0% { transform: translateX(0) rotate(0); }
    15% { transform: translateX(-5px) rotate(-1deg); }
    30% { transform: translateX(4px) rotate(1deg); }
    45% { transform: translateX(-3px) rotate(-1deg); }
    60% { transform: translateX(2px) rotate(0); }
    100% { transform: translateX(0) rotate(0); }
}

.wobble {
    animation: wobble 0.5s ease-in-out;
}

.dither {
    height: 4px;
    background: linear-gradient(90deg, 
        #050510 0%, #1a1a3a 25%, 
        #3a4c5c 50%, #1a1a3a 75%, #050510 100%);
    background-size: 200% 100%;
    animation: ditherAnimation 2s linear infinite;
    margin: 20px 0;
}

@keyframes ditherAnimation {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .console {
        width: 250px;
    }
}