html {
    /* width: 100%; */
    height: 100%;
    box-sizing: border-box;
}
*, *::before, *::after {
    box-sizing: inherit;
}
.bold {
    font-weight: bold;
}
body {
    /* width: 100%; */
    height: 100%;
    font-size: 16px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #7c7c7c;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.top-info {
    width: 100%;
    background-color: #e77927;
    color: #fff;
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
    position: sticky;
    z-index: 100;
    font-size: 14px;
}
.top-info p {
    margin: 0;
}
header {
    width: 100%;
    background-color: #eeeeee;
    display: flex;
    justify-content: center;
}
nav, main {
    max-width: 1000px;
}
nav {
    background-color: #eeeeee;
    width: 100%;
    padding: 32px 64px;
    text-align: center;
    display: flex;
    justify-content: flex-start;
}
nav img {
    width: 100%;
    position: relative;
    left: -9px;
}
.image-wrapper {
    max-width: 300px;
}
main {
    flex: 1;
    padding: 32px 96px 32px 64px;
}
h1 {
    font-size: 2rem !important;
    color: #e77927;
}
a {
    font-size: 1rem;
    color: #e77927;
    font-weight: bold;
}
.link {
    padding-top: 12px;
}
.footer-text {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin: 0;
    padding: 18px 0;
}

::selection {
    background-color: #ED995A;
    color: #fff;
}

::-moz-selection {
    background-color: #ED995A;
    color: #fff;
}

#btn {
    display: inline-block;
    background-color: #e77927;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 16px;
    margin: 18px 0;

}
#btn:hover {
    background-color: #cf6c1f;
}
#btn img {
    width: 100%;
    max-width: 40px;
}
.btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

@media (max-width: 815px) {
    body {
        font-size: 14px !important;
    }
    h1 {
        font-size: 1.8rem !important;
    }
}
@media (max-width: 500px) {
    body {
        text-align: center;   
        line-height: 1.2;     
    }
    nav {
        justify-content: center;   
        padding: 32px;
    }
    
    nav img {
        left: 0;
    }
    main {
        padding: 32px;
    }
    h1 {
        font-size: 1.4rem !important;
        padding-bottom: 24px;
    }

}

/* --- Redirect popup --- */
#redirect-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    animation: slideUp 0.5s ease-out;
    display: none;
}
#redirect-popup {
    /* position: fixed;
    bottom: 20px;
    right: 20px; */
    display: flex;
    width: 100%;
    background: #e77927;
    color: #fff;
    padding: 15px 20px;
    margin: 0 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    align-items: center;
    gap: 15px;
}
#redirect-wrapper.show {
    display: flex;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* Rotujúca animácia */
.spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #efefef;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    min-width: 28px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.counter {
    font-weight: bold;
    display: inline-block;
    min-width: 2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 815px) {
    #redirect-wrapper {
        right: 0;
        left: 0;
        margin: 0 auto;
        width: fit-content;
        bottom: 45px;
        text-align: left;
    }
    #redirect-popup {
        margin: 0 20px;
    }
    
}