/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: #373a2c; /* Dark grey background for dark mode */
    color: #fafafa; /* Light text color for readability */
}

h2, h3 {
    margin: 20px 0;
    color: #fafafa; /* White color for headings */
}

/* Home page sections */
#home div {
    margin: 20px 0;
    padding: 15px;
    background-color: #c32ac6; /* Lavender background for sections */
    color: #ffffff; /* White text for contrast */
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

#home div:hover {
    background-color: #921e94; /* Darker Lavender on hover */
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

/* Button styles */
button, .modal-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #c32ac6; /* Lavender background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover, .modal-button:hover {
    background-color: #921e94; /* Darker Lavender on hover */
    transform: scale(1.05);
}

/* Main content area */
main {
    margin: 40px auto;
    max-width: 600px;
    padding: 20px;
    background-color: #373a2c; /* Same background color as body */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* Subtle shadow to create depth */
    border: 1px solid #2c2f2b; /* Slightly darker border to separate from body background */
    color: #fafafa; /* White text color for consistency */
}

/* Button container styles */
.button-container {
    display: flex;
    justify-content: space-between; /* Space buttons evenly */
    margin-top: 40px; /* Adjust as needed */
}

.half-width {
    flex: 1;
    margin: 0 5px; /* Space between buttons */
    padding: 15px 0;
    background-color: #c32ac6; /* Lavender background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    /* Ensure buttons take full available width */
}

.half-width:hover {
    background-color: #921e94; /* Darker Lavender on hover */
    transform: scale(1.05);
}

/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
}

.modal-content {
    background-color: #2c2f2b; /* Darker background for modal */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust based on your design */
    color: #fafafa; /* Ensure text in modal is visible */
}

/* Close button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
/* Pop-in animation */
@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pop-out animation */
@keyframes popOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Apply the pop-in animation to modal content */
.modal-content.pop-in {
    animation: popIn 0.5s ease-out forwards;
}

/* Apply the pop-out animation to modal content */
.modal-content.pop-out {
    animation: popOut 0.5s ease-in forwards;
}
/* Modal animation */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Black with opacity */
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Adjust based on your design */
    transform: scale(0.5);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Button inside modal */
.modal-button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #c32ac6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #921e94;
}
