html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: "Readex Pro", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #121212;
    color: white;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: clamp(20px, 5vw, 40px);
    font-weight: 600;
}

#inputSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

input {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: clamp(14px, 4vw, 16px);
    border: none;
    border-radius: 50px;
    background-color: #2a2a2a;
    color: white;
    text-align: center;
    font-family: "Readex Pro", sans-serif;
    font-weight: 400;
}

input::placeholder {
    color: #666;
}

button {
    padding: 15px 40px;
    font-size: clamp(14px, 4vw, 16px);
    border: none;
    border-radius: 50px;
    background-color: #e6e6e6;
    color: black;
    cursor: pointer;
    min-width: 200px;
    font-family: "Readex Pro", sans-serif;
    font-weight: 400;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(5px, 2vw, 10px);
    margin: 0 auto 20px;
    max-width: min(90vw, 400px);
}

.bingo-cell {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: clamp(10px, 3vw, 20px);
    text-align: center;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(12px, 3vw, 16px);
    color: white;
    font-weight: 400;
}

.bingo-cell.marked {
    color: #ff8686;
}

.bingo-cell.marked::after {
    content: "❌";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    font-size: clamp(60px, 15vw, 80px);
    z-index: 1;
}

.submit-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.submit-btn {
    margin: 0 auto;
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    input,
    button {
        padding: 12px 20px;
    }
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 100px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
    font-family: "Readex Pro", sans-serif;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #00c437;
}

.notification.error {
    background-color: #ff3b30;
}