/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    /* Prevent selection */
}

body {
    font-family: 'Segoe UI', sans-serif;
    overflow: hidden;
    background: #111;
    color: white;
}

/* Selection Screen */
#selection-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #1a1a1a;
}

h1 {
    margin-bottom: 1rem;
}

#selection-screen p {
    margin-bottom: 3rem;
    opacity: 0.7;
    line-height: 1.6;
}

.os-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.os-btn {
    background: #333;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
}

.os-btn:hover {
    transform: translateY(-5px);
    background: #444;
}

.preview {
    width: 200px;
    height: 120px;
    border-radius: 5px;
}

.win10-preview {
    background: #006dae;
}

.win11-preview {
    background: #000000;
    border: 1px solid #333;
}

.mac-preview {
    background: #000000;
}

/* Fake Screens */
.fake-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: none;
    /* Hide cursor */
}

.hidden {
    display: none !important;
}

/* Windows 10 */
#win10-screen {
    background-color: #006dae;
    /* Classic Win10 Blue */
    font-family: 'Segoe UI', sans-serif;
}

.loader-win10 {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 2rem;
    animation: rotate 4s infinite linear;
}

.loader-win10 .circle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: win10-dots 4s infinite ease-in-out;
}

.loader-win10 .circle:nth-child(1) {
    animation-delay: 0s;
}

.loader-win10 .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-win10 .circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-win10 .circle:nth-child(4) {
    animation-delay: 0.6s;
}

.loader-win10 .circle:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes win10-dots {
    0% {
        transform: rotate(0deg) translateX(30px);
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        transform: rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

#win10-screen .text-content {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
}

/* Windows 11 */
#win11-screen {
    background-color: #000000;
    font-family: 'Segoe UI', sans-serif;
}

.loader-win11 {
    display: flex;
    gap: 8px;
    margin-bottom: 3rem;
}

.loader-win11 .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: win11-bounce 1.5s infinite ease-in-out;
}

.loader-win11 .dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-win11 .dot:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-win11 .dot:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-win11 .dot:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-win11 .dot:nth-child(5) {
    animation-delay: 0.4s;
}

.loader-win11 .dot:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes win11-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

#win11-screen .text-content {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
}

/* macOS */
#mac-screen {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.apple-logo {
    font-size: 6rem;
    color: white;
    margin-bottom: 4rem;
}

.progress-bar-mac {
    width: 300px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill-mac {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.5s;
}

#mac-screen .text-content {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* BSOD */
#bsod-screen {
    background-color: #0078d7;
    align-items: flex-start;
    padding: 10% 15%;
    font-family: 'Segoe UI', sans-serif;
}

.sad-face {
    font-size: 8rem;
    margin-bottom: 2rem;
}

.bsod-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.bsod-percent {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.bsod-details {
    display: flex;
    gap: 1rem;
    animation: rotate 4s infinite linear;
}

.loader-win10 .circle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: win10-dots 4s infinite ease-in-out;
}

.loader-win10 .circle:nth-child(1) {
    animation-delay: 0s;
}

.loader-win10 .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-win10 .circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loader-win10 .circle:nth-child(4) {
    animation-delay: 0.6s;
}

.loader-win10 .circle:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes win10-dots {
    0% {
        transform: rotate(0deg) translateX(30px);
        opacity: 1;
    }

    20% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        transform: rotate(360deg) translateX(30px);
        opacity: 0;
    }
}

#win10-screen .text-content {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
}

/* Windows 11 */
#win11-screen {
    background-color: #000000;
    font-family: 'Segoe UI', sans-serif;
}

.loader-win11 {
    display: flex;
    gap: 8px;
    margin-bottom: 3rem;
}

.loader-win11 .dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: win11-bounce 1.5s infinite ease-in-out;
}

.loader-win11 .dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-win11 .dot:nth-child(2) {
    animation-delay: 0.1s;
}

.loader-win11 .dot:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-win11 .dot:nth-child(4) {
    animation-delay: 0.3s;
}

.loader-win11 .dot:nth-child(5) {
    animation-delay: 0.4s;
}

.loader-win11 .dot:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes win11-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

#win11-screen .text-content {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 400;
}

/* macOS */
#mac-screen {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.apple-logo {
    font-size: 6rem;
    color: white;
    margin-bottom: 4rem;
}

.progress-bar-mac {
    width: 300px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill-mac {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.5s;
}

#mac-screen .text-content {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

/* BSOD */
#bsod-screen {
    background-color: #0078d7;
    align-items: flex-start;
    padding: 10% 15%;
    font-family: 'Segoe UI', sans-serif;
}

.sad-face {
    font-size: 8rem;
    margin-bottom: 2rem;
}

.bsod-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.bsod-percent {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.bsod-details {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stop-code {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Linux Preview */
.linux-preview {
    background: #2c001e;
    border: 1px solid #5e2750;
}

/* Linux Screen */
#linux-screen {
    background-color: #2c001e;
    font-family: 'Ubuntu', sans-serif;
}

.ubuntu-logo {
    margin-bottom: 2rem;
}

.circle-u {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    position: relative;
}

.circle-u::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: transparent;
    border-radius: 50%;
    border: 4px solid white;
}

.linux-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.progress-bar-linux {
    width: 300px;
    height: 8px;
    background: #5e2750;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill-linux {
    height: 100%;
    background: #e95420;
    /* Ubuntu Orange */
    width: 0%;
    transition: width 0.5s;
}

/* Mac Error Screen */
#mac-error-screen {
    background-color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    color: white;
}

.mac-error-box {
    background: rgba(30, 30, 30, 0.9);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    backdrop-filter: blur(10px);
    border: 1px solid #333;
}

.power-icon {
    margin-bottom: 2rem;
}

.mac-error-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
}

.mac-error-box .translation {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Linux Error Screen */
#linux-error-screen {
    background-color: #000000;
    font-family: 'Courier New', Courier, monospace;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem;
    overflow: hidden;
}

.terminal-text {
    color: #00ff00;
    /* Classic terminal green or white */
    color: #aaaaaa;
    /* More realistic kernel panic grey/white */
    font-size: 1rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.terminal-text p {
    margin-bottom: 0.2rem;
}