﻿/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

* {
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: url('/files/bg1.svg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    padding: 16px;
    text-align: center;
}

    .header img {
        /*height: 40px;*/
        width: 80%;
        padding-left: 10%;
    }

/* CONTENT */
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* CARD (leeg, puur layout) */
.card {
    width: 100%;
    max-width: 360px;
    background: rgba(255,255,255,0.96);
    border-radius: 28px;
    padding: 28px 22px 32px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 0 6px rgba(255,255,255,0.25);
    text-align: center;
}

/* PLACEHOLDERS */
.placeholder {
    height: 40px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #eee;
}

    .placeholder.large {
        height: 220px;
        border-radius: 50%;
        margin: 30px auto 0;
        width: 220px;
    }

.input-block {
    margin-bottom: 16px;
    text-align: left;
}

.input-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

.input-field {
    width: 100%;
    padding: 16px 18px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 18px;
    border: 3px solid #e0e0e0;
    background: #f7f9fb;
    color: #222;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .input-field::placeholder {
        color: #bbb;
        font-weight: 600;
    }

    .input-field:focus {
        border-color: #4facfe;
        box-shadow: 0 0 0 4px rgba(79,172,254,0.25);
        background: #fff;
    }

    .input-field[readonly] {
        background: linear-gradient(135deg, #e0f7fa, #f1f8e9);
        border-color: #b2dfdb;
        color: #00796b;
        cursor: default;
    }

.press-wrapper {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

#pressBtn {
    cursor: pointer;
    user-select: none;
}

    /* alleen het knopvlak beweegt */
    #pressBtn .btn-face {
        transition: transform 0.08s ease;
        transform-origin: center;
    }

    #pressBtn:active .btn-face {
        transform: translateY(6px);
    }



#btnC1 {
    cursor: pointer;
    user-select: none;
}

    /* alleen het knopvlak beweegt */
    #btnC1 .btn-face {
        transition: transform 0.08s ease;
        transform-origin: center;
    }

    #btnC1:active .btn-face {
        transform: translateY(6px);
    }


#btnC2 {
    cursor: pointer;
    user-select: none;
}

    /* alleen het knopvlak beweegt */
    #btnC2 .btn-face {
        transition: transform 0.08s ease;
        transform-origin: center;
    }

    #btnC2:active .btn-face {
        transform: translateY(6px);
    }

#btnC3 {
    cursor: pointer;
    user-select: none;
}

    /* alleen het knopvlak beweegt */
    #btnC3 .btn-face {
        transition: transform 0.08s ease;
        transform-origin: center;
    }

    #btnC3:active .btn-face {
        transform: translateY(6px);
    }

.radio-group {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

    /* verberg standaard radio */
    .radio-option input {
        display: none;
    }

/* custom bolletje */
.radio-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #cfd8dc;
    margin-right: 10px;
    position: relative;
    background: #fff;
    transition: all 0.2s ease;
}

    /* binnenbol */
    .radio-custom::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        background: linear-gradient(135deg, #ff9ec4, #ffc3a0);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        transition: transform 0.2s ease;
    }

/* checked state */
.radio-option input:checked + .radio-custom {
    border-color: #ff9ec4;
    box-shadow: 0 0 0 4px rgba(255,158,196,0.25);
}

    .radio-option input:checked + .radio-custom::after {
        transform: translate(-50%, -50%) scale(1);
    }

.radio-text {
    line-height: 1.3;
}

#rotateWarning {
    position: fixed;
    inset: 0;
    background: #0aa8e6;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.rotate-box {
    background: #fff;
    border-radius: 24px;
    padding: 30px 28px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

.rotate-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.rotate-text {
    font-size: 18px;
    font-weight: 800;
    color: #333;
}

@media screen and (orientation: landscape) and (max-width: 1024px) {
    body > *:not(#rotateWarning) {
        display: none !important;
    }

    #rotateWarning {
        display: flex;
    }
}

.gameTitle {
    text-align: center;
    font-weight: 800;
    font-size: 20px;
    margin-top: 6px;
    color: #222;
    display: none;
}

#playerList li {
    padding: 6px 10px;
    margin-bottom: 4px;
    background: #f1f5f9;
    border-radius: 8px;
    font-weight: 600;
}


/* HEADER FIX */
.header {
    position: relative;
}

/* HAMBURGER */
#hamburger {
    position: absolute;
    right: 16px;
    top: 18px;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

    #hamburger span {
        display: block;
        height: 4px;
        background: #222;
        border-radius: 2px;
        margin-bottom: 5px;
        transition: 0.3s;
    }

/* MOBILE MENU */
#mobileMenu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    padding: 80px 20px;
    transition: right 0.3s ease;
    z-index: 1000;
}

    #mobileMenu a {
        display: block;
        padding: 14px 0;
        font-size: 18px;
        font-weight: 700;
        color: #222;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    /* OPEN STATE */
    #mobileMenu.open {
        right: 0;
    }

/* HAMBURGER ANIMATIE */
#hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
}

#hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* desktop: hamburger verbergen */
@media (min-width: 768px) {
    #hamburger {
        display: none;
    }
}

.footer {
    padding: 10px 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255,255,255,0.85);
    border-top: 1px solid #ddd;
}

/* BUTTON WRAPPER */
.btn-wrapper {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

/* PRIMARY BUTTON */
.primary-btn {
    width: 100%;
    padding: 16px 0;
    border-radius: 18px;
    border: none;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    box-shadow: 0 10px 20px rgba(0,0,0,0.18), inset 0 -3px 0 rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

    /* PRESS EFFECT */
    .primary-btn:active {
        transform: translateY(3px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255,0.25);
    }

    /* DISABLED (optioneel) */
    .primary-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
#playerList li.me {
    font-weight: bold;
    background: #e8f4ff;
    border-radius: 8px;
    padding: 6px 10px;
}
