/* Weekend Fitness Challenge - Kiosk Application Styles */

/* Import Fonts from Google Fonts */
/* Primary Font: Archivo - Used for buttons, player names, navigation, labels, most UI text */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&display=swap');

/* Secondary Font: Sora - Used for instructions, descriptions, helper text, smaller information */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&display=swap');

/* Display Font: Bebas Neue - Used for banners, big titles and numbers */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

[ng-cloak] {
    display: none !important;
}

/* Kiosk Container - Fixed Size 1080x1920 */
.kiosk-container {
    width: 1080px;
    height: 1920px;
    /* background-color: #622467; */
    color: #FFFFFF;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    background-image: url(../img/bg.png);
}

/* Screen Container */
.screen {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Logo Styles */
.logo-top {
    position: absolute;
    top: 87px;
    left: 278px;
    width: 510px;
    height: auto;
    /* background-color: #FFFFFF; */
}

.logo-top-small {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: auto;
    /* background-color: #FFFFFF; */
}

/* Challenge Identification Icons */
.challenge-icon {
    position: absolute;
    top: 500px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 180px;
    object-fit: contain;
    opacity: 0.9;
    background-color: #FFFFFF;
    padding: 15px;
    border-radius: 12px;
}

.challenge-icon-small {
    position: absolute;
    top: 365px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.9;
    background-color: #FFFFFF;
    padding: 12px;
    border-radius: 10px;
}

/* Header and Titles */
.header-title {
    position: absolute;
    top: 285px;
    right: 322px;
    width: 450px;
    text-align: left;
}

.header-title-small {
    position: absolute;
    top: 170px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 800px;
}

.title-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 62px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 2px;
}

.title-text-sm {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 42px;
    font-weight: 400;
    letter-spacing: 1.5px;
}

.title-text-lg {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.title-text-xl {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 56px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: 2px;
}

/* Title Images */
.title-image {
    width: 450px;
    height: auto;
    display: block;
}

.title-image-small {
    width: 350px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.challenge-title {
    position: absolute;
    top: 710px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 900px;
}

.challenge-title-small {
    position: absolute;
    top: 660px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 900px;
}

/* Challenge Menu Buttons */
.challenge-menu {
    position: absolute;
    top: 660px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.challenge-menu-2 {
    position: absolute;
    top: 920px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.challenge-btn {
    background-color: transparent;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    font-size: 52px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 35px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-align: center;
}

.challenge-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.challenge-btn:active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Home screen buttons with icons */
.challenge-btn-with-icon {
    background-color: transparent;
    color: #FFFFFF;
    border: 3px solid #FFFFFF;
    font-size: 52px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 35px 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
    min-height: 140px;
}

.challenge-btn-with-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.challenge-btn-with-icon:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.95;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
}

/* Registration Form */
.registration-form {
    position: absolute;
    top: 780px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}

.input-field {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 4px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 48px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    padding: 20px 10px;
    text-align: center;
    outline: none;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-label {
    font-size: 40px;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    margin-top: -60px;
    text-align: center;
    letter-spacing: 1px;
}

.start-btn {
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 46px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 30px 80px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 40px;
    line-height: 1.3;
    letter-spacing: 1.5px;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.start-btn:active {
    transform: scale(0.98);
}

/* Activity Area (Active Challenge Screens) */
.activity-area {
    position: absolute;
    top: 800px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    text-align: center;
}

.player-name {
    font-size: 58px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.timer-display {
    position: relative;
    margin: 60px auto;
    width: 700px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-bar {
    position: absolute;
    width: 30px;
    height: 120px;
    background-color: transparent;
    border-radius: 5px;
}

.timer-bar:first-child {
    left: 80px;
}

.timer-bar:nth-child(2) {
    right: 80px;
}

.timer-value {
    font-size: 280px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    color: #FFFFFF;
    z-index: 10;
    letter-spacing: 5px;
}

.action-text {
    font-size: 48px;
    font-family: 'Sora', sans-serif;
    font-weight: 400;
    margin: 60px 0;
    letter-spacing: 1.5px;
}

.end-btn {
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 42px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 25px 70px;
    cursor: pointer;
    border-radius: 10px;
    margin-top: 60px;
    transition: all 0.3s ease;
    letter-spacing: 1.5px;
}

.end-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.count-btn {
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 80px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 40px 100px;
    cursor: pointer;
    border-radius: 20px;
    margin-top: 80px;
    transition: all 0.3s ease;
    letter-spacing: 3px;
}

.count-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.count-btn:active {
    transform: scale(0.95);
}

/* Result Area */
.result-area {
    position: absolute;
    top: 780px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    text-align: center;
}

.result-label {
    font-size: 48px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin: 30px 0;
    letter-spacing: 1.5px;
}

.result-value {
    font-size: 180px;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    margin: 50px 0;
    letter-spacing: 5px;
}

.result-input-container {
    margin: 50px 0;
}

.result-input {
    background-color: transparent;
    border: none;
    border-bottom: 6px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 180px;
    font-weight: 400;
    font-family: 'Bebas Neue', sans-serif;
    text-align: center;
    width: 500px;
    outline: none;
    letter-spacing: 5px;
}

.result-input::-webkit-outer-spin-button,
.result-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.result-input[type=number] {
    -moz-appearance: textfield;
}

.result-unit {
    font-size: 52px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin: 30px 0;
    letter-spacing: 2px;
}

.submit-btn {
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 52px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 30px 120px;
    cursor: pointer;
    border-radius: 50px;
    margin-top: 50px;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Leaderboard */
.leaderboard-title {
    position: absolute;
    top: 620px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 900px;
}

.leaderboard-table {
    position: absolute;
    top: 830px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
}

.leaderboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table tr {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.leaderboard-table tr:last-child {
    border-bottom: none;
}

.leaderboard-table td {
    font-size: 56px;
    font-family: 'Archivo', sans-serif;
    font-weight: 400;
}

.leaderboard-table .badge {
    width: 100px;
    text-align: left;
    padding-right: 20px;
}

.badge-img {
    display: block;
    object-fit: contain;
}

.badge-1st {
    width: 80px;
    height: 80px;
}

.badge-2nd {
    width: 65px;
    height: 65px;
}

.badge-3rd {
    width: 65px;
    height: 65px;
}

.leaderboard-table .rank {
    color: #FFFFFF;
    font-weight: 700;
    width: 120px;
    text-align: left;
}

.leaderboard-table .name {
    flex: 1;
    text-align: center;
    color: #FFFFFF;
    font-weight: 700;
}

.leaderboard-table .score {
    color: #FFFFFF;
    font-weight: 700;
    width: 150px;
    text-align: right;
}

.new-player-btn {
    position: absolute;
    bottom: 97px;
    right: 196px;
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 64px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 25px 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.new-player-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation Icons */
.home-icon {
    position: absolute;
    bottom: 100px;
    left: 150px;
    width: 120px;
    height: 120px;
    cursor: pointer;
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.home-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.next-icon {
    position: absolute;
    bottom: 100px;
    right: 150px;
    width: 120px;
    height: 120px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform: scaleX(-1);
}

.next-icon:hover {
    transform: scaleX(-1) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    animation: fadeIn 0.5s ease;
}

/* Admin Panel */
.admin-panel {
    position: absolute;
    top: 450px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    padding: 40px;
}

.admin-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.admin-section {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
}

.admin-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 36px;
    color: #FFFFFF;
    margin-bottom: 25px;
    font-weight: 700;
}

.timer-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.timer-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timer-setting-item label {
    font-family: 'Sora', sans-serif;
    font-size: 28px;
    color: #FFFFFF;
    font-weight: 500;
}

.timer-setting-item input {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 32px;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    width: 150px;
    text-align: center;
    border-radius: 8px;
    outline: none;
}

.admin-btn {
    background-color: #FFFFFF;
    color: #622467;
    border: none;
    font-size: 38px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 20px 50px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1.5px;
}

.admin-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.reset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.admin-btn-small {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    font-size: 26px;
    font-weight: 600;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 15px 25px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.admin-btn-small:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.admin-btn-danger {
    background-color: #FF4444;
    color: #FFFFFF;
    border: none;
    font-size: 38px;
    font-weight: 700;
    font-family: 'Archivo', sans-serif;
    text-transform: uppercase;
    padding: 20px 50px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 1.5px;
}

.admin-btn-danger:hover {
    background-color: #CC0000;
    transform: scale(1.02);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments for different screen ratios */
/* @media screen and (max-width: 1080px) {
    .kiosk-container {
        transform: scale(0.9);
        transform-origin: top left;
    }
} */

/* Custom On-Screen Keyboards */
.custom-keyboard {
    position: fixed;
    background: linear-gradient(135deg, #622467 0%, #4a1c4e 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.custom-keyboard.keyboard-visible {
    display: block;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.key-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #622467;
    border: none;
    border-radius: 8px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.key-btn:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.key-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Number keyboard - single row */
.number-key {
    width: 85px;
    height: 85px;
    font-size: 38px;
}

/* Text keyboard - QWERTY layout */
.text-key {
    width: 75px;
    height: 75px;
    font-size: 32px;
}

.space-key {
    width: 400px;
    height: 75px;
    font-size: 28px;
    flex: 1;
    margin-right: 10px;
}

.done-key {
    width: 250px;
    height: 85px;
    font-size: 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    font-weight: 800;
}

.done-key:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Backspace key styling */
.key-btn:contains('⌫') {
    background: rgba(255, 100, 100, 0.9);
    color: white;
}

/* Input field cursor for keyboard inputs */
input[readonly].keyboard-input {
    cursor: pointer;
    user-select: none;
}
