/* Plik: styles.css (wersja oczyszczona) */

/* Full-width and full-height gradient background */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #0B1822, #193664, #0B1822);
    display: flex;
    flex-direction: column;
}

/* Definicja zmiennej CSS dla wysokości topBar, używana w calc() */
:root {
    --top-bar-height: 60px; /* Musi odpowiadać ustalonej wysokości #topBar */
}


.container {
    /* Upewnij się, że .container jest poniżej topBar i zajmuje resztę wysokości */
    margin-top: var(--top-bar-height); /* Używamy zmiennej */
    min-height: calc(100vh - var(--top-bar-height)); /* Obliczenie reszty wysokości */
    flex-grow: 1; /* Pozwala na rozciągnięcie w ramach body (które jest display:flex) */
    display: flex; /* KLUCZ: .container jako flex container */
    flex-direction: column; /* Ustawia ekrany w kolumnie */
    width: 100%;
    max-width: 480px; /* Ograniczenie szerokości całej aplikacji */
    margin-left: auto;
    margin-right: auto;
    padding: 0; /* Usuń paddingi stąd, aby ekrany mogły zająć całą szerokość */
    box-sizing: border-box;
}


.logo {
    width: 250px;
    margin-bottom: 20px;
    animation: spinGrow 2s ease-out forwards;
}
.animate-logo {
    animation: spinGrowBlur 2s ease-out forwards;
}

@keyframes spinGrowBlur {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: scale(1.2) rotate(1160deg);
        opacity: 1;
        filter: blur(2px);
    }
    100% {
        transform: scale(1) rotate(1080deg);
        opacity: 1;
        filter: blur(0);
    }
}


.logo2 {
    width: 250px;
    margin-bottom: 20px;
}

.button {}

.button:hover {
    filter: brightness(1.2);
}

.register-button,
.back-button,
.login-button,
.tutorial-button,
.choice-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 30px;
    margin-top: 20px;
    font-weight: bold;
    color: white;
    border: none;
    cursor: pointer;
    min-width: 100px;
    width: 300px;
    height: 70px;
    text-align: center;
    white-space: nowrap;
    font-family: "Luckiest Guy", serif;
    font-weight: 400;
    font-style: normal;
    opacity: 0;
    transform: scale(0);
    animation: fadeInScale 0.5s ease-out forwards;
}

/* Definicja animacji */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Osobne pliki SVG dla każdego przycisku */
.login-button {
    background: url('assets/button-login.svg') center / 100% 100% no-repeat;
}

.register-button {
    background: url('assets/button-register.svg') center / 100% 100% no-repeat;
}

.back-button {
    background: url('assets/button-back.svg') center / 100% 100% no-repeat;
}

.choice-button {
    background: url('assets/button-choice.svg') center / 100% 100% no-repeat;
}
.tutorial-button {
    background: url('assets/button-tutorial.svg') center / 100% 100% no-repeat;
}
.confirmTeamRegistrationBtn{
     width: 350px;
}
/* Wszystkie ekrany powinny zajmować pełną dostępną wysokość w .container */
.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Ustawienie treści na górze ekranu */
    width: 100%;
    height: auto;/* KLUCZ: Ekrany zajmują 100% dostępnej przestrzeni w .container */
    flex-shrink: 0; /* Zapobiega kurczeniu się ekranów */
    flex-grow: 1; /* Pozwala ekranom rosnąć i wypełniać dostępną przestrzeń */
    box-sizing: border-box;
    overflow: hidden; /* Ekrany same nie przewijają, ich wewnętrzne kontenery tak */
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 80%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    color: white;
    font-size: 18px;
    text-align: center;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="email"]::placeholder {
    color: white;
    font-weight: bold;
}

.checkbox-container {
    display: flex;
    align-items: center;
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
    margin-top: 15px;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.5);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    color: white;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Location Display Style (for Register Screen) */
.location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}



.game-content,
.slide-in-left,
.slide-in-right,
.slide-out-left,
.slide-out-right {
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}



@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.slide-in-left {
    animation: slideInLeft 0.4s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.4s ease-out forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.4s ease-out forwards;
}

.slide-out-right {
    animation: slideOutRight 0.4s ease-out forwards;
}




.point-item {
    position: relative;
    margin-bottom: 15px;
    width: 95%;
    margin: auto;
    color: #FFFFFF;
}

.point-item img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
}

.point-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 5px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(0, 36, 71, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: bold;
}

.green-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 255, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: #FFFFFF;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* Terms Screen Styling */
#termsScreen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.terms-content {
    width: 90%;
    max-width: 600px;
    max-height: 60vh;
    overflow-y: auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: left;
}

.terms-content h2 {
    text-align: center;
}

label[for="termsCheckbox"].error {
    color: red;
}


/* Styles for input fields with icons - for login/register */
.input-icon-container {
    position: relative;
    width: 80%;
    margin: 10px auto;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.input-icon-container .icon {
    position: absolute;
    left: 10px;
    color: white;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
}

.input-icon-container input {
    width: 100%;
    padding-left: 45px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    border: none;
    border-bottom: 2px solid white;
    background-color: transparent;
    color: white;
    font-size: 18px;
    box-sizing: border-box;
    text-align: left;
}

.input-icon-container input::placeholder {
    text-align: left;
}