/* General Body Styles */
body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f4f4f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Adjusted for better content alignment */
    min-height: 100vh;
    text-align: center;
    position: relative;
}

/* Dark Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay */
    z-index: -1;
}

/* Header and Title */
h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem; /* Reduced font size */
    margin: 1rem 0;
    color: #ecf0f1;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    transition: transform 0.5s ease;
    max-width: 100%; /* Ensure it fits within the container */
    word-wrap: break-word; /* Prevent long titles from overflowing */
}

h1:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for the title */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
}

/* Container */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem; /* Reduced padding for better fit */
}

/* Tagline */
.tagline {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    font-weight: bold;
    color: #f1c40f;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

/* Timer Section */
.timer-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 30px auto;
}

/* Section Divider */
.section-divider {
    width: 60%;
    height: 2px;
    background-color: #2ecc71; /* Jungle Green */
    margin: 3rem auto;
    opacity: 0.8;
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
}

/* Subscription Form */
.subscription-form {
    background-color: rgba(0, 0, 9, 0.4);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.subscription-form:hover {
    transform: translateY(-10px);
}

.subscription-form h3 {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.subscription-form p {
    color: #ecf0f1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.subscription-form input[type="email"] {
    width: 80%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid #2ecc71; /* Jungle Green */
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.button {
    background-color: #2ecc71; /* Jungle Green */
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 80%;
}

.button:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* General list styles for homogeneous appearance */
ul, ol {
    list-style-position: inside; /* Keep bullet/number inside the content */
    padding: 0; /* Remove default padding */
    margin: 0; /* Remove default margin */
}

li {
    list-style-type: none; 
    font-family: 'Merriweather', serif; /* Consistent font */
    font-size: 1.2rem; /* Uniform font size */
    color: #f4f4f4; /* Text color */
    padding: 10px 0; /* Spacing between list items */
    margin: 5px 0; /* Consistent margin around items */
    line-height: 1.6; /* Improved readability */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Add subtle divider */
    transition: transform 0.3s ease, background-color 0.3s ease; /* Smooth transition for hover effects */
}

li:last-child {
    border-bottom: none; /* Remove border for the last item */
}

/* Optional: Reset for nested lists to avoid extra indentation */
ul ul, ol ol {
    padding-left: 15px;
}

/* Content Section */
.content {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.content.show {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    color: #f1c40f;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    color: #f1c40f;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ecf0f1;
    text-align: justify;
}

/* Icons */
.icon {
    font-size: 1.4rem;
    color: #f1c40f;
    margin-right: 10px;
}

/* Motivational Section */
.motivational {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.motivational p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #ecf0f1;
    text-align: justify;
}

/* Footer */
footer {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #ecf0f1;
    opacity: 0.8;
}

/* Form Styling */
form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form p {
    font-size: 1.2rem;
    color: #333;
}

form input[type="text"], 
form input[type="number"], 
form input[type="email"], 
form input[type="password"] {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #2ecc71; /* Jungle Green */
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.action-buttons {
    background-color: #2ecc71; /* Jungle Green */
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.action-buttons:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* Table for Displaying User Info and Rankings */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

table th, table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #2ecc71; /* Jungle Green */
    color: white;
    font-weight: bold;
}

table tr:hover {
    background-color: #f1f1f1;
}

table td {
    color: #333;
}
