@font-face {
  font-family: Stencil;
  src: url(STENCIL.woff2);
}
@font-face {
  font-family: Sylfaen; 
  src: url(sylfaen.woff2); 
}

*{
    font-family: Sylfaen;
}

body {
    background-color: khaki;
    margin: 0;
  }


h1{
    font-size: 500%;
    text-align: center;
    margin: auto;
    font-family: Stencil;
}

h3{
    font-size: 300%;
    text-align: center;
    margin: auto;
    font-family: Stencil;
}

p, label{
    font-size: 180%;
    text-align: center;
    margin: auto;
    margin-top: 1%;
}


div{
    width: 100%;
    align-items: center;
}

video{
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.navbar {
    background-color: #333;
    color: #fff;
    padding: 0.4rem 1rem;
    width: 100%;
    
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    width: 100%;
}

/* Logout button */
.nav-links li.logout{
    margin-right: 2em;
    margin-left: auto;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-family: Stencil;
    padding: 6px 10px;
    font-size: 150%;
}

/* Hover + active states */
.nav-links a:hover {
    background-color: #555;
    border-radius: 4px;
}

.nav-links a.active {
    background-color: #007BFF;
    border-radius: 4px;
    
}

table, th{
  /* border: 1px solid black; */
  border-collapse: collapse;
}

header {
    width: 100%;
    display: block;
    /* margin-left: auto;
    margin-right: auto; */
    
}

/* header img{
    margin-right: 5%;
    margin-left: 5%;
} */

header table{
    width: 95%;
    display: block;
    margin-left: auto;
    margin-right: auto;

}


/* Dropdown menu on meet_team.php */

nav ul {
    list-style: none;
}

nav ul li {
    position: relative;
}

nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: black;
    padding: 0;
    margin: 0;
    padding-top: 5%;
    padding-bottom: 5%;
    min-width: 250px;
    
}

nav ul li:hover > ul {
    display: block;
}

/* leaderboard style*/
.leaderboard {
    border-collapse: collapse;
    width: 60%;
    margin: auto;
}

.leaderboard tr th,.leaderboard tr td  {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    background: #fafafa;
    
}
.leaderboard tr th {
    background: #f2f2f2;
}

/* Table on meet_team.php */
.meet_team{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
}

.meet_team tr td{
    margin: 0;
    padding: 0;
    padding-bottom: 1em;
    padding-top: 1em;
    text-align: left;
    /* border: black;
    border-style: dashed; */
    width: 50%;
    font-size: larger;
    font-style: italic;
}

.meet_team tr td img{
    width: 90%;
}

/* .meet_team tr{
    margin-top: 100px;
} */

/* Table on dierensporen.php */
.dierensporen_table{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
}

.dierensporen_table tr td img{
    width: 90%;
}

/* Table on spelletjes.php */
.spelletjes_table{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
}

.spelletjes_table tr th{
    margin: 0;
    padding: 0;
    padding-bottom: 1em;
    /* padding-top: 1em; */
    text-align: center;
    /* border: black; */
    /* border-style: dashed; */
    width: 50%;
    font-size: larger;
    /* font-style: italic; */
}

.spelletjes_table tr td img{
    width: 90%;
}

/* Table on ranger_technieken.php */
.ranger_technieken_table{
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    
}

.ranger_technieken_table tr th{
    margin: 0;
    padding: 0;
    padding-bottom: 1em;
    /* padding-top: 1em; */
    text-align: center;
    /* border: black; */
    /* border-style: dashed; */
    width: 33%;
    font-size: larger;
    /* font-style: italic; */
}

.ranger_technieken_table tr td img{
    width: 90%;
}

/* Dierensporen game */
#spoorzoeker-game {
    max-width: 720px;
    margin: 20px auto;
    font-family: inherit;
}
#spoorzoeker-game .ssg-hidden {
    display: none !important;
}
#spoorzoeker-game .ssg-panel {
    background: #f4f1e8;
    border: 3px solid #5a7247;
    border-radius: 12px;
    padding: 24px;
}
#spoorzoeker-game .ssg-start-btn,
#spoorzoeker-game .ssg-restart-btn {
    background: #5a7247;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
#spoorzoeker-game .ssg-start-btn:hover,
#spoorzoeker-game .ssg-restart-btn:hover {
    background: #465b38;
}
#spoorzoeker-game .ssg-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.15em;
    font-weight: bold;
    color: #33421f;
}
#spoorzoeker-game .ssg-grid {
    display: grid;
    /* minmax(0, 1fr) instead of 1fr: without the 0 minimum, a track will
       never shrink below the intrinsic (min-content) size of what's inside
       it, so a tall image can force its row to grow past its fair 1/3
       share, pushing it over the rows below. minmax(0, 1fr) lets the
       image get clipped/scaled to the row's actual allotted size instead. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    aspect-ratio: 0.85 / 1;
}
#spoorzoeker-game .ssg-cell {
    background: #fff;
    border: 2px solid #a9b98e;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    box-sizing: border-box;
    /* flex/grid items default to min-height/min-width: auto, which causes
       the same content-forces-growth problem as above one level down;
       min-height/min-width: 0 lets the cell actually respect the grid
       track size instead of expanding to fit the image inside it. */
    min-height: 0;
    min-width: 0;
}
#spoorzoeker-game .ssg-cell.ssg-center {
    background: #eef0e4;
    border: 2px dashed #5a7247;
    cursor: default;
}
#spoorzoeker-game .ssg-cell.ssg-animal {
    cursor: pointer;
}
#spoorzoeker-game .ssg-cell.ssg-animal:hover {
    background: #eef7e2;
    border-color: #5a7247;
}
#spoorzoeker-game .ssg-cell img {
    max-width: 85%;
    max-height: 75%;
    /* Let the image shrink freely inside the flex column instead of
       keeping its intrinsic size as a floor. */
    min-height: 0;
    object-fit: contain;
    pointer-events: none;
}
#spoorzoeker-game .ssg-cell span {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 1em;
    text-transform: capitalize;
    color: #33421f;
    pointer-events: none;
}
#spoorzoeker-game .ssg-cell.ssg-correct {
    background: #cdeecb !important;
    border-color: #2e8b2e !important;
}
#spoorzoeker-game .ssg-cell.ssg-wrong {
    background: #f6cccc !important;
    border-color: #b33a3a !important;
}
#spoorzoeker-game .ssg-result {
    text-align: center;
}
#spoorzoeker-game .ssg-result h2 {
    color: #33421f;
}
#spoorzoeker-game .ssg-result .ssg-result-score {
    font-size: 2em;
    font-weight: bold;
    color: #5a7247;
}


/* ── Registration & Verification pages ──────────────────────────────────── */

body.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    border: 2px solid #333;
    padding: 2.5rem 2.5rem 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* ── Form labels & inputs ─────────────────────────────────────────────── */

.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-size: 100%;
    text-align: left;
    margin-bottom: 0.3rem;
    font-family: Stencil;
    text-transform: uppercase;
    letter-spacing: .05em;
}

input[type=text],
input[type=email],
input[type=password] {
    width: 94%;
    padding: .6rem .8rem;
    border: 2px solid #333;
    font-family: Sylfaen;
    font-size: 110%;
    color: #1a1410;
    background: khaki;
    outline: none;
    transition: border-color .15s;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
    border-color: #007BFF;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    margin-top: 1.5rem;
    background-color: #333;
    color: #fff;
    border: none;
    font-family: Stencil;
    font-size: 150%;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s;
}

.btn:hover { background-color: #555; }
.btn:active { background-color: #007BFF; }

.btn-ghost {
    display: block;
    width: 100%;
    padding: .65rem 1rem;
    margin-top: .6rem;
    background: transparent;
    color: #333;
    border: 2px solid #333;
    font-family: Stencil;
    font-size: 130%;
    cursor: pointer;
    transition: background-color .15s, color .15s;
}

.btn-ghost:hover { background-color: #333; color: #fff; }

/* ── Alert boxes ──────────────────────────────────────────────────────── */

.error-box {
    background: #fff3f0;
    border: 2px solid #c00;
    border-left: 5px solid #c00;
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 110%;
    color: #900;
    width: 92%;
}

.error-box ul { list-style: none; }
.error-box li + li { margin-top: .25rem; }
.error-box li::before { content: "× "; font-weight: 700; }

.success-box {
    background: #f0fff5;
    border: 2px solid #2b7a47;
    border-left: 5px solid #2b7a47;
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 110%;
    color: #2b7a47;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    width: 98.8;
}

.info-box {
    background: khaki;
    border: 2px solid #333;
    padding: .7rem 1rem;
    margin-bottom: 1.2rem;
    font-size: 110%;
    color: #333;
}

/* ── OTP digit boxes ──────────────────────────────────────────────────── */

.otp-row {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    justify-content: space-between;
}

.otp-row input {
    flex: 1;
    aspect-ratio: 1;
    max-width: 58px;
    text-align: center;
    font-family: Stencil;
    font-size: 160%;
    border: 2px solid #333;
    background: khaki;
    color: #1a1410;
    outline: none;
    transition: border-color .15s;
    caret-color: #007BFF;
    padding: 0;
}

.otp-row input:focus {
    border-color: #007BFF;
}

#codeInput { display: none; }

/* ── Divider & misc ───────────────────────────────────────────────────── */

.divider {
    border: none;
    border-top: 2px solid #333;
    margin: 1.5rem 0;
}

.subtitle {
    font-size: 130%;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.subtitle strong { font-family: Stencil; }

.login-link,
.back-link {
    font-size: 110%;
    text-align: center;
}

.login-link a,
.back-link a {
    color: #007BFF;
    text-decoration: none;
    font-family: Stencil;
}

.login-link a:hover,
.back-link a:hover { text-decoration: underline; }

.icon-wrap {
    width: 52px;
    height: 52px;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #333;
}

.icon-wrap.success {
    border-color: #2b7a47;
    color: #2b7a47;
}

/* ── Remember-me checkbox ─────────────────────────────────────────────── */

.field-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .8rem;
}

.field-check input[type=checkbox] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid #333;
    background: khaki;
    accent-color: #333;
    cursor: pointer;
    padding: 0;
}

.field-check label {
    font-size: 100%;
    font-family: Sylfaen;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
    cursor: pointer;
    color: #333;
}

