:root {
    --primary-color: #ff4b4b;
    --primary-dark: #cc0000;
    --secondary-color: #f0f0f0;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f8f8;
}

.header {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

#logo {
    height: 80px;
    vertical-align: middle;
    margin-left: 1rem;
}

.bingo-caller {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 800px;
    width: 90%;
}

.number-display {
    font-size: 5rem;
    font-weight: bold;
    text-align: center;
    padding: 2rem;
    margin: 1rem 0;
    border: 4px solid var(--primary-color);
    border-radius: 12px;
    background-color: var(--secondary-color);
    animation: numberPop 0.5s ease-out;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.primary-button, .secondary-button, .reset-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-button {
    background: linear-gradient(to bottom right, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.secondary-button {
    background: var(--secondary-color);
    color: var(--text-color);
}

.previous-numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.previous-number {
    background-color: var(--secondary-color);
    border-radius: 4px;
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
}

@keyframes numberPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem;
}

.settings-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    transition: transform 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(90deg);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto; 
    padding: 2rem;
    border-radius: 12px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.settings-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.setting-item {
    display: grid;
    gap: 0.5rem;
}

.setting-item input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.settings-select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
    background-color: var(--white);
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.current-logo {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

.url-input {
    margin-top: 0.5rem;
}

.or-divider {
    display: block;
    text-align: center;
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}



/* BUTTON DEACTIVATE BECAUSE OF AN ERROR*/

.disabled-button {
    background-color: #d3d3d3; 
    color: #a9a9a9; 
    cursor: not-allowed; 
    border: 1px solid #a9a9a9; 
}