/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light mode (default) */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Center layout */
.wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Card */
.container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Text */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
}

p {
    font-size: clamp(1rem, 3vw, 1.15rem);
    line-height: 1.7;
    color: #555;
}

/* Toggle button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #333;
    transition: transform 0.45s ease;
}

/* Rotate icon in dark mode */
.dark-mode .theme-toggle {
    transform: rotate(180deg);
    color: #ffffff;
}

/* SVG styling */
.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Moon filled */
#icon-moon {
    fill: currentColor;
    stroke: none;
}

/* Icon visibility */
#icon-sun {
    display: none;
}

/* Dark mode */
.dark-mode body {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .container {
    background-color: #1e1e1e;
}

.dark-mode p {
    color: #cfcfcf;
}

.dark-mode #icon-sun {
    display: block;
}

.dark-mode #icon-moon {
    display: none;
}
