@import url(https://fonts.googleapis.com/css?family=Raleway:400,300,500,700&subset=latin,latin-ext);
html{
    height: 100%;
    position: relative;
}
html::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("https://perspektywamarsjanska.pl/img/tlo.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.2; /* Ustawienie przezroczystości */
    z-index: -1; /* Umieszczenie tła pod innymi elementami */
}
body{
    margin: 0px;
    font-family: 'Arial', sans-serif;
    color: #515151;
    min-font-size: 12px;
    height: 100%;

    /*background-image: url("https://quiz.get-app.pl/img/lampki.gif");*/
    /*background-size: cover;*/
    /*background-size: 50%;*/
    /*background-repeat: no-repeat;*/
    /*background-position: center top;*/
}

main{
    height: 100%;
}

.helloText{
    font-size: 2em;
    font-weight: bold;
}
@keyframes blinking {
    0%   { opacity: 1; }
    50%  { opacity: 0; }
    100% { opacity: 1; }
}

.blinking-text {
    animation: blinking 1s infinite;
    color: red;
}

.mobile-container {
    max-width: 100%;
    margin: auto;
    background-color: #555;
    height: 500px;
    color: white;
    border-radius: 10px;
}

.topnav {
    overflow: hidden;
    /*background-color: #333;*/
    position: relative;
    margin-bottom: 20px;
}

.topnav #myLinks {
    display: none;
}

.topnav a {
    color: black;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
}

.topnav a.icon {
    background: #ddd;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.topnav a:hover {
    /*background-color: #ddd;*/
    color: black;
}

.active {
    background: none;
    color: white;
}

main{
    width: 100%;
    padding: 25px;
    box-sizing: border-box;
}

.christmas{
    display: block;
    margin: 30px auto;

}

.hint{
    list-style-type: upper-alpha;
    margin-left: 100px;
}

.snakeTable td .hint{
    margin-left: 10px;
}

.answerImage{
    display: block;
    margin: 10px 20px 10px 0;
    float: left;
    max-width: 100px;
    max-height: 100px;
}

.hint input{
    display: inline!important;
    width: 50%!important;
}

.hint input[type='radio']{
    display: inline!important;
    margin: 0 20px;
    width: 15px!important;
}

#acceptQuestions{
    border-collapse: collapse;
    border: 1px solid #000;
}

#acceptQuestions td, #acceptQuestions th{
    border: 1px solid #000;
    padding: 5px 10px;
}

#acceptQuestions th{
    background-color: magenta;
}

#addQuestion{
    width: 80%;
    display: block;
    overflow: hidden;
}

#addQuestion input{
    width: 80%;
    border: 1px solid dimgrey;
    border-radius: 5px;
    padding: 5px 10px;
    display: block;
    margin-bottom: 20px;
}

#addQuestion input[type='checkbox']{
    display: inline;
    width: 30px;
}

#categoriesList{
    list-style: none;
    display: block;
    max-width: 300px;
    height: 200px;
    border: 1px solid dimgrey;
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    padding: 10px 5px;

}

#addQuestion textarea{
    width: 80%;
    height: 150px;
    border: 1px solid dimgrey;
    border-radius: 5px;
    padding: 5px 10px;
    display: block;
    margin-bottom: 20px;
}

#addQuestion select{
    border: 1px solid dimgrey;
    border-radius: 5px;
    padding: 5px 10px;
    display: block;
    margin-bottom: 20px;
}

#addQuestion label{
    color: dimgrey;
    padding: 5px 0;
    display: block;
    overflow: hidden;
}

.catCount {
    color: olivedrab;
}

.letterAnswer{
    width: 2em;
    margin-left: 20px;
    margin-bottom: 10px;
    border: solid 1px black;
    padding: 7px 5px;
    text-transform: uppercase;
    text-align: center;
    font-size: 1em;
}

.letterCorrect{
    background-color: lightgreen;
}

.letterIncorrect{
    background-color: lightcoral;
}

.correctAnswer{
    color: black;
    text-transform: uppercase;
}
.userAnswer{
    text-transform: uppercase;
}

#userResults{
    font-size: 3em;
    color: olivedrab;;
    font-weight: bold;
}
#resultBox{
    position: fixed;
    bottom: 20%;
    right: 10%;
    z-index: 1000;
    text-align: center;
    padding: 50px 30px;
    border: 4px solid olivedrab;
    border-radius: 50%;
}

.snakeForm{
    display: block;
    overflow: hidden;
    padding: 20px;
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 10px;
    width: 90%;
    margin: 20px auto;
}

.snakeForm button{
    font-size: 1em;
    padding: 10px 15px;
    margin: 20px auto;
    background-color: olivedrab;
    color: white;
}

.snakeMedia{
    max-width: 70px;
    max-height: 70px;
    margin: 15px auto;
}

.snakeTable{
    border-collapse: collapse;
}

.snakeTable td{
    border-bottom: 1px solid lightgray;
    padding-bottom: 20px;
}

.snakeTable tr td:first-child{
    width: 100px;
}

.snakeTable tr:last-child td{
    border: none;
}
/*VIDEO*/
.modal-video {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

/* Style dla kontenera odtwarzacza */
.modal-video-content {
    position: fixed;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 640px;
}
/* Style dla przycisku zamknięcia */
.close-video {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-video:hover,
.close-video:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.title-cover {
    position: absolute;
    width: 100%; /* Dostosuj szerokość zależnie od rozmiaru odtwarzacza */
    height: 70px; /* Dostosuj wysokość, aby zasłonić tytuł */
    background-color: #000; /* Kolor tła paska */
    top: 30px; /* Ustawienie na górze odtwarzacza */
    z-index: 10; /* Upewnij się, że pasek jest nad odtwarzaczem */
}
.video-thumbnail {
    position: relative;
    display: inline-block;
}

.video-thumbnail .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px; /* Szerokość guzika "play" */
    height: 60px; /* Wysokość guzika "play" */
    background-color: red; /* Tło guzika "play" */
    border-radius: 50%; /* Okrągły guzik "play" */
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.video-thumbnail .play-button::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 15px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #fff; /* Kolor strzałki "play" */
}

/*VIDEO END*/

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%; /* Maximum width */
    max-height: 90vh; /* Maximum height relative to the viewport */
    text-align: center; /* To center the image in the modal content */
}

.modal-content img {
    height: 75vh;
    display: block;
    /*max-width: 80%; !* Image will not exceed the container's width *!*/
    max-height: 80vh; /* Image height limit, leaving some space for potential captions or controls */
    margin: auto; /* Center the image */
}

.close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#userStats{
    padding: 20px;
    border: 1px solid gray;
    border-radius: 10px;
    width: 60%;
    overflow: hidden;
    margin-top: 20px;
    margin-left: 20px;
}

#userStats ul{
    list-style-type: none;
    padding: 0;
}

#userStats ul li::before {
    content: " "; /* Usuń domyślny punkt */
    display: inline-block;
    width: 20px; /* Dostosuj szerokość do kwadratu */
    height: 20px; /* Dostosuj wysokość do kwadratu */
    background-color: white; /* Ustaw kolor tła na biały */
    border: 2px solid black; /* Ustaw czarną ramkę */
    margin-right: 0.5em; /* Dodaj odstęp między kwadratem a tekstem */
}

#userStats ul li.taskDone::before{
    background-color: green;
}

#titbit{
    padding: 20px;
    border: 1px solid gray;
    border-radius: 10px;
    width: 30%;
    overflow: hidden;
    margin-top: 20px;
    background-color: lightpink;
    float: left;
    margin-right: 20px;
}

#titbit p{
    font-size: 1.2em;
    color: black;
    text-align: justify;
}

#titbit img{
    display: block;
    margin: 10px auto;
    width: 100%;
}

@media (orientation: landscape) {
    #logForm {
        display: block;
        width: 340px;
        margin-left: -170px;
        position: absolute;
        top: 20%;
        left: 50%;
    }
}

#logForm h1{
    text-align: center;
    font-size: 16px;
    color: chocolate;
}

.blink {
    animation: blink-animation 1s steps(7, start) infinite;
    -webkit-animation: blink-animation 1s steps(7, start) infinite;
}
@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}
@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

#logForm input{
    width: 250px;
    display: block;
    margin: 10px 0px;
    padding: 5px;
    border: solid olivedrab 2px;
    border-radius: 5px;
}

@media (orientation: portrait) {
    #logForm{
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    #logForm h1{
        font-size: 46px;
    }
    #logForm input{
        width: 80%;
        padding: 30px;
        display: block;
        margin: 30px auto;
        font-size: 34px;
    }

    #logForm button{
        display: block;
        margin: 20px auto;
    }

    .modal-content img {
        height: auto;
        display: block;
        width: 75%;
        max-width: 80%; /* Image will not exceed the container's width */
        /*max-height: 80vh; !* Image height limit, leaving some space for potential captions or controls *!*/
        margin: auto; /* Center the image */
    }
}