/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
    color: #333;
    text-align: center;
    min-height: 100vh;

}


/* Header */
header {
    background: transparent;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 1s ease-out forwards;
}

header h1 {
    color: black;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    flex-wrap: wrap;
    overflow: hidden;
}

#logo {
    width: 100px;
    margin-right: 15px;
    max-width: 100%;
    transition: transform 0.3s ease;
}


/* Navigation */
nav {
    background-color: white;
    padding: 10px;
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 1s ease-out forwards 0.2s;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Login Section */
.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 300px;
    margin: 50px auto;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease-out forwards 0.4s;
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box[style*="background-color: #fff0f0;"] h2 {
    color: #b30000;
    margin-bottom: 10px;
}


/* Buttons */
.login-btn, .logout-btn {
    background-color: #f8b400;
    color: white;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover, .logout-btn:hover {
    background-color: #e09500;
    transform: scale(1.05);
}

.login-btn:active, .logout-btn:active {
    transform: scale(0.95);
}

@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.login-btn {
    background-color: #f8b400;
    color: white;
    padding: 15px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
    background-color: #e09500;
    transform: scale(1.05);
}

.login-btn:active {
    transform: scale(0.95);
}

/* Add this class dynamically when we want it to bounce */
.bounce {
    animation: subtleBounce 0.6s ease;
}

/* Footer */
footer {
    background-color: white;
    color: black;
    text-align: center;
    padding: 10px;
    position: relative;
    width: 100%;
    bottom: 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 1s ease-out forwards 0.6s;
}

body::after {
    content: "";
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    z-index: -1;
}
