@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: darkred;
    --secondary-bg: red;
    --tertiary-bg: #cecece;
    --text-color: #353535;
    --border-color: #515151;
    --accent-color: darkred;
    --accent-hover: red;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    background: linear-gradient(45deg, var(--primary-bg), var(--secondary-bg), var(--tertiary-bg));
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
    /* background-color: var(--tertiary-bg); */
    background-color: #cececedd;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    font-size: 1.75rem;
    padding-bottom: 12px;
}

#name-highlight {
    color: black;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 67%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-bg), var(--secondary-bg));
    border-radius: 3px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
}

input, select {
    width: 100%;
    padding: 10px;
    background-color: #dfdfdf;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.3);
    color: var(--text-color);
}

.switch {
    text-align: center;
    margin-top: 14px;
}

#switch-button {
    border-radius: 20px;
    transform: rotate(0deg);
    cursor: pointer;
    color: var(--text-color);
    transition: transform 0.45s ease, background-color 0.6s ease;
    padding: 6px;
}

#switch-button:hover {
    background-color: #ddd;
}

#switch-button.clicked {
    transform: rotate(180deg);
}

button {
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover));
    border-radius: 8px;
    color: var(--tertiary-bg);
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

#result {
    margin-top: 20px;
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-color);
}