/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body, html {
    overflow: hidden;
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Orbitron';
    background-image: url('public/images/countryside.webp');
    background-size: cover;
    background-position: center;
    color: white;
    /* Center the content */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background-image: linear-gradient(to right, #3B82F6, #8B5CF6, #EC4899, #F59E0B);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    padding-bottom: 0.1em;
    animation: title-gradient 3s linear infinite;
}

@keyframes title-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Respect users who prefer less motion: keep the gradient, drop the loop */
@media (prefers-reduced-motion: reduce) {
    .title {
        animation: none;
        background-position: 0% 50%;
    }
}

/* Logo mark — the favicon, inlined so each block can animate */
.logo-mark {
    width: 88px;
    height: 88px;
    margin-bottom: 0.6rem;
    overflow: visible; /* let blocks fall in from above without clipping */
}

.logo-mark .block {
    /* backwards fill = hold the "from" state during the delay, so the logo
       isn't briefly shown fully assembled before the animation starts */
    animation: block-drop 0.45s cubic-bezier(0.2, 0.85, 0.3, 1) backwards;
}

/* Stagger the blocks so they cascade in like falling pieces */
.logo-mark .block:nth-child(1) { animation-delay: 0.05s; }
.logo-mark .block:nth-child(2) { animation-delay: 0.13s; }
.logo-mark .block:nth-child(3) { animation-delay: 0.32s; }
.logo-mark .block:nth-child(4) { animation-delay: 0.21s; }
.logo-mark .block:nth-child(5) { animation-delay: 0.40s; }
.logo-mark .block:nth-child(6) { animation-delay: 0.50s; }
.logo-mark .block:nth-child(7) { animation-delay: 0.44s; }
.logo-mark .block:nth-child(8) { animation-delay: 0.28s; }

@keyframes block-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-mark .block {
        animation: none;
    }
}

/* Wrapper to center the game content */
.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    display: flex;
    align-items: flex-start;
    gap: 0px; /* Keeps sections attached */
}

.start-card {
    width: 100%;
    max-width: 420px;
    margin: 0 1rem;
    padding: 2.5rem 2rem 1.25rem;
    /* Never grow past the space above the footer; scroll internally if a very
       short viewport can't fit the card, instead of clipping behind the footer. */
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: rgba(18, 18, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Orbitron';
}

.hold-section, .next-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
}


/* Additional Adjustments */
.hold-section p, .next-section p {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    text-align: left;
    color: black;
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hold-section {
    width: 140px; /* Set an explicit width to keep it consistent */
    height: 140px; /* Keep the height consistent with the width */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center; /* Horizontally center content */
    align-items: center; /* Vertically center content */
    margin: 10px auto; /* Center the hold box in its container */
    padding: 0; /* Remove any padding */
    border: 3px solid white; /* Add a border to match the game's visual style */
}

/* Hold Box Content Styling */
.hold-section canvas {
    height: auto;
    width: auto; /* Adjust based on the content */
    background-color: transparent; /* Ensure the background remains transparent */
}

.next-section {
    position: relative;
    background-color: rgba(0, 0, 0, 0.7);
    border: 3px solid white;
    padding-top: 30px;
    overflow: hidden;
}

.next-section canvas {
    height: auto; /* Let it adapt to the content */
    background-color: transparent;
}

.next-box {
    height: auto;
    display: flex;
    flex-direction: column; /* Arrange pieces vertically */
    align-items: center;
}

.game-area {
    display: flex;
    align-items: flex-start;
}

.game-grid .grid-overlay {
    background-size: 35px 35px; /* Matches main grid block size */
}

.game-grid {
    position: relative;
    width: fit-content;       /* Ensure it only takes up the content size */
    height: fit-content;      /* Ensure it only takes up the content size */
    max-width: 700px;         /* Prevent the container from growing too wide */
    max-height: 1000px;       /* Prevent the container from growing too tall */
    margin: 0 auto;           /* Center the game grid */
    overflow: hidden;         /* Hide any overflow, especially from canvas exceeding bounds */
    box-sizing: border-box;   /* Ensures padding and borders are included in width/height calculations */
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(20, 1fr);
    background-color: rgba(0, 0, 0, 0.7);
    position: relative;
    border-left: 3px solid white;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    border-top: none; /* Removes the top border */
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#game-canvas {
    display: block;
    margin: 0 auto;
    max-width: 700px;    /* Ensure max width remains consistent with JavaScript logic */
    max-height: 1000px;  /* Ensure max height remains consistent with JavaScript logic */
    box-sizing: border-box;
}

/* Hold and Next Canvas adjustments to maintain alignment */
.hold-canvas-container,
.next-canvas-container {
    width: fit-content;
    margin: 0 auto;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 35px 35px; /* Scaled for larger grid */
    pointer-events: none;
}

.level-bar {
    width: 25px;
    height: 100%; /* Stretch to match the game grid height */
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border-left: 3px solid white;
    border-right: 3px solid white;
    border-bottom: 3px solid white;
    border-top: none;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.level-progress {
    width: 100%;
    height: 0%; /* Start from 0% */
    background-color: #4CAF50;
    transition: height 0.5s ease;
    position: absolute;
    bottom: 0; /* Position at the bottom */
}

/* Bottom info styling for score and level display */
.bottom-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 2px;
}

.score-display, .level-display {
    font-family: 'Press Start 2P';
    color: white;
}

.score-display {
    font-size: 1.5em; /* Larger font for score */
}

.level-display {
    font-size: 3em; /* Larger font for level */
    font-weight: bold;
    font-family: 'Press Start 2P';
    color: white;
}

.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    /* font-size: 24px; */
    visibility: hidden;
}

.game-over h2 {
    margin: 0 0 20px;
}

.game-over #footer {
    margin-bottom: 15px;
}

.game-over button {
    padding: 10px 20px;
    font-size: 18px;
    font-family: 'Orbitron';
    color: white;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
}

.game-over button:hover {
    background-color: #45a049;
}

#leaderboard-list li:nth-child(1) {
    background-image: linear-gradient(90deg, #ff9100, #f5e000);
    -webkit-background-clip: text;
    color: transparent;
}

/* General style to remove bullets */
#leaderboard-list {
    list-style: none;
    padding: 0;
}

#leaderboard-list li {
    padding: 5px 20px;
}

#final-score {
    background-image: linear-gradient(90deg, #1E90FF, #00BFFF);
    -webkit-background-clip: text;
    color: transparent;
}

#user-rank {
    padding-bottom: 2rem;
}

#start-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
    backdrop-filter: blur(1px); /* Apply blur */
    z-index: -1; /* Place it behind the content */
}

#start-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('public/images/countryside.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0;
    box-sizing: border-box;
    /* Reserve space for the fixed footer so the centered card can't overlap it */
    padding-bottom: 72px;
}

#start-screen h1 {
    font-size: 48px;
    /* color: white; */
    margin-bottom: 10px;
}

#start-screen p {
    margin-bottom: 30px;
}

#start-screen .tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
    max-width: 34ch;
    margin: 0 0 1.75rem;
}

#start-screen .auth-hint {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    margin: 1.25rem 0 0;
    text-align: center;
}

.next-box {
    /* Remove fixed height */
    height: auto;
    margin-top: 40px;
    display: flex;
    flex-direction: column; /* Arrange pieces vertically */
    align-items: center;
}

.mini-grid {
    position: relative;
    width: 120px;
    height: 120px;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto; /* Center the mini-grid */
    padding: 0;
    box-sizing: border-box;
}

.mini-grid div {
    position: absolute;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    box-sizing: border-box;
}

#pause-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* Enhanced Settings Menu Styling */
#settings-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85); /* Slightly opaque for better readability */
    padding: 30px;
    width: 300px; /* Consistent width for better alignment */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    color: white;
    z-index: 101;
}

#settings-form label {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    margin-top: 10px;
    display: block;
    text-align: left;
}

#settings-form input[type="number"],
#settings-form select {
    width: 100%;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    padding: 5px;
    margin-top: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid #4CAF50;
    border-radius: 5px;
}

.settings-buttons {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    margin-top: 20px;
}

.settings-buttons button {
    padding: 10px 20px;
    width: 200px; /* Set a wider width */
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: center;
}

.settings-buttons button:hover {
    background-color: #45a049;
}

#background-select {
    background-color: rgba(0, 0, 0, 0.85); /* Gray background */
    color: white; /* White text for readability */
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    padding: 5px;
    border: 1px solid #4CAF50;
    border-radius: 5px;
    width: 100%;
    appearance: none; /* Remove default styling for consistency */
}

/* Styling each option */
#background-select option {
    background-color: rgba(0, 0, 0, 0.85); /* Gray background */
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
}

/* Background Preview Styling */
.background-preview {
    width: 100%;
    height: 80px;
    margin-top: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid #4CAF50;
    border-radius: 4px;
}

.cell.locking {
    animation: lockFlash 0.5s infinite;
}

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

@keyframes shake-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@keyframes shake-right {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes shake-vertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.shake-left {
    animation: shake-left 0.1s ease-in-out;
}

.shake-right {
    animation: shake-right 0.1s ease-in-out;
}

.shake-vertical {
    animation: shake-vertical 0.1s ease-in-out;
}

#footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9em;
    font-family: 'Orbitron', sans-serif;
}

.warning {
    background: linear-gradient(90deg, rgb(255, 0, 102), rgb(255, 0, 64), rgb(255, 115, 0));
    -webkit-background-clip: text;
    color: transparent;
    font-weight: bold;
}

#footer a {
    background: linear-gradient(90deg, rgb(0, 167, 64), rgb(0, 255, 55));
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    font-weight: bold;
    transition: background-position 0.5s ease-in-out;
    background-size: 200% 100%; /* Make the gradient larger for sliding effect */
    background-position: 0% 0%;
}

#footer a:hover {
    background-position: 100% 0%; /* Shift gradient on hover */
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    opacity: 1;
    animation: particleMove 0.6s ease-out forwards;
    pointer-events: none;
    z-index: 100; /* Ensure particles are above other elements */
}

#particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100; /* Ensure particles appear above other elements */
}

#keybinds-info {
    color: white;
    font-family: 'Orbitron', sans-serif;
    width: 100%;
    text-align: left;
}

#keybinds-info ul {
    width: 100%;
    padding: 0;
    list-style-type: none;
}

#keybinds-info ul li {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    padding: 8px 12px; /* Reduced padding */
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease;
}

#keybinds-info ul li:hover {
    background-color: rgba(76, 175, 80, 0.25);
}

#keybinds-info li strong {
    font-size: 1.1em;
    color: #4CAF50;
}

#keybinds-info ul li input {
    border: none;
    border-bottom: 2px solid transparent; /* Initial transparent bottom border */
    width: 80%;
    padding: 0.5rem 0;
    font-size: 1rem;
    background: transparent;
    color: white;
    outline: none;
    text-align: left;
    font-family: 'Orbitron', sans-serif;
    transition: border-color 0.3s ease, background-position 0.5s ease-in-out;
    background-image: linear-gradient(90deg, rgb(0, 167, 64), rgb(0, 255, 115));
    background-size: 100% 2px; /* Gradient for bottom border */
    background-repeat: no-repeat;
    background-position: bottom; /* Position gradient at the bottom */
}

#keybinds-info ul li input:focus {
    border-bottom: none;
    background-size: 200% 2px;
    background-position: 100% bottom;
}

#reset-keybinds {
    width: 100%;
    margin-top: 1.5rem;
    padding: 0.7rem 16px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #4CAF50;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#reset-keybinds:hover {
    background-color: rgba(76, 175, 80, 0.25);
}

/* "Customize controls" trigger in the start card */
.controls-trigger {
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: none;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.92rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.controls-trigger::before {
    content: '\2699  '; /* ⚙ */
}

.controls-trigger:hover {
    color: #6ee07a;
}

/* Controls modal overlay */
.controls-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.controls-modal[hidden] {
    display: none;
}

.controls-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modal-fade 0.2s ease-out;
}

.controls-modal__card {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem 2.25rem 2rem;
    background: rgba(18, 18, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    animation: modal-pop 0.22s ease-out;
}

.controls-modal__card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.controls-modal__hint {
    margin: 0 0 1.5rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
}

.controls-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 1.1rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.controls-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-form {
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
}

.auth-form h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.auth-form h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: left; 
}

.auth-form p {
    margin-bottom: 1.5rem;
    text-align: left; 
}

.auth-form input {
    border-bottom: 2px solid #4CAF50; /* Consistent green */
    width: 90%;
    margin: 1rem 0;
    padding: 1rem;
    padding-left: 0;  /* Remove left padding to align the text with the bottom border */
    font-size: 1rem;
    border: none;  /* Remove all borders */
    border-bottom: 2px solid #cccccc;  /* Only add a bottom border */
    border-radius: 0;  /* No border radius */
    background: transparent;  /* Make the background transparent */
    color: white;  /* Set text color to white */
    outline: none;  /* Remove outline when focused */
    font-family: 'Orbitron';
}

.auth-form input::placeholder {
    color: #cccccc;  /* Light grey for placeholders */
    opacity: 1;  /* Ensure placeholder is visible */
    position: relative;
    transform: translateY(4px);  /* Adjust to align with bottom border visually */
}

.auth-form input:focus {
    border-bottom-color: #4CAF50;  /* Change border color to green when focused */
}

.auth-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-form button:hover {
    background-color: #218838;
}

#auth-error {
    background: linear-gradient(90deg, rgb(255, 0, 89), rgb(255, 65, 40));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;

    padding: 10px 15px;          /* Adds space inside the error box */
    margin-top: 20px;     

    /* Font Styling */
    font-size: 15px;             /* Sets a readable font size */
    font-weight: bold;           /* Makes the error message bold */

    /* Optional: Transition for Gradient Animation */
    transition: background-position 0.5s ease-in-out;

}

/* Collapse the error box entirely when there's no message, so it doesn't
   add empty padding between the hint text and the controls trigger. */
#auth-error:empty {
    display: none;
}

/* Shake Animation Keyframes for Error Shake */
@keyframes error-shake {
    0% { transform: translate(0px, 0px); }
    10% { transform: translate(-10px, 0px); }
    20% { transform: translate(10px, 0px); }
    30% { transform: translate(-10px, 0px); }
    40% { transform: translate(10px, 0px); }
    50% { transform: translate(-10px, 0px); }
    60% { transform: translate(10px, 0px); }
    70% { transform: translate(-10px, 0px); }
    80% { transform: translate(10px, 0px); }
    90% { transform: translate(-10px, 0px); }
    100% { transform: translate(0px, 0px); }
}

/* Error Shake Animation Class */
.error-shake {
    animation: error-shake 0.2s ease-in-out;
}

/* Auth form sits directly inside the centered card (no inner panel). */
.start-card .auth-form {
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.start-card .auth-form .play-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.95rem;
    font-size: 1.1rem;
    border-radius: 10px;
    flex-grow: 0;
}

.start-card #guest-button {
    margin-top: 0.9rem;
}

#guest-button {
    background-color: #4CAF50;
    background: none;
    border: none; /* Remove the button border */
    color: #fff;
    text-decoration: underline; /* Add underline to make it look like a hyperlink */
    font-size: 1rem; /* Keep a readable size */
    cursor: pointer; /* Keep the pointer cursor for clickable appearance */
    padding: 0; /* Remove padding to make it more like a link */
    font-family: 'Orbitron';
}

#guest-button:hover {
    color: #b0b0b0; /* Slightly darker shade on hover */
}

.play-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    background-image: linear-gradient(90deg, rgb(76, 50, 208), rgb(183, 0, 255));
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    font-family: 'Orbitron';
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.play-button:hover {
    background-position: 100% 0%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}