/* Crimson Color Theme */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #fdecea;
    color: #333;
    padding: 20px;
    line-height: 1.6;
}

a {
    color: #dc143c;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #ff4d6d;
}

h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 10px;
    color: #a30d2d;
}

p {
    margin-bottom: 15px;
}

/* Header Styling */
header {
    padding: 60px;
    text-align: center;
    border-radius: 10px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    color: #ff4d6d;
}

header p {
    font-size: 1.1em;
    opacity: 0.9;
    color: black;
}

/* Section Styling */
section {
    background: #f8d7da;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: 4px solid #dc143c;
}

section:nth-child(even) {
    border-color: #ff4d6d;
    background: #fde4e6;
}

section h2 {
    font-size: 1.8em;
}

/* Footer Styling */
footer {
    background: #dc143c;
    color: white;
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

footer a {
    color: #ffffff;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

footer a:hover {
    color: #f8d7da;
    text-decoration: underline;
}

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

.modal {
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal h2 {
    color: #dc143c;
    margin-bottom: 20px;
}

.modal button {
    background: #ff4d6d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.modal button:hover {
    background: #dc143c;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    header, footer {
        padding: 40px;
    }
    section {
        padding: 20px;
    }
}
