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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rocketMove {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.hidden {
    display: none !important;
}

.main-content {
    opacity: 1;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    font-family: "VT323", "Courier New", monospace;
    overflow: hidden;
}

.loading-screen.active {
    display: flex;
}

.loading-screen::after {
    content: url(assets/boon_loop.wav);
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    z-index: -1;
    animation: playAudio 0.1s linear infinite;
}

@keyframes playAudio {
    from { clip-path: inset(0 0 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@font-face {
    font-family: 'VT323';
    src: url('https://fonts.gstatic.com/s/vt323/v17/pxiKyp0ihIEF2isfFJU.woff2') format('woff2');
}

.terminal {
    position: relative;
    width: 640px;
    height: 480px;
    overflow: hidden;
    background-color: #000;
    font-family: "DOS", "Courier New", monospace;
    letter-spacing: 0px;
    border: 3px solid #0055EA;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    image-rendering: pixelated;
    transform-origin: center;
    will-change: transform, opacity;
    z-index: 10000;
}

.terminal-titlebar {
    height: 30px;
    background: linear-gradient(to right, #0055EA, #2B8FFF);
    display: flex;
    align-items: center;
    padding: 0 8px;
    color: white;
    font-family: "Tahoma", sans-serif;
    font-size: 12px;
    font-weight: bold;
}

.terminal-titlebar-text {
    flex-grow: 1;
}

.terminal-buttons {
    display: flex;
    gap: 2px;
}

.terminal-button {
    width: 21px;
    height: 21px;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #FF9B3C, #FF5700);
    cursor: default;
    font-size: 16px;
    color: white;
}

.terminal-content-area {
    padding: 0;
    height: calc(100% - 30px);
    background-color: #000;
}

.terminal-content {
    padding: 10px;
}

@font-face {
    font-family: 'DOS';
    src: url('https://fonts.cdnfonts.com/css/perfect-dos-vga-437') format('woff2');
}

.terminal-content {
    position: relative;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    white-space: pre;
    font-family: "DOS", "Courier New", monospace;
    width: 100%;
    float: left;
    text-shadow: none;
    margin-top: 5px;
}

.terminal-right {
    position: absolute;
    right: 15px;
    top: 40px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-gif {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
    opacity: 0.9;
}



.terminal-content {
    position: relative;
    color: #FFA94D;
    font-size: 16px;
    line-height: 1.2;
    white-space: pre;
    font-family: "VT323", "Courier New", monospace;
}

.success, .warning, .error, .info {
    color: #fff;
    text-shadow: none;
}

.boot-text {
    color: #fff;
    font-family: "DOS", "Courier New", monospace;
    font-size: 14px;
    line-height: 1.3;
}

.boot-text {
    opacity: 1;
}



@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}



.terminal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 2px,
        transparent 3px
    );
    pointer-events: none;
}

.boot-text {
    opacity: 0.9;
}



.glitch {
    animation: glitch 0.1s infinite;
    opacity: 0.8;
}

@keyframes title-glitch {
    0% {
        transform: translate(0);
        opacity: 1;
        text-shadow: none;
    }
    1% {
        transform: translate(-2px, 1px);
        opacity: 0.9;
        text-shadow: -1px 0 #ff0, 1px 0 #0ff;
    }
    2% {
        transform: translate(2px, -1px);
        opacity: 0.8;
        text-shadow: 1px 0 #f0f, -1px 0 #0ff;
    }
    3% {
        transform: translate(-1px, 1px);
        opacity: 0.9;
        text-shadow: -1px 0 #ff0, 1px 0 #f0f;
    }
    4% {
        transform: translate(0);
        opacity: 1;
        text-shadow: none;
    }
    100% {
        transform: translate(0);
        opacity: 1;
        text-shadow: none;
    }
}

.main-title {
    animation: title-glitch 8s infinite;
    display: inline-block;
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #fff,
                 0 0 40px #e60073,
                 0 0 50px #e60073,
                 0 0 60px #e60073,
                 0 0 70px #e60073,
                 0 0 80px #e60073;
}

@keyframes intense-glitch {
    0% {
        transform: translate(0);
        opacity: 1;
        text-shadow: none;
    }
    10% {
        transform: translate(-5px, 2px);
        opacity: 0.8;
        text-shadow: -2px 0 #ff0, 2px 0 #0ff;
    }
    20% {
        transform: translate(5px, -2px);
        opacity: 0.9;
        text-shadow: 2px 0 #f0f, -2px 0 #0ff;
    }
    30% {
        transform: translate(-3px, 3px);
        opacity: 0.7;
        text-shadow: -2px 0 #ff0, 2px 0 #f0f;
    }
    40% {
        transform: translate(3px, -3px);
        opacity: 0.8;
        text-shadow: 2px 0 #0ff, -2px 0 #ff0;
    }
    50% {
        transform: translate(0);
        opacity: 1;
        text-shadow: -2px 0 #f0f, 2px 0 #ff0;
    }
    60% {
        transform: translate(-4px, 4px);
        opacity: 0.9;
        text-shadow: 2px 0 #0ff, -2px 0 #f0f;
    }
    70% {
        transform: translate(4px, -4px);
        opacity: 0.7;
        text-shadow: -2px 0 #ff0, 2px 0 #0ff;
    }
    80% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
        text-shadow: 2px 0 #f0f, -2px 0 #ff0;
    }
    90% {
        transform: translate(2px, -2px);
        opacity: 0.9;
        text-shadow: -2px 0 #0ff, 2px 0 #f0f;
    }
    100% {
        transform: translate(0);
        opacity: 1;
        text-shadow: 2px 0 #ff0, -2px 0 #0ff;
    }
}

.glitch-intense {
    animation: intense-glitch 0.2s infinite;
    display: inline-block;
}

.fade-out {
    animation: fadeOut 1s forwards;
}

.fade-in {
    animation: fadeIn 1s forwards;
}

body {
    background-color: #000;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    font-family: Arial, sans-serif;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite;
}

@keyframes twinkle {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 20px;
}

.content h1 {
    font-size: 2.8rem;
    margin-top: 20vh;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.content .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Yazılar için tüm transition'ları devre dışı bırak */
.content h1,
.content .subtitle {
    transition: none !important;
}

.game-image-container {
    position: fixed;
    width: 640px;
    height: 360px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-50% - 40px));
    perspective: 1000px
    transform-style: preserve-3d;
    z-index: 10;
}

.video-title {
    position: fixed;
    top: calc(50% + 160px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.title-klarion {
    color: #fff;
    font-weight: 600;
    animation: klarion-glow 2s infinite;
    display: inline-block;
}

@keyframes klarion-glow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 15px #e60073,
                     0 0 25px #e60073,
                     0 0 35px #e60073;
        color: #fff;
    }
}

.game-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 255, 255, 0.2) 0%,
                rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.game-image-container:hover .game-video {
    transform: translateZ(20px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.game-image-container:hover .image-glow {
    opacity: 1;
}

.scroll-arrow {
    display: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    opacity: 0.8;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1000;
}

/* Sadece loading screen gizli olduğunda ve main-content görünür olduğunda oku göster */
.loading-screen[style*="display: none"] ~ .main-content:not(.hidden) ~ .scroll-arrow {
    display: block;
}

/* Dashboard Button */
.profile-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-family: "VT323", monospace;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}



@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}
