@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    --primary: #05BF93;
    --secondary: #2C3E50;
    --bg-color: #F8F9FA;
    --text-main: #333333;
    --text-muted: #888888;
    --border-color: #EAEAEA;
    --border-light: #F0F0F0;
    --hover-bg: #F1F2F6;
    --active-bg: #E8F8F5;
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --------------------
   Header
-------------------- */
header {
    display: flex;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.menu {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 30px;
    transition: color 0.3s ease;
    position: relative;
}

.menu:hover {
    color: var(--primary);
}

.menu::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 4px;
    right: 0;
    background: var(--primary);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.menu:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary);
}

/* --------------------
   Main Context
-------------------- */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.content {
    width: 100%;
    max-width: none;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 40px 24px;
    border-radius: var(--radius);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wide-layout {
    max-width: 100%;
}

.wide-table {
    width: 100%;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------
   Forms & Elements
-------------------- */
.card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.note {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 12px;
}

.word-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
    table-layout: auto;
}

.word-table th,
.word-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    vertical-align: middle;
}

.word-table th {
    background: #F4F7FB;
    color: var(--secondary);
    font-weight: 700;
}

.word-table tbody tr {
    background: white;
}

.word-table tr:hover {
    background: var(--hover-bg);
}

.word-table td:nth-child(1),
.word-table td:nth-child(2) {
    white-space: nowrap;
}

.word-table td:nth-child(2) {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.word-table td:nth-child(2) .reveal-btn {
    flex-shrink: 0;
}

.word-table td:nth-child(2) span {
    display: inline-block;
    min-width: 80px;
    max-width: 100%;
}

.word-table td:nth-child(3) {
    white-space: nowrap;
}

.answer-cell {
    color: var(--secondary);
    line-height: 1.6;
}

.reveal-btn {
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reveal-btn:hover {
    transform: translateY(-1px);
    background: #049671;
}

.reveal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden-answer {
    color: transparent;
    user-select: none;
    transition: color 0.2s ease;
}

.visible-answer {
    color: var(--text-main);
}

.Form-Btn:disabled {
    background: var(--hover-bg);
    color: var(--border-light);
    border-color: var(--border-light);
    cursor: not-allowed;
}

/* --------------------
   Footer
-------------------- */
footer {
    margin-top: auto;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    padding: 30px 40px;
}

footer .row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

footer .menu {
    margin: 0;
    font-size: 14px;
}

footer p {
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 20px;
    font-weight: 600;
}

/* --------------------
   Responsive
-------------------- */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    header .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .menu {
        margin-left: 0;
        font-size: 14px;
    }

    .content {
        padding: 30px 20px;
    }
}