/* === Global Reset and Body === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding-bottom: 40px;
}

/* === Header & Title Bar === */
.title-container {
    background-color: #4CAF50;
    color: white;
    padding: 20px;
    text-align: center;
}

.title-container h1,
.title-container h2 {
    color: white;
    margin: 10px;
}

/* === Navigation Bar === */
nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 12px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #4CAF50;
    border-radius: 4px;
}

/* === Main Content Container === */
.container {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

/* === Buttons === */
button, .button, .btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

button:hover, .button:hover, .btn:hover {
    background-color: #45a049;
}

/* === Forms === */
input[type="text"], input[type="email"], select {
    padding: 10px;
    margin: 10px 0;
    width: 300px;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="checkbox"] {
    margin-right: 8px;
}

/* === Cards === */
.card {
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 20px;
    margin: 20px auto;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #4CAF50;
    color: white;
}

/* === Alerts === */
.alert, .info-box {
    border: 1px solid #4CAF50;
    background-color: #e8f5e9;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    color: #2e7d32;
}

/* === Code Blocks === */
pre, code {
    background-color: #eee;
    padding: 5px 10px;
    font-family: monospace;
    border-radius: 4px;
    display: inline-block;
}

/* === Modal Popup === */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: white;
    border: 2px solid #4CAF50;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
}

.modal.active {
    display: block;
}

/* === Icon Effects (Snowflakes / Leaves) === */
.snowflake, .leaf {
    font-size: 24px;
    position: absolute;
    animation: fall 10s linear infinite;
    pointer-events: none;
}

@keyframes fall {
    0% { transform: translateY(-100px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* === Slim Footer === */
footer {
    background-color: #4CAF50;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 0.9rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}
