:root {
    --color-1: #beb29c;
    --color-2: #202628;
    --color-3: #282220;
}

h1 {
    font-size: 36px;
}

p {
    font-size: 20px;
    font-weight: 300;
    text-align: justify;
}

ul {
    font-size: 16px;
    text-align: justify!important;
}

@media screen and (max-width: 800px) {
    h1 {
        font-size: 24px !important;
    }

    p {
        font-size: 16px;
        font-weight: 300;
    }

    ul {
        font-size: 12px;
    }
}

table.list-table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 8px;
}

table.list-table td, th {
    /*border: 1px solid black;*/
    text-align: left;
    padding: 8px;
    font-size: 12px;
}

table.list-table tr:nth-child(odd) {
    background-color: white;
}

table.list-table tr:nth-child(even) {
    background: #f8f6ff;
}

table.list-table tr:first-child {
    background-color: var(--tr-first-child-bg-color);
    color: white;
}

form.search-bar input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 80%;
    height: 47.5px;
    background-color: white;
    border-radius: 24px 0 0 24px
}

form.search-bar select {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 100%;
    height: 47.5px;
    background: #f1f1f1;
}

form.search-bar button {
    float: left;
    width: 20%;
    padding: 10px;
    background: var(--tr-first-child-bg-color);
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
    border-radius: 0 24px 24px 0
}

form.search-bar button:hover {
    background: #0b7dda;
}

form.search-bar::after {
    content: "";
    clear: both;
    display: table;
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination a.active {
    background-color: black;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 140px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    margin-left: -75px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#snackbar-12 {
    visibility: hidden; /* Hidden by default. Visible on click */
    min-width: 250px; /* Set a default minimum width */
    background-color: #ffeb3b; /* Black background color */
    color: #000; /* White text color */
    border-radius: 2px; /* Rounded borders */
    padding: 16px; /* Padding */
    position: fixed; /* Sit on top of the screen */
    z-index: 10; /* Add a z-index if needed */
    right: 5%; /* Center the snackbar */
    top: 30px; /* 30px from the top */
}

/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar-12.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.6s 11.5s;
    animation: fadein 0.5s, fadeout 0.6s 11.5s;
}


.brand-button-1 {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    background-color: var(--color-3);
    color: white;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.brand-button-1:hover {
    background-color: var(--color-2);
    color: var(--color-1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 34, 32, .25);
}

.brand-button-2 {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    background-color: var(--color-2);
    color: white;
    transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}

.brand-button-2:hover {
    background-color: var(--color-3);
    color: var(--color-1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(40, 34, 32, .25);
}

.brand-button-1:active, .brand-button-2:active {
    transform: translateY(1px);
}

/* ---------- Navegación ---------- */

:root {
    --color-accent: #d9a441;
    --color-surface: #fbf8f2;
    --color-muted: #7a6f63;
}

.wd-navbar {
    background: linear-gradient(180deg, #2e2725 0%, var(--color-3) 100%);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    position: sticky;
    top: 0;
    z-index: 100;
}

.wd-navbar-inner {
    max-width: 1300px;
    margin: auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.wd-brand, .wd-brand:hover, .wd-brand:focus {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.wd-brand img {
    height: 56px;
    border-radius: 12px;
}

.wd-brand-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.wd-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wd-nav a, .wd-nav a:focus {
    color: #e9e2d4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
}

.wd-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: white;
    text-decoration: none;
}

.wd-nav a.active {
    background: var(--color-accent);
    color: var(--color-3);
}

.wd-nav a.wd-nav-exit {
    border: 1px solid rgba(255, 255, 255, .3);
    margin-left: 6px;
}

.wd-nav a.wd-nav-exit:hover {
    background: #c0392b;
    border-color: #c0392b;
}

@media screen and (max-width: 800px) {
    .wd-navbar-inner {
        min-height: 60px;
    }

    .wd-brand img {
        height: 44px;
    }

    .wd-nav .wd-nav-label, .wd-brand-name {
        display: none;
    }

    .wd-nav a {
        padding: 8px 12px;
        font-size: 16px;
    }
}

/* Contenedor de página y títulos */
.wd-page {
    max-width: 1100px;
    margin: auto;
    padding: 24px 16px 48px;
}

.wd-page-header {
    text-align: center;
    margin-bottom: 24px;
}

.wd-page-header h1 {
    margin: 8px 0 4px;
    font-weight: 700;
}

.wd-page-header .wd-subtitle {
    color: var(--color-3);
    opacity: .75;
    font-size: 16px;
    text-align: center;
    margin: 0 auto 16px;
    max-width: 700px;
}

.wd-back, .wd-back:focus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .35);
    transition: background-color .2s ease;
}

.wd-back:hover {
    background: rgba(255, 255, 255, .6);
    color: var(--color-3);
    text-decoration: none;
}

/* Menú principal */
.wd-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wd-menu-card, .wd-menu-card:focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    border-radius: 20px;
    background: var(--color-surface);
    color: var(--color-3);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(40, 34, 32, .15);
    transition: transform .2s ease, box-shadow .2s ease;
    border-top: 4px solid var(--color-accent);
}

.wd-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(40, 34, 32, .25);
    color: var(--color-3);
    text-decoration: none;
}

.wd-menu-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--color-3);
    color: var(--color-accent);
    margin-bottom: 16px;
    transition: transform .2s ease;
}

.wd-menu-card:hover .wd-menu-icon {
    transform: scale(1.08);
}

.wd-menu-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.wd-menu-desc {
    font-size: 14px;
    color: var(--color-muted);
}

/* Tarjetas de lista */
.wd-card {
    background: var(--color-surface);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 3px 10px rgba(40, 34, 32, .12);
    border-left: 5px solid var(--color-accent);
    transition: box-shadow .2s ease, transform .2s ease;
}

.wd-card:hover {
    box-shadow: 0 8px 20px rgba(40, 34, 32, .2);
}

.wd-card.wd-card-locked {
    border-left-color: var(--color-muted);
}

.wd-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.wd-card-text {
    font-size: 14px;
    color: var(--color-muted);
    white-space: pre-wrap;
}

.wd-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.wd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(190, 178, 156, .35);
    color: var(--color-3);
}

.wd-chip.wd-chip-success, .wd-chip.wd-chip-easy {
    background: #dff0d8;
    color: #2e6b30;
}

a.wd-chip, a.wd-chip:focus {
    text-decoration: none;
    transition: background-color .2s ease;
}

a.wd-chip:hover {
    background: rgba(190, 178, 156, .6);
    color: var(--color-3);
    text-decoration: none;
}

.wd-chip.wd-chip-active, a.wd-chip.wd-chip-active:hover {
    background: var(--color-3);
    color: var(--color-accent);
}

.wd-chip.wd-chip-medium {
    background: #fcefd2;
    color: #8a5a00;
}

.wd-chip.wd-chip-hard {
    background: #f9dcd9;
    color: #9b2c22;
}

.wd-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.wd-card-actions form {
    margin: 0;
}

.wd-card-actions a {
    text-decoration: none;
}

.wd-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(190, 178, 156, .4);
    overflow: hidden;
    margin: 8px 0 4px;
}

.wd-progress > div {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-accent), #e8c26e);
    transition: width .6s ease;
}

.wd-empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-3);
    opacity: .7;
}

.wd-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

/* Barra superior del mapa */
.wd-game-bar {
    background: linear-gradient(180deg, #2e2725 0%, var(--color-3) 100%);
    color: var(--color-1);
    border-bottom: 3px solid var(--color-accent);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    padding: 12px 16px;
    position: relative;
    z-index: 2;
}

.wd-game-bar .wd-back, .wd-game-bar .wd-back:focus {
    color: #e9e2d4;
    background: rgba(255, 255, 255, .08);
}

.wd-game-bar .wd-back:hover {
    color: white;
    background: rgba(255, 255, 255, .18);
}

.wd-game-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wd-game-title {
    font-weight: 700;
    font-size: 15px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wd-riddle-box {
    max-width: 800px;
    margin: 12px auto 0;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(217, 164, 65, .35);
    border-radius: 14px;
    padding: 10px 16px;
}

.wd-riddle-box p {
    margin: 4px 0;
}

.wd-map-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.wd-map-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    font-size: 22px;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
    transition: transform .15s ease, box-shadow .2s ease;
}

.wd-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .4);
}

.wd-map-btn.wd-map-btn-main {
    width: 68px;
    height: 68px;
    font-size: 26px;
    margin-top: -6px;
}

/* ---------- Landing ---------- */

.wd-hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wd-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 34, 32, .55) 0%, rgba(40, 34, 32, .75) 70%, var(--color-1) 100%);
}

.wd-hero-content {
    position: relative;
    max-width: 900px;
    padding: 64px 16px 96px;
}

.wd-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-3);
    background: var(--color-accent);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.wd-hero h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .45);
}

.wd-hero-lead {
    font-size: 22px;
    font-weight: 400;
    text-align: center;
    color: #f1ebdf;
    max-width: 680px;
    margin: 0 auto 32px;
}

.wd-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.wd-cta, .wd-cta:focus {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}

.wd-cta:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.wd-cta-primary, .wd-cta-primary:focus {
    background: var(--color-accent);
    color: var(--color-3);
    box-shadow: 0 6px 18px rgba(217, 164, 65, .45);
}

.wd-cta-primary:hover {
    background: #e6b456;
    color: var(--color-3);
    box-shadow: 0 10px 24px rgba(217, 164, 65, .55);
}

.wd-cta-ghost, .wd-cta-ghost:focus {
    color: white;
    border: 2px solid rgba(255, 255, 255, .7);
}

.wd-cta-ghost:hover {
    background: white;
    color: var(--color-3);
}

.wd-cta-dark, .wd-cta-dark:focus {
    background: var(--color-3);
    color: white;
}

.wd-cta-dark:hover {
    background: var(--color-2);
    color: var(--color-accent);
}

.wd-section {
    max-width: 1100px;
    margin: auto;
    padding: 64px 16px;
}

.wd-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.wd-section-title h2 {
    font-size: 34px;
    font-weight: 800;
    margin: 12px 0 8px;
}

.wd-section-title p {
    text-align: center;
    max-width: 640px;
    margin: auto;
    opacity: .8;
    font-size: 18px;
}

.wd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.wd-step {
    position: relative;
    background: var(--color-surface);
    border-radius: 20px;
    padding: 32px 24px 28px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(40, 34, 32, .12);
}

.wd-step-number {
    position: absolute;
    top: 16px;
    left: 20px;
    font-size: 40px;
    font-weight: 800;
    color: rgba(190, 178, 156, .55);
    line-height: 1;
}

.wd-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.wd-step p {
    font-size: 15px;
    text-align: center;
    color: var(--color-muted);
    margin: 0;
}

.wd-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.wd-about-card {
    background: rgba(255, 255, 255, .35);
    border-radius: 20px;
    padding: 32px;
    border-top: 4px solid var(--color-accent);
}

.wd-about-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.wd-about-card p {
    font-size: 16px;
    line-height: 1.6;
}

.wd-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(40, 34, 32, .15);
}

.wd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-3);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.wd-person b {
    display: block;
    font-size: 15px;
}

.wd-person span {
    font-size: 13px;
    opacity: .75;
}

.wd-cta-band {
    background: linear-gradient(135deg, var(--color-3) 0%, #3d3330 100%);
    color: white;
    text-align: center;
    padding: 56px 16px;
}

.wd-cta-band h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 8px;
}

.wd-cta-band p {
    text-align: center;
    color: #e9e2d4;
    margin: 0 auto 24px;
}

.wd-footer {
    background: #1d1817;
    color: #a99f8f;
    text-align: center;
    font-size: 13px;
    padding: 20px 16px;
}

@media screen and (max-width: 800px) {
    .wd-hero {
        min-height: 70vh;
    }

    .wd-hero h1 {
        font-size: 38px !important;
    }

    .wd-hero-lead {
        font-size: 17px;
    }

    .wd-section {
        padding: 40px 16px;
    }

    .wd-section-title h2 {
        font-size: 26px;
    }
}

/* ---------- Login / registro ---------- */

.wd-auth {
    min-height: calc(100vh - 75px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wd-auth-visual {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: flex-end;
    padding: 48px;
}

.wd-auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(40, 34, 32, .2) 0%, rgba(40, 34, 32, .85) 100%);
}

.wd-auth-visual > div {
    position: relative;
    max-width: 440px;
}

.wd-auth-visual h2 {
    font-size: 36px;
    font-weight: 800;
    margin: 12px 0;
}

.wd-auth-visual p {
    text-align: left;
    color: #f1ebdf;
    font-size: 17px;
}

.wd-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.wd-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-surface);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 10px 30px rgba(40, 34, 32, .2);
}

.wd-auth-card h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 4px;
}

.wd-auth-card .wd-auth-sub {
    color: var(--color-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.wd-field {
    margin-bottom: 16px;
}

.wd-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    margin-bottom: 6px;
    color: var(--color-3);
}

.wd-field input.w3-input {
    border: 1px solid #ddd3c3 !important;
    border-radius: 12px;
    padding: 12px 14px;
    background: white;
    font-size: 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.wd-field input.w3-input:focus {
    outline: none;
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(217, 164, 65, .25);
}

.wd-field-error, .wd-form-error {
    color: #b3261e;
    font-size: 13px;
    margin-top: 6px;
}

.wd-form-error {
    background: #fbe9e7;
    border-radius: 12px;
    padding: 10px 14px;
    margin: 0 0 16px;
}

.wd-field-error ul, .wd-form-error ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.wd-auth-submit {
    width: 100%;
    border: 0;
    margin-top: 8px;
    justify-content: center;
    cursor: pointer;
}

.wd-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-muted);
    font-size: 13px;
    margin: 20px 0;
}

.wd-auth-divider::before, .wd-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd3c3;
}

.wd-auth-alt, .wd-auth-alt:focus {
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    border: 2px solid var(--color-3);
    color: var(--color-3);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.wd-auth-alt:hover {
    background: var(--color-3);
    color: white;
    text-decoration: none;
}

@media screen and (max-width: 900px) {
    .wd-auth {
        grid-template-columns: 1fr;
    }

    .wd-auth-visual {
        min-height: 200px;
        padding: 24px 16px;
    }

    .wd-auth-visual h2 {
        font-size: 24px;
    }

    .wd-auth-visual p {
        display: none;
    }

    .wd-auth-card {
        padding: 28px 20px;
    }
}

/* Animations to fade the snackbar in and out */
@-webkit-keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 30px;
        opacity: 1;
    }
}

@keyframes fadein {
    from {
        top: 0;
        opacity: 0;
    }
    to {
        top: 30px;
        opacity: 1;
    }
}

@-webkit-keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}

@keyframes fadeout {
    from {
        top: 30px;
        opacity: 1;
    }
    to {
        top: 0;
        opacity: 0;
    }
}