@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    height: 100vh;
    font-family: Oswald, serif;
    background-image: url('assets/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;

    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;
}


.tekst-opisu {
    position: absolute;
    bottom: 30px;
    left: 50%;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px 5px;
    border-radius: 5px;
    opacity: 0;

    transform: translate(-50%);
    display: none;

    animation: 0.2s hideGradually;

    /*width: 75%;*/
    text-align: center;
}

@keyframes hideGradually {
    from {
        opacity: 1;
        display: unset;
    }

    to {
        opacity: 0;
        display: none;
    }
}

.z-opisem {
    position: relative;
    display: inline-block;
}

.z-opisem:hover .tekst-opisu {
    display: unset;
    opacity: 1;
    animation: 0.3s showGradually;
}

@keyframes showGradually {
    from {
        opacity: 0;
        display: none;
    }

    to {
        opacity: 1;
        display: unset;
    }
}

button {
    color: white;
    background-color: green;
    border: none;

    width: 150px;
    height: 25px;
    border-radius: 10px;
    cursor: pointer;
}

button.visible {
    display: inline-block;
    opacity: 1;

    animation: hideBtn 0.6s;
}

@keyframes showBtn {
    from {
        display: none;
        opacity: 0;
    }

    to {
        display: inline-block;
        opacity: 1;
    }
}

button.hide {
    display: none;
    opacity: 0;

    animation: hideBtn 0.6s;
}

@keyframes hideBtn {
    from {
        display: inline-block;
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}

button:disabled {
    background-color: rgba(204, 142, 0, 0.65);
    cursor: default;
}

.step-3 {
    display: none;
    opacity: 0;
}

.step-1.hide {
    display: none;
    opacity: 0;

    animation: hide 0.6s;
}

.step-2.hide {
    display: none;
    opacity: 0;

    animation: hide 0.6s;
}

@keyframes hide {
    from {
        display: flex;
        opacity: 1;
    }

    to {
        display: none;
        opacity: 0;
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;           /* szare tło */
    border-top: 6px solid #3498db;    /* kolorowy top */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

.step-4 {
    display: none;
    opacity: 0;
}

.bigger {
    font-size: 50px;
}

.smaller {
    font-size: 25px;
}

.step-4.visible {
    display: flex;
    opacity: 1;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    animation: show 0.6s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-3.visible {
    display: flex;
    opacity: 1;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    animation: show 0.6s;
}

.step-3.visible > p {
    width: 25vw;
}

#error {
    display: none;
    opacity: 0;
    color: white;

    margin: -18px 0 -18px 0;

    font-family: Roboto, sans-serif;
}

#error.visible {
    display: inline;
    opacity: 1;

    animation: show 0.2s;
}

input {
    background-color: transparent;
    border: dashed whitesmoke;
    color: white;
    margin-left: 5px;
    border-radius: 10px;
}

.step-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    flex-direction: column;
}

.register {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;

    flex-direction: column;

    color: white;
    width: 100vw;
    height: 100vh;
}

@keyframes show {
    0% {
        display: none;
        opacity: 0;
    }

    100% {
        display: flex;
        opacity: 1;
    }
}

#register {
    display: none;
    opacity: 0;

    font-family: Roboto, sans-serif;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#register.visible {
    display: flex;
    opacity: 1;

    animation: show 0.6s;
}

.zapisz-sie {
    cursor: pointer;
    position: fixed;
    right: 2%;
    top: 2%;
    font-size: 25px;
    font-family: Roboto, sans-serif;

    color: white;
}

.titletext {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    height: 100vh;
}

.titletext.disappear {
    display: none;
    animation: disappear 2s ease-in-out;
}

@keyframes disappear {
    0% {
        display: flex;
        transform: translate(0);
    }

    100% {
        display: none;
        transform: translateY(calc(-1 * (100% + 50vh)));
    }
}

.big {
    cursor: pointer;
    text-decoration: underline;
    color: white;
    padding: 0;
    margin: 0;
    font-size: 50px;
}

.roboto {
    font-family: Roboto, sans-serif;
}

.small {
    color: white;
    font-size: 35px;
}