html
{
    scroll-behavior: smooth;
}

@media (max-width: 1250px) {
    .nadpis {
        position: relative;
        width: 80%!important;
        max-width: 50rem!important;
        top: 20vw !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    .supercell_text
    {
        position: relative;
        transform: translateX(-20rem);
    }

    .hra_obrazovka {
        position: relative;
        width: 80vw !important;
        
    }

    .text_o_hogovi {
        font-size: 25px !important;
        position: absolute;
        width: 40rem !important;
        transform: translateX(5rem) !important;
    }

    .last_text {
        font-size: 25px !important; /* Adjusted for smaller screens */
    }

    .sipka_text, .sipka_text2 {
        width: 80%! important; /* Adjusted for responsiveness */
        position: absolute;
        transform: translateX(-20rem) !important;
    }

    .sipka_text2
    {
        transform: translateY(-20rem) !important;
        transform: translateX(-20rem) !important;
    }

    .sipka_2
    {
        transform: translateY(-20rem) !important;
        transform: translateX(-20rem) !important;
    }
}



body
{
    background-image: url(images/back3_hog.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    overflow-x: hidden !important; 
    margin: 0 auto;
    
}

@font-face
 {
    font-family: ClashofClans;
    src: url('fonts/supercell-magic.ttf');
         
}



.skakajici_rider:hover
{
    filter: brightness(0.7);
    transition: filter 0.9s ease;
}

a
{
    transition: 0.7s;
}
.nadpis
{
    position: absolute;
    width: 80%;
    max-width: 50rem;
    top: 10vw;
    left: 30vw;
    
}

.supercell
{
    position: absolute;
    width: 100px;
    top: 48px;
    left: 43vw;
    
}

.supercell_text
{
    position: absolute;
    width: 10rem;
    top: 5rem;
    left: 50vw;
    font-size: 50px;
    font-family: ClashofClans;
    margin: 0 auto;
    
}



.sipka 
{
    width: 200px;
    animation: moveUpDown 3s ease-in-out infinite;
    position: absolute;
    width: 100px;
    top: 88%;
    left: 50vw;
    cursor: pointer;
}


@keyframes moveUpDown {
    0% {
        transform: translateY(0); 
    }
    50% {
        transform: translateY(-20px); 
    }
    100% {
        transform: translateY(0); 
    }
}


.skakajici_rider
{
    display: block;
    margin-right: auto;
    width: 30rem;
    cursor: pointer;
    transition: filter 0.9s ease;
    position: relative;
    left: 48vw !important;
    bottom: -13rem;

}

.text-box {
    background-color: rgba(0, 0, 0, 0.7); 
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 200px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease; 
    margin-left: 45%;
    margin-right: auto;
    width: 30%;
    font-family: ClashofClans;
    padding: 20px;
    word-spacing: 5px;
    line-height: 1.5;
    position: absolute;
}

.hidden {
    display: none;
}

.text-box.visible {
    opacity: 1;
    transform: translateX(0); 
}

.hog_rve
{
    width: 30vw;
    position: relative;
    left: 15vw;
    bottom: -13rem;
}

.hog_rve:hover
{
    filter: brightness(0.7);
    transition: filter 0.9s ease;
}

.text-box.left {
    margin-left: 40vw;
    margin-top: -40vw !important;
    position: absolute;
    bottom: -120vw;

}

.text_o_hogovi
{
    position: absolute;
    left: 30%;
    font-size: 30px;
    width: 40vw;
    font-family: ClashofClans;
    word-spacing: 5px;
    line-height: 1.5;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.sipka_text
{
    position: absolute;
    bottom: 25px;
    left: 71%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    opacity: 1;
    font-family: ClashofClans;
    padding: 10px;
    word-spacing: 5px;
    line-height: 1.5;
}

.last_text
{
    position: absolute;
    left: 38vw;
    font-size: 30px;
    width: 30rem;
    font-family: ClashofClans;
    word-spacing: 5px;
    line-height: 1.5;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 20px;
    
}


.tajna_hra
{
    position: absolute;
    left: 43%;
    width: 300px;
}

.tajna_hra:hover
{
    filter: brightness(0.7) hue-rotate(-50deg);
    transition: filter 0.9s ease;
}





#board
{
    background-image: url(images/pozadi_hra.jpg);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
}


.hra_obrazovka
{
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    left: 2rem;
    top: 10rem;
}

.sipka_2
{
    width: 20vw;
    animation: moveUpDown 3s ease-in-out infinite;
    position: relative;
    left: 50vw;
    cursor: pointer;
    bottom: -10rem;
}

.sipka_text2
{
    position: relative;
    left: 60vw;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 5px;
    opacity: 1;
    font-family: ClashofClans;
    padding: 10px;
    word-spacing: 5px;
    line-height: 1.5;
    width: 40vw;
    bottom: -5rem;
    text-align: center;
}

.footer
{
    font-family: ClashofClans;
    background-color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    color: white;
   padding: 2rem;
   text-align: bottom;
   letter-spacing: 2px;

}

.datum
{
    text-align: right;
    align-items: right;
}

.odkaz
{
    text-decoration: none;
    color: white;
    margin-left: 20vw;
    margin-right: 38vw;
    
}

.logo_dole
{
    position: relative;
    width: 4vw;
    bottom: -1vw;
}