body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #121212;
    color: #e0e0e0;
}

.container {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.word-container {
    font-size: 20px;
    color: #e0e0e0;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    width: 80%;
}

.word-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.word-container ul {
    list-style-type: disc;
    padding-left: 20px;
}

.word-container li {
    text-align: left;
    margin-bottom: 5px;
}

footer {
    text-align: center;
    color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer a {
    color: #3B82F6;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 48px);
    background: rgba(18, 18, 18, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #e0e0e0;
    font-size: 1.2em;
    margin-bottom: 48px;
}

.spinner {
    border: 8px solid #222;
    border-top: 8px solid #3B82F6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.word-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 0;
}

.word-actions button {
    background: #232323;
    color: #e0e0e0;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.2s;
}

.word-actions button:hover {
    background: #3B82F6;
    color: #fff;
}

.theme-toggle {
    position: fixed;
    top: 18px;
    right: 24px;
    margin-top: 0;
    z-index: 10000;
    background: #232323;
    color: #e0e0e0;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3em;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.theme-toggle:hover {
    background: #3B82F6;
    color: #fff;
}

body.light {
    background-color: #f4f4f4;
    color: #232323;
}
body.light .word-container {
    background-color: #fff;
    color: #232323;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
}
body.light .word-actions button,
body.light .theme-toggle {
    background: #e0e0e0;
    color: #232323;
}
body.light .word-actions button:hover,
body.light .theme-toggle:hover {
    background: #3B82F6;
    color: #fff;
}
body.light .loader {
    background: rgba(244,244,244,0.95);
    color: #232323;
}
body.light footer {
    color: #232323;
}
body.light footer a {
    color: #3B82F6;
}

@media (max-width: 600px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.1em;
    }
}
