@charset "UTF-8";
/* CSS Document used for the Web Project One 
Author: Injamam Chowdhury
Course: ITWP 1000
File: styles.css
*/

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
    background: url('https://example.com/snow-background.jpg') no-repeat center center fixed; /* Add a snowy background */
    background-size: cover;
}

/* Header */
header {
    background-color: #b30000; /* Christmas red */
    color: white;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Cursive', sans-serif;
    font-size: 2.5em;
    letter-spacing: 2px;
}

/* Navigation Bar */
nav {
    background-color: #008000; /* Christmas green */
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffcc00; /* Golden hover effect */
}

/* Main Section */
main {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #b30000;
}

p {
    line-height: 1.6;
}

/* Christmas Button */
button {
    background-color: #b30000;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #008000;
}

/* Footer */
footer {
    background-color: #b30000;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

/* Christmas Decorations */
.christmas-tree {
    display: inline-block;
    width: 150px;
    height: 200px;
    background: url('https://example.com/christmas-tree.png') no-repeat center center;
    background-size: cover;
    margin: 20px auto;
}

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.snowflakes div {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    animation: snowfall 10s linear infinite;
}

@keyframes snowfall {
    0% {
        top: -10px;
        transform: translateX(0);
    }
    100% {
        top: 100vh;
        transform: translateX(100px);
    }
}

.snowflakes div:nth-child(odd) {
    animation-duration: 12s;
}

.snowflakes div:nth-child(even) {
    animation-duration: 8s;
}
