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

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#game-container {
    position: relative;
    width: 800px;
    height: 1200px;
    overflow: hidden;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hidden {
    display: none;
}

#pong-canvas {
    background-color: #000;
    width: 100%;
    height: 100%;
}

#score {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: white;
}

#camera-feed {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 160px;
    height: 120px;
    border: 2px solid white;
    overflow: hidden;
    z-index: 15;
    transition: all 0.3s ease;
}

#webcam, #output-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mirror-btn {
    position: absolute;
    bottom: 5px;
    left: 5px;
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid white;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    z-index: 6;
}

.mirror-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-top: 20px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#replay-button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#replay-button:hover {
    background-color: #45a049;
} 