@font-face {
    font-family: Limousines;
    src: url(/src/Limousines.ttf);
}


html {
    font-family: Limousines;
    overflow: hidden;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    transition: background-color 0.3s ease;
}

.page-section {
    margin: 0;
    padding: 0;
    height: 101vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#name {
    font-size: 100px;
    color: white;
    text-align: center;
    font-weight: bold;
    margin: 0;
    padding: 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

#name::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 5px white, 0 0 10px white;
    }

    to {
        text-shadow: 0 0 20px white, 0 0 30px white, 0 0 40px rgba(255,255,255,0.5);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px white, 0 0 10px white;
    }

    to {
        text-shadow: 0 0 20px white, 0 0 30px white, 0 0 40px rgba(255,255,255,0.5);
    }
}

.name-text {
    -webkit-animation: glow 2s ease-in-out infinite alternate;
    -moz-animation: glow 2s ease-in-out infinite alternate;
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

.click-scroll {
    font-size: medium;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.5s forwards;
    opacity: 0;
}

#info {
    color: black;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #ffffff;
    text-align: start;
    flex-direction: column;
    font-size: xx-large;
}

.container {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.row {
    display: flex;
    align-items: center;
    justify-content: baseline;
    margin-bottom: 10px;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
}

.row:nth-child(1) { animation-delay: 0.1s; }
.row:nth-child(2) { animation-delay: 0.15s; }
.row:nth-child(3) { animation-delay: 0.2s; }
.row:nth-child(4) { animation-delay: 0.25s; }
.row:nth-child(5) { animation-delay: 0.3s; }
.row:nth-child(6) { animation-delay: 0.35s; }
.row:nth-child(7) { animation-delay: 0.4s; }
.row:nth-child(8) { animation-delay: 0.45s; }
.row:nth-child(9) { animation-delay: 0.5s; }
.row:nth-child(10) { animation-delay: 0.55s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.new-row {
    margin-top: 50px;
}

.header {
    width: 120px;
    color: #555;
    transition: color 0.3s ease;
}

.row:hover .header {
    color: #000;
}

.text {
    font-weight: bold;
    transition: transform 0.2s ease;
}

.row:hover .text {
    transform: translateX(5px);
}

#counter {
    font-size: 80px;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #000000;
    text-align: start;
    position: relative;
    overflow: hidden;
}

#counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.pocet {
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.pocet span {
    display: inline-block;
    transition: all 0.3s ease;
}

.pocet span:hover {
    color: #ddd;
    transform: scale(1.1);
}

#chess {
    font-size: 80px;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.chess-container {
    display: flex;
    gap: 100px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.chess-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: fadeIn 0.8s ease;
}

.chess-number {
    font-size: 120px;
    font-weight: bold;
    min-width: 150px;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.chess-button {
    font-size: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    user-select: none;
}

.chess-button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

.chess-button:active {
    transform: scale(0.95);
}

#links {
    font-size: xx-large;
    color: black;
    text-align: center;
    margin: 0;
    padding: 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.container_link {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin: 20px;
    padding: 20px;
    background-color: transparent;
    font-size: larger;
    max-width: 1200px;
    width: 90%;
    position: relative;
    z-index: 1;
}

.link-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 35px;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    background: #f8f8f8;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.link-row:nth-child(1) { animation-delay: 0.1s; }
.link-row:nth-child(2) { animation-delay: 0.2s; }
.link-row:nth-child(3) { animation-delay: 0.3s; }
.link-row:nth-child(4) { animation-delay: 0.4s; }
.link-row:nth-child(5) { animation-delay: 0.5s; }
.link-row:nth-child(6) { animation-delay: 0.6s; }
.link-row:nth-child(7) { animation-delay: 0.7s; }
.link-row:nth-child(8) { animation-delay: 0.8s; }
.link-row:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-row-reverse {
    flex-direction: column;
}

.link-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #ffffff;
}

.link-row .odkaz {
    background-color: #ff7f00;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 127, 0, 0.3);
    font-size: extra-large;
}

.link-row .odkaz:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 127, 0, 0.6);
    text-decoration: none;
    background-color: #ff9933;
}

.link-info {
    color: black;
    font-size: large;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.link-row:hover .link-info {
    color: #000;
}

.odkaz {
    text-decoration: none;
    color: black;
    font-weight: bold;
}

.odkaz:hover {
    text-decoration: underline;
    text-shadow: 0px 0px 5px gray;
}

/* Navigation bar */
nav {
    z-index: 1000;
    position: fixed;
    top: 2%;
    font-size: 40px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    animation: slideDown 0.8s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav a {
    color: #8B8B8B;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #8B8B8B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover {
    text-shadow: 0px 0px 10px #8B8B8B;
    transform: scale(1.05);
}

nav a:hover::after {
    width: 80%;
}

nav a.active {
    text-decoration: none;
    color: #000;
}

nav a.active::after {
    width: 80%;
    background-color: #000;
}

/* Light navigation for dark backgrounds */
nav.light a {
    color: #AAAAAA;
}

nav.light a::after {
    background-color: #AAAAAA;
}

nav.light a:hover {
    text-shadow: 0px 0px 10px #AAAAAA;
}

nav.light a.active {
    color: #fff;
}

nav.light a.active::after {
    background-color: #fff;
}

/* End of Navigation bar */