
/* General Styles */
body {
    background-color: white;
    color: black;
    transition: background-color 0.5s ease, color 0.5s ease;
}

header {
    background-color: #f8f9fa;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ccc;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    text-align: right;
    padding: 10px;
    position: fixed;
    bottom: 10px;
    right: 10px;
}

/* Theme selector bubble */
#theme-switcher {
    padding: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, #ff7f50, #1e90ff, #32cd32);
    color: white;
    font-size: 1.2em;
    text-align: center;
    line-height: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#theme-switcher:hover {
    transform: scale(1.1);
}

#theme-options {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 20px;
    background-color: white;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

#theme-options button {
    display: block;
    margin: 5px 0;
    width: 100%;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#theme-options button:hover {
    background-color: #0056b3;
}

/* Register pop-up */
#register-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-radius: 10px;
    width: 400px;
    transition: background-color 0.5s ease, color 0.5s ease;
}

#register-popup form {
    display: flex;
    flex-direction: column;
}

#register-popup label {
    margin-bottom: 5px;
    font-weight: bold;
}

#register-popup input {
    margin-bottom: 15px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

#register-popup .close-btn {
    display: inline-block;
    margin-top: 15px;
    background-color: #ff4757;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    width: 100px;
    text-align: center;
}

/* Modal for showing the result (error or success message) */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    color: black;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
}

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

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
}

/* Error and success message classes */
.error-message {
    color: red;
    font-weight: bold;
}

.success-message {
    color: green;
    font-weight: bold;
}
