* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

.navbar {
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar li {
    padding: 1rem;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.auth-container {
    display: flex;
}

.login-btn, .logout-btn {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.logout-btn {
    background-color: #dc3545;
}

.container {
    padding-top: 60px; /* Space for fixed navbar */
}

.page {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Section Backgrounds */
.football-bg {
    background-image: url('https://images.pexels.com/photos/31160149/pexels-photo-31160149.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.basketball-bg {
    background-image: url('https://images.pexels.com/photos/2346/sport-high-united-states-of-america-ball.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

.grandma-bg {
    background-image: url('https://images.pexels.com/photos/6495098/pexels-photo-6495098.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;

}

h1 {
    margin-bottom: 2rem;
    color: #333;
}

.code-container {
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    min-height: 200px;
}

.no-codes {
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
}

.code-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin: 0.5rem 0;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.admin-panel {
    width: 80%;
    max-width: 600px;
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.admin-panel h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #555;
}

input {
    width: 70%;
    padding: 0.8rem;
    margin-right: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.8rem 1.2rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0069d9;
}

/* Delete button styles */
.delete-btn {
    background-color: #dc3545;
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    margin-left: 10px;
}

.delete-btn:hover {
    background-color: #bd2130;
}

.clear-all-btn {
    background-color: #6c757d;
    color: white;
    padding: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.clear-all-btn:hover {
    background-color: #5a6268;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #333;
}

.modal input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal button {
    width: 100%;
}

.error-message {
    color: #dc3545;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .code-container, .admin-panel {
        width: 95%;
    }
    
    input {
        width: 65%;
    }
    
    .navbar {
        flex-direction: column;
        padding: 0;
    }
    
    .auth-container {
        margin-bottom: 0.5rem;
    }
    
    .container {
        padding-top: 100px;
    }
}




























