body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Center vertically */
}

h1 {
    margin: 0;
    /* Remove default margin */
}

.login-button {
    background: none;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.login-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    z-index: 1000;
}

/* Notification Styles */
.notification {
    background-color: #fff;
    border-left: 5px solid;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    animation: slideIn 0.5s ease-out;
}

.notification.success {
    border-color: #4CAF50;
}

.notification.error {
    border-color: #F44336;
}

.notification.info {
    border-color: #2196F3;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} 

nav {
    background-color: #333;
    padding: 0.5em;
    text-align: center;
    /* border-radius: 10px; */
    margin: 0;
    display: flex;
    justify-content: space-between;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #555;
}

/* Move the last nav item to the right */
nav a:last-child {
    margin-left: auto;
}

.event {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 10px;
    width: 300px;
    /* Adjust the width as needed */
}

.event h2 {
    margin-top: 0;
}

.event p {
    margin: 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex !important;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none !important;
}

.auth-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
}

.form-container {
    padding: 20px;
    background: white;
}

.form-container input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-container button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.form-container button:hover {
    background-color: #0056b3;
}

.hidden {
    display: none !important;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: #333;
}

/* User Section Styles */
.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 6px;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-details span {
    font-size: 14px;
    color: white;
    opacity: 0.9;
}

#loginDuration {
    opacity: 0.7;
    font-size: 12px;
}

.balance-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 4px;
}

.balance-display {
    font-weight: bold;
    color: white;
    font-size: 15px;
}

/* Button Styles */
.deposit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.deposit-button:hover {
    background: #45a049;
}

.logout-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Deposit Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #333;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: white;
}

.close-modal {
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 0;
    line-height: 1;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: #4CAF50;
}

.payment-method i {
    font-size: 20px;
    color: #4CAF50;
    width: 30px;
    text-align: center;
}

.payment-method span {
    color: white;
    font-size: 16px;
}

/* Payment method specific styles */
.payment-method[data-method="card"] { border-left: 3px solid #ff6b6b; }
.payment-method[data-method="swish"] { border-left: 3px solid #4ecdc4; }
.payment-method[data-method="bank"] { border-left: 3px solid #45b7d1; }
.payment-method[data-method="paypal"] { border-left: 3px solid #4a90e2; }

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Card Payment Form Styles */
.payment-form {
    background: #333;
    color: white;
}

.payment-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-group {
    position: relative;
}

.form-group i {
    position: absolute;
    right: 12px;
    top: 38px;
    color: rgba(255, 255, 255, 0.5);
}

.card-details {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-end; /* Aligns items to bottom */
    position: relative;
}

.card-details .form-group {
    flex: 1;
}

/* Make expiry date group smaller */
.card-details .form-group:first-child {
    flex: 0 0 120px;
}

/* Make CVV group smaller */
.card-details .form-group:last-child {
    flex: 0 0 100px;
}

.card-type-display {
    flex: 0 0 50px;
    text-align: center;
    padding-bottom: 10px; /* Aligns with input fields */
}

.card-type-display i {
    font-size: 24px;
    color: #666;
}

/* Card brand specific colors */
.fa-cc-visa {
    color: #1a1f71;
}

.fa-cc-mastercard {
    color: #eb001b;
}

.fa-cc-amex {
    color: #2e77bc;
}

.submit-button {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.submit-button:hover {
    background: linear-gradient(145deg, #45a049, #4CAF50);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.submit-button.loading {
    background: #666;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Custom Notifications */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: #333;
    color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    transition: all 0.3s ease;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification.info {
    border-left: 4px solid #2196F3;
}

.notification i {
    font-size: 20px;
}

.notification .content {
    flex-grow: 1;
}

.notification .title {
    font-weight: bold;
    margin-bottom: 5px;
}

.notification .message {
    font-size: 14px;
    opacity: 0.9;
}

.notification .close-notification {
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.notification .close-notification:hover {
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}