/* Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.form-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
}

.theme-button-container {
    position: absolute;
    top: 10px;
    right: 10px;
}

.theme-button {
    background-color: #007bff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s;
}

.theme-button:hover {
    background-color: #0056b3;
    transform: rotate(90deg);
}

.theme-icon {
    color: #ffffff;
    font-size: 24px;
}

.theme-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1;
    width: 150px;
}

.theme-dropdown.active {
    display: block;
}

.theme-option {
    display: block;
    background-color: transparent;
    border: none;
    padding: 10px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-option:hover {
    background-color: #e0e0e0;
}

.title {
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

input[type="number"],
input[type="submit"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 80%;
    max-width: 300px;
}

input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    border: none;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

.result-container {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.credits {
    text-align: center;
    margin-top: 30px;
}

.link {
    text-decoration: none;
    color: gray;
}

/* Theme Styles */
body.light {
    background-color: #ffffff;
    color: #333333;
}

body.dark {
    background-color: #333333;
    color: #9e9e9e;
}

body.neon {
    background-color: #000000;
    color: #00ff00;
}

body.ocean {
    background-color: #0077be;
    color: #00ffff;
}

body.sky {
    background-color: #87ceeb;
    color: #1100ff;
}

body.cotton-candy {
    background-color: #ffb6c1;
    color: #bb0000;
}

body.cherry {
    background-color: #ff4d4d;
    color: #6e0000;
}

body.nature {
    background-color: #00b600;
    color: #007523;
}

body.purple {
    background-color: #800080;
    color: #ee82ee;
}
