/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #f0f0f0; /* Fallback color */
    color: #333;
    margin: 0;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s; /* Smooth theme transition */
    position: relative;
}

/* Blurred background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Appear behind all over elements */
    background: url("../img/Backdrop.png") no-repeat center center;    
    background-size: cover;
    filter: blur(5px);
    transform: scale(1.1);
}


/* Main container for content */
.container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth theme transition */

}

h1, h2 {
    color: #333;
    transition: border-color 0.3s;
}

h1{
    text-align: center;
    margin-bottom: 1rem;
}

h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 40px;
}

/* Text below header */
.info {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    transition: color 0.3s;

}

/* Main Menu Styles */
.main-menu {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    transition: background-color 0.3s, border-color 0.3s;
}

/* List of items style */
.main-menu li {
    margin-bottom: 10px;
}

.main-menu li:last-child {
    border-bottom: none;
}

.main-menu li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #0056b3;
}

/* Hover effect */
.main-menu li a:hover {
    background-color: #e9e9e9;
}

/* Validation icons style */
.validation {
    text-align: center;
    margin-top: 20px;
}

/* Theme Toggle Button (moon icon) */
#theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 5px;
    z-index: 1000;
}

/* Fix image size */
.moon-icon {
    width: 24px;
    height: 24px;
    fill: #333;
    margin-right: -3px;
    margin-bottom: -2px;
}

textarea, input {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    transition: background-color 0.3s, border-color 0.3s;
}

.results-info {
    border-radius: 0px 10px 10px 0px;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .container {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-mode h1,
body.dark-mode h2 {
    color: #fff;
}

body.dark-mode .info {
    color: #b0b0b0;
    border-left-color: #bb86fc;
}

body.dark-mode .highlight {
    background-color: #f9a825;
    color: #121212;
}

body.dark-mode .box {
    background-color: #2c2c2c;
    border-color: #555;
}

body.dark-mode .main-menu {
    background-color: #2c2c2c;
    border-color: #444;
}

body.dark-mode .main-menu li {
    border-bottom-color: #444;
}

body.dark-mode .main-menu li a {
    color: #037dff;
}

body.dark-mode .main-menu li a:hover {
    background-color: #3c3c3c;
}

body.dark-mode #theme-toggle {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

body.dark-mode .moon-icon {
    fill: #fff;
}

body.dark-mode legend {
    color: #fff;
}

body.dark-mode input {
    background-color: #333;
    color: #fff;
}

body.dark-mode textarea {
    background-color: #333;
    color: #fff;
}

body.dark-mode td {
    background-color: #2c2c2c;
    color: #fff;
}

body.dark-mode .results-info {
    background-color: #2c2c2c;
    color: #fff;
}