/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}

/* Dark Mode (Default) */
body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}

/* Light Mode */
body.light-mode {
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3{
    color: #8e44ad; /* Purple Accent */
}

p {
    color: inherit;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    margin: 10px;
    background-color: #8e44ad; /* Purple Base */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background-color: #5e3370; /* Darker Purple */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.dark-mode .modal-content {
    background-color: #2c2c54;
    color: white;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Message Div */
.message {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1100;
    font-size: 16px;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

input, select {
    padding: 8px;
    width: 80%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.dark-mode input, .dark-mode select {
    background-color: #2c2c54;
    color: white;
    border: 1px solid #5e3370;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: #f1f1f1;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
}

.dark-mode ul li {
    background: #3a3a6a;
    color: white;
}

/* Toggle Switch for Light/Dark Mode */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: #444;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.theme-toggle span {
    color: white;
    font-size: 14px;
}

.theme-switch {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.theme-switch::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 1px;
    left: 2px;
    transition: 0.3s;
}

.dark-mode .theme-switch::before {
    left: 20px;
    background: #8e44ad;
}

.terms-link {
    color: #b28dff; /* Adjust as needed for contrast */
    text-decoration: underline;
}
.notes-field {
    width: 100%;
    border: 1px solid #5e3370;
    padding: 5px;
}

/* Light mode fix */
.light-mode .notes-field {
    background-color: white;
    color: black;
    border: 1px solid #ccc;
}

/* Dark mode fix */
.dark-mode .notes-field {
    background-color: #2c2c54;
    color: white;
    border: 1px solid #5e3370;
}

/* Tooltip styling */
.tooltip-box {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    white-space: normal;
    width: 220px; /* Ensures text wraps properly */
    text-align: left;
    z-index: 99999;
    display: none;
}

/* Position adjustment */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .tooltip-box {
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
}

/* Limit width for better readability */
.container {
    max-width: 800px;  /* Prevents excessive width */
    margin: 0 auto;  /* Centers content */
    padding: 20px;
    text-align: center;
}

/* Ensure responsiveness on smaller screens */
@media (max-width: 768px) {
    .container {
        max-width: 90%;  /* Uses more screen space on mobile */
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }

    button {
        width: 100%;
    }
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

.instructions-list li {
    font-size: 1.1em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1); /* Light background for contrast */
    padding: 10px;
    border-radius: 8px;
    gap: 10px;
}

.instructions-list .icon {
    font-size: 1.2em;
    flex-shrink: 0;
}

#checkDuckModal {
    max-height: 90vh;
    overflow-y: auto;
}

#terms-conditions {
    position: relative;
    z-index: 1000;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
    max-height: 90vh;
    overflow-y: auto;
}

.logo {
max-width: 20vw;
height: auto;
}

