@import url('https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Quicksand:wght@500;700&display=swap');

body {
    background: #434249;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(77, 72, 77, 0.5) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(44, 38, 53, 0.5) 0%, transparent 20%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 10px);
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding: 20px; /* Add padding to the body */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.8); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.2); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideOutUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-50px); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateOut {
    from { opacity: 1; transform: rotateX(0); }
    to { opacity: 0; transform: rotateX(-90deg); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotateX(90deg); }
    to { opacity: 1; transform: rotateX(0); }
}

@keyframes blurOut {
    from { opacity: 1; filter: blur(0); transform: scale(1); }
    to { opacity: 0; filter: blur(10px); transform: scale(0.9); }
}

@keyframes blurIn {
    from { opacity: 0; filter: blur(10px); transform: scale(1.1); }
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

.musical-note {
    position: fixed;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2rem;
    z-index: -1;
}

.note-1 { top: 5%; left: 5%; }
.note-2 { top: 15%; right: 10%; }
.note-3 { top: 25%; left: 15%; }
.note-4 { top: 35%; right: 20%; }
.note-5 { top: 45%; left: 8%; }
.note-6 { top: 55%; right: 15%; }
.note-7 { top: 65%; left: 20%; }
.note-8 { top: 75%; right: 8%; }
.note-9 { top: 85%; left: 12%; }
.note-10 { top: 90%; right: 12%; }

.musical-note.treble {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
}

header h1 {
    font-family: 'Marcellus SC', serif;
    background: linear-gradient(45deg, #fff 0%, #d4d4d4 50%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    letter-spacing: 0.1em;
}

header h1::before {
    content: "♪";
    position: absolute;
    left: -40px;
    top: 0;
    color: #a3a3a3;
    animation: float 3s infinite ease-in-out;
}

header h1::after {
    content: "♫";
    position: absolute;
    right: -40px;
    bottom: 0;
    color: #a3a3a3;
    animation: float 3s infinite ease-in-out reverse;
}

.team-score {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
    text-align: center;
}

.team-score:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.team-name1 {
    color: #4a90e2;
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.team-name2 {
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
}

.countdown {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    min-width: 180px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#word_display {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s ease;
    max-width: 800px;
    perspective: 1000px;
}

#word_display:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}
.slide-out {
    animation: slideOutUp 0.5s ease-out forwards;
}
.slide-in {
    animation: slideInUp 0.5s ease-out forwards;
}
.rotate-out {
    animation: rotateOut 0.5s ease-out forwards;
}
.rotate-in {
    animation: rotateIn 0.5s ease-out forwards;
}
.blur-out {
    animation: blurOut 0.5s ease-out forwards;
}
.blur-in {
    animation: blurIn 0.5s ease-out forwards;
}

.musical-decoration::before {
    content: "♪";
    position: absolute;
    left: -20px;
    top: -10px;
    color: rgba(255, 255, 255, 0.3);
}

.musical-decoration::after {
    content: "♫";
    position: absolute;
    right: -20px;
    bottom: -10px;
    color: rgba(255, 255, 255, 0.3);
}

/* Media query for wide screens */
@media (min-width: 1200px) {
    body {
        padding: 40px; /* Increase padding for wide screens */
    }

    header h1 {
        font-size: 3rem; /* Increase font size for header */
    }

    .team-score {
        min-width: 300px; /* Increase minimum width for team score */
    }

    .countdown {
        min-width: 250px; /* Increase minimum width for countdown */
        min-height: 250px; /* Increase minimum height for countdown */
    }

    #word_display {
        max-width: 1000px; /* Increase maximum width for word display */
    }
}

/* Media query for small screens */
@media (max-width: 600px) {
    body {
        padding: 10px; /* Decrease padding for small screens */
    }

    header h1 {
        font-size: 1.5rem; /* Decrease font size for header */
    }

    .team-score {
        min-width: 150px; /* Decrease minimum width for team score */
    }

    .countdown {
        min-width: 150px; /* Decrease minimum width for countdown */
        min-height: 150px; /* Decrease minimum height for countdown */
    }

    #word_display {
        max-width: 600px; /* Decrease maximum width for word display */
    }
}