.buttoner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

/* TLAČÍTKO */
.button {
    position: relative;
    color: #e0e0e0;
    font-size: 2.6rem;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.4;
    overflow: visible;
    z-index: 1;
    padding: 2px 0px;
    width: 70%;
    font-family: "Bebas Neue", sans-serif;
    cursor: pointer;
    text-decoration: none;

    transform: scale(0);
    animation: bumpBounce .9s forwards;
}

.button:nth-of-type(1) {
    animation-delay: 0.2s;
}
.button:nth-of-type(2) {
    animation-delay: 0.6s;
}
.button:nth-of-type(3) {
    animation-delay: .9s;
}

@keyframes bumpBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2); /* první velký odskok */
    }
    65% {
        transform: scale(0.9); /* druhý menší odskok */
    }
    80% {
        transform: scale(1.05); /* třetí ještě menší odskok */
    }
    90% {
        transform: scale(0.98); /* jemný poslední odskok */
    }
    100% {
        transform: scale(1); /* finální ustálení */
    }
}


.button small { font-family: "IBM Plex Mono", monospace;}

.button::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgb(29, 33, 48);
    z-index: -1;
    transition: all 0.45s ease;
}

.button_active::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgb(21, 22, 27);
    z-index: -1;
    transition: all 0.45s ease;
}

.button:hover::before {
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    background: rgb(35, 40, 55);
}

/* ROHY */
.button .corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgb(98,98,98);
    pointer-events: none;
    padding-bottom: 9px;
}

.button .corner.tl {
    top: -18px;
    left: -18px;
    border-right: none;
    border-bottom: none;
}
.button .corner.tr {
    top: -18px;
    right: -18px;
    border-left: none;
    border-bottom: none;
}
.button .corner.bl {
    bottom: -18px;
    left: -18px;
    border-right: none;
    border-top: none;
}
.button .corner.br {
    bottom: -18px;
    right: -18px;
    border-left: none;
    border-top: none;
}

/* TEXTY */
.button small {
    display: block;
    font-size: 0.6rem;
    color: white;
    letter-spacing: 2px;
    transition: opacity 0.3s ease;
}

.button span.alt {
    display: block;
    font-size: 0.6rem;
    color: white;
    letter-spacing: 2px;
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: "IBM Plex Mono", monospace;
    margin-top: -12px;
}

/* fade efekt při hoveru */
.button:hover small {
    opacity: 0 !important;
}
.button:hover span.alt {
    opacity: 1;
}
.arrow_in_text {width: 10px; margin-right: 9px; margin-top: -4px;}
.arrow_in_text_second {width: 10px; margin-right: 9px; margin-top: -4px;  transform: rotate(-180deg);}
.social_icon {background: white; width: 22px; text-align: center; height: 23px; display: block;}
.social_icon:hover {background: rgb(205, 205, 205); transition: all .4s;}
.social_icon img {margin-top: -4px;}
.custom-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0px;
}

.corner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 1px solid white;
    pointer-events: none;
}

.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}
.video-container {
    padding: 0;
    margin: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.video-container .custom-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-right {
    top: 0;
    right: 3px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.row {
    display: flex;
}

.middle_line {position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background-color:  rgb(98,98,98); transform: translateY(-50%);}

@media (max-width: 767px) {
    .row {
        flex-direction: row; /* sloupce pod sebe */
        display: block;
    }
    .plane_box {display: flex;}
    .information_section {padding: 20px;}
    .row > div {
        flex: auto; /* všechny zabírají 100% */
    }
}

.about_button {background: rgb(30,30,30); font-size: .8rem; text-align: center; color: white;  text-decoration: none; letter-spacing: 5px; padding-top: 12px; padding-bottom: 12px; padding-left: 45px; padding-right: 45px;}
.about_button:hover {background: rgb(21, 20, 20); transition: all .4s;}

.after_load_text_second {
    display: inline-block;
    opacity: 0 !important;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.after_load_text_second.ready {
    opacity: 1 !important;
    transform: translateY(0);
}

.after_load_text_first {
    display: inline-block;
    opacity: 0 !important;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.after_load_text_first.ready {
    opacity: 1 !important;
    transform: translateY(0);
}

.after_load_text_third {
    display: inline-block;
    opacity: 0 !important;
    transform: translateY(8px);
    transition: opacity 260ms ease, transform 260ms ease;
}

.after_load_text_third.ready {
    opacity: 1 !important;
    transform: translateY(0);
}

.top_section .left {flex: 2.7; text-align: center; border-right: 1px solid rgb(98,98,98); border-bottom: 1px solid rgb(98,98,98);}
.top_section .left a img {width: 180px;}
.top_section .center {flex: 7.45; border-right: 1px solid rgb(98,98,98);}
.top_section .center h1 {text-align: right;  color: white; font-size: 2rem;letter-spacing: 13px;font-weight: 500;}
.top_section .right {flex: 0.1; border-bottom: 1px solid rgb(98,98,98);}
.top_section .right #fullscreenBtn {display: block; margin-top: 10px;}
.top_section .right img {width: 20px;}
.top_section .right #soundOn {margin-top: 15px; display: block;}
.text_container p {font-size: 1rem; line-height: 24px;}
.text_container h2 {font-size: 1.5rem;}
.text_container h3 {font-size: 1.5rem;}


.center_section .buttoner {flex: 2.64;}
.center_section .video-container {position: relative; flex: 7.06; color: whitesmoke;}
.center_section .iconer {border-bottom: 1px solid rgb(98,98,98); position: relative; flex: 0.1;}
.center_section .iconer .s_icons {position: absolute; bottom: 30px;}
.center_section .iconer .s_icons img {width: 20px; padding: 0px;}

.bottom_section .just_lefter {border-right: 1px solid rgb(98,98,98); flex: 2.7; border-top: 1px solid rgb(98,98,98);}
.bottom_section .contacter {flex: 7.45; border-right: 1px solid rgb(98,98,98); text-align: right;}
.bottom_section .just_righter {flex: 0.1;}

@media screen and (max-width: 767px) {
    .top_section .left {border-right: 0px;}
    .top_section .center h1 {font-size: 1.2rem;letter-spacing: 6px;text-align: center;}
    .buttoner {gap: 20px;}
    .social_icon {display: inline-block; margin-right: 10px;}
    .bottom_section .contacter {text-align: center;}
    .center_section .iconer .s_icons {position: relative; text-align: center;}
    .center_section .iconer {border-bottom: 0px;}
    .top_section .center {border-right: 0px;}
    .bottom_section .contacter { border-right: 0px;}
}

.info-block {
    margin: 40px 0;
    gap: 18px;
}

.icon-box {
    font-size: 40px;
    color: #ed2024;
    background: #d1d1d1;
    padding: 12px 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

.info-text a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.plane_box img {
    width: 100%;
    display: block;
    filter: brightness(70%); /* ztmaví obrázky */
    transition: 0.3s ease;
}

.plane_box img:hover {
    filter: brightness(100%); /* najetím se zvýrazní */
}

.text_container a {color: rgb(218,58,50);}
.text_container h3 {color: rgb(218,58,50);}

.floating-flag {
    width: 200px;
    position: absolute;
    right: 1px;
    top: 21%;
    opacity: 0;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite, fadeIn 1s forwards;
    animation-delay: 2s, 2s;
}

.floating-racquet {
    width: 290px;
    position: absolute;
    right: 137px;
    top: 28%;
    opacity: 0;
    transform: translateY(-200px);
    animation: land 2.5s forwards 3s, float-slow 3s ease-in-out infinite 5.5s;
}

.floating-light {
    width: 350px;
    position: absolute;
    left: 50px;
    top: 22%;
    opacity: 0;
    transform: translateY(0);
    animation: float 3s ease-in-out infinite, fadeIn 1s forwards;
    animation-delay: 4s, 4s;
}

/* Animace */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes land {
    0% { opacity: 0; transform: translateY(-200px); }
    80% { opacity: 1; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Mobile-first úprava pro menší obrazovky */
@media (max-width: 992px) {
    .floating-flag { width: 15%; right: 3%; top: 28%; }
    .floating-racquet { width: 20%; right: 12%; top: 32%; }
    .floating-light { width: 25%; left: 3%; top: 28%; }
}

@media (max-width: 768px) {
    .floating-flag { width: 20%; right: 2%; top: 27%; }
    .floating-racquet { width: 25%; right: 10%; top: 30%; }
    .floating-light { width: 30%; left: 2%; top: 27%; }
}

@media (max-width: 576px) {
    .floating-flag { width: 25%; right: 1%; top: 25%; }
    .floating-racquet { width: 30%; right: 8%; top: 28%; }
    .floating-light { width: 35%; left: 1%; top: 25%; }
}


.text_container h1 {font-size: 3.9rem;}
.text_container h2 {font-size: 2.7rem;}
.text_container h3 {font-size: 1.8rem; color: rgb(220,52,35) !important; text-align: center;}
.text_container h4 {font-size: 1.3rem; text-align: center;}
.text_container h5 {font-size: 1.1rem;}
.text_container h6 {font-size: 1rem;}
.text_container p {font-size: .9rem; margin-top: 40px;}

li a {color: white !important; line-height: 29px !important; text-decoration: none !important;}
li a:hover {text-decoration: underline !important;}

.modern-nav li a {
    position: relative;
    text-decoration: none !important;
}

.modern-nav li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: currentColor;
    transition: width 0.5s ease;
}

.modern-nav li a:hover::after {
    width: 100%;
}

/*ipad portret*/ 
@media screen and (min-width: 768px) and (max-width: 1025px) {
    .buttoner {margin-top: 0px !important;}
}