*{
    margin: auto 0;
    padding: 0;
    color: aliceblue;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    overflow-x: hidden;
}

body {
    background-color: black;
    overflow-x: hidden;
    min-width: 320px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

header li::marker {
    font-size: 0;
}
header {
    z-index: 10;
    background-color: black;
    position: fixed;
    top:0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1vh;
    border-bottom:#575757 2px solid;
    flex-wrap: wrap;
}

header img {
    max-width: 60px;
    height: auto;
}
nav .main-nav-ul {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    display: flex;
    justify-content: right;
    gap:20px;
    flex-wrap: wrap;
}
nav a {
    font-size: clamp(1.5rem, 3.5vh, 4vh);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    padding: 0.5vh 1vh;
}
nav a:hover {
    background-color: #575757;
    transform: rotate(-2deg) scale(1.1);
}

nav a.active {
    color: #FFD700;
    border-bottom: 3px solid #FFD700;
    padding-bottom: 5px;
}

nav li.dropdown {
    position: relative;
}

nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a;
    border: 2px solid #575757;
    border-top: none;
    list-style: none;
    min-width: 220px;
    flex-direction: column;
    z-index: 1000;
}

nav .dropdown-menu li {
    width: 100%;
}

nav .dropdown-menu a {
    font-size: clamp(1rem, 2.5vh, 3vh);
    padding: 1vh;
    border-bottom: 1px solid #575757;
}

nav .dropdown-menu a:last-child {
    border-bottom: none;
}

nav .dropdown-menu a:hover {
    background-color: #FFD700;
    color: black;
    transform: none;
}

nav li.dropdown.active .dropdown-menu {
    display: flex;
}
#icons {
    display: flex;
    gap: 1vh;
    flex-wrap: wrap;
    align-items: center;
}

#icons img {
    width: 6vh;
    height: 6vh;
    transition: all 0.3s ease;
}
#icons img:hover {
    transform: scale(1.1);
}

main {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    background-color: black;
    padding-top: 10vh;
}
main hr {
    border: #575757 2px solid;
    margin: 2vh 0;
}
.information-block {
    margin-bottom: 6vh;
    padding: 0 2vh;
}

/* Hero Section */
#home {
    width: 100%;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10vh;
    padding: 0 2vh;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 6vh;
    margin-bottom: 2vh;
    font-weight: bold;
}

.animated-roles {
    display: flex;
    justify-content: center;
    gap: 2vh;
    margin-bottom: 3vh;
    flex-wrap: wrap;
}

.animated-roles .role {
    font-size: 3vh;
    color: #FFD700;
    font-weight: bold;
    animation: fadeInOut 3s infinite;
}

.animated-roles .role:nth-child(1) {
    animation-delay: 0s;
}

.animated-roles .role:nth-child(2) {
    animation-delay: 1s;
}

.animated-roles .role:nth-child(3) {
    animation-delay: 2s;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translateY(10px); }
    50% { opacity: 1; transform: translateY(0); }
}

.hero-content p {
    font-size: 2.5vh;
    margin-bottom: 3vh;
    color: #d0d0d0;
}

.contact-btn-hero {
    display: inline-block;
    padding: 1.5vh 3vh;
    background-color: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 2.2vh;
    transition: all 0.3s ease;
}

.contact-btn-hero:hover {
    background-color: #FFC700;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

h1 {
    font-size: clamp(2rem, 5vh, 5vh);
}

h2 {
    font-size: clamp(1.8rem, 4vh, 4vh);
}

h3 {
    font-size: clamp(1.5rem, 3vh, 3vh);
    margin-top: 2vh;
}

h4 {
    font-size: clamp(1.3rem, 2.5vh, 2.5vh);
    margin-top: 1.5vh;
    color: #FFD700;
}

#about-me {
    text-align: center;
    font-size: clamp(1.2rem, 2.5vh, 2.5vh);
}

#about-me p {
    text-align: left;
    text-indent: 25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#about-me ul {
    text-align: left;
    padding-left: 40px;
    list-style-position: inside;
    margin-top: 2vh;
    margin-bottom: 2vh;
    word-wrap: break-word;
}

.ul-closed {
    padding-left: 40px;
    margin-bottom: 2vh;
    word-wrap: break-word;
}

/* Skills Section */
.skill-item {
    margin-bottom: 2vh;
    text-align: left;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5vh;
    font-size: 2.2vh;
}

.progress-bar {
    width: 100%;
    height: 2vh;
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFC700);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1vh;
    margin: 2vh 0;
}

.tool-tag {
    background-color: #1a1a1a;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 1vh 1.5vh;
    border-radius: 20px;
    text-align: center;
    font-size: 2vh;
    transition: all 0.3s ease;
}

.tool-tag:hover {
    background-color: #FFD700;
    color: #000;
}

.skills-list {
    text-align: left;
    padding-left: 40px;
    list-style-position: inside;
    font-size: 2.2vh;
    margin-top: 1vh;
}

/* Timeline */
.timeline {
    position: relative;
    margin: 3vh 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #FFD700;
}

.timeline-item {
    margin-bottom: 3vh;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: #FFD700;
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background-color: #1a1a1a;
    padding: 2vh;
    border-radius: 8px;
    border-left: 3px solid #FFD700;
}

.timeline-content h3 {
    color: #FFD700;
    margin-bottom: 0.5vh;
}

.edu-period {
    font-size: 1.8vh;
    color: #FFD700;
    font-weight: bold;
}

.edu-degree {
    font-size: 2vh;
    margin: 0.5vh 0;
    color: #d0d0d0;
}

.edu-description {
    font-size: 2vh;
    text-align: justify;
    margin-top: 1vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vh;
    margin: 2vh 0;
}

.achievement-card {
    background-color: #1a1a1a;
    border-left: 4px solid #FFD700;
    padding: 2vh;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    font-size: 5vh;
    margin-bottom: 1vh;
}

.achievement-card h3 {
    color: #FFD700;
    margin-bottom: 0.5vh;
}

.achievement-date {
    font-size: 1.8vh;
    color: #FFD700;
    font-weight: bold;
    margin-bottom: 1vh;
}

.achievement-description {
    font-size: 2vh;
    text-align: left;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Projects */
.scroller-container {
    max-width: 90vh;
    margin: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 4vh;
    width: 100%;
}

.scroller {
    overflow-x: scroll;
    display: flex;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1a1a1a;
}

.scroller::-webkit-scrollbar {
    height: 8px;
}

.scroller::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.scroller::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.item {
    padding: 1vh;
    margin: 1vh;
    margin-bottom: 0;
    min-width: min(85vh, 90vw);
    max-width: 100%;
    flex-shrink: 0;
    min-height: 65vh;
    scroll-snap-align: center;
    background-color: rgb(91, 91, 91);
    border-radius: 8px;
    overflow: hidden;
}

.item img {
    width: 100%;
    height: auto;
    max-height: 50vh;
    border: none;
    object-fit: cover;
}

.project-details {
    padding: 2vh;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-details h3 {
    color: #FFD700;
    margin-bottom: 1vh;
    font-size: 2.8vh;
}

.project-details p {
    font-size: 2vh;
    margin-bottom: 0.8vh;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 1vh;
    margin-top: 2vh;
    flex-wrap: wrap;
}

.project-links a {
    display: inline-block;
    padding: 1vh 1.5vh;
    background-color: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.8vh;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #FFC700;
    transform: scale(1.05);
}

.scroller-container .btn {
    position: absolute;
    top: 50%;
    margin-top: -15px;
    height: 30px;
    width: 30px;
    border-radius: 15px;
    background-color: rgba(161, 161, 161, 0.3);
    z-index: 1;
    line-height: 30px;
    text-align: center;
    color: rgb(0, 0, 0);
    font-weight: bold;
}

.scroller-container .btn:hover{
    background-color: rgba(95, 106, 117, 0.5);
    cursor: pointer;
}

.scroller-container .btn.next {
    right: 15px;
}

.scroller-container .btn.prev {
    left: 15px;
}

/* Contact Section */
.contact-section {
    background-color: #0a0a0a;
    padding: 3vh 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vh;
    margin-top: 2vh;
}

.contact-info {
    padding: 2vh;
}

.contact-info h3 {
    color: #FFD700;
    margin-bottom: 1.5vh;
}

.contact-info p {
    font-size: 2.2vh;
    margin-bottom: 1vh;
}

.social-links {
    display: flex;
    gap: 1.5vh;
    margin-top: 1.5vh;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links img {
    width: 5vh;
    height: 5vh;
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(1.2) drop-shadow(0 0 5px #FFD700);
    transform: scale(1.1);
}

.contact-form {
    padding: 2vh;
}

.contact-form h3 {
    color: #FFD700;
    margin-bottom: 1.5vh;
}

.form-group {
    margin-bottom: 1.5vh;
}

.form-group label {
    display: block;
    font-size: 2vh;
    margin-bottom: 0.5vh;
    color: #FFD700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1vh;
    background-color: #1a1a1a;
    border: 1px solid #575757;
    color: aliceblue;
    border-radius: 5px;
    font-size: 1.8vh;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
}

#formStatus {
    margin-top: 1vh;
    font-size: 2vh;
    text-align: center;
    min-height: 2.5vh;
}

#formStatus.success {
    color: #00ff00;
}

#formStatus.error {
    color: #ff0000;
}

.contact-btn {
    display: inline-block;
    margin: 1.5vh 0;
    padding: 1.2vh 2.5vh;
    background-color: #FFD700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 2vh;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.contact-btn:hover {
    background-color: #FFC700;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.4);
}

footer {
    border-top: #575757 2px solid;
    width: 100%;
    background-color: rgb(21, 21, 21);
    display: flex;
    justify-content: center;
    margin: auto;
    padding: 2vh;
    flex-wrap: wrap;
}

.footer-column {
    margin: 1vh;
    text-align: center;
    font-size: clamp(0.85rem, 1.8vh, 1.8vh);
    max-width: 100%;
    word-wrap: break-word;
}

/* Media Queries */
@media (max-width: 1200px) {
    nav .main-nav-ul {
        gap: 15px;
    }

    nav a {
        font-size: clamp(1.2rem, 3vh, 3.5vh);
        padding: 0.4vh 0.8vh;
    }
}

@media (max-width: 1024px) {
    main {
        width: 90%;
    }

    #minigames {
        margin-top: 14vh;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 0;
    }

    .timeline-content {
        padding-left: 3vh;
        border-left: 3px solid #FFD700;
    }

    #icons img {
        width: 5vh;
        height: 5vh;
    }
}

@media (max-width: 900px) {
    nav .main-nav-ul {
        gap: 8px;
    }

    nav a {
        font-size: clamp(1rem, 2.8vh, 2.8vh);
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    main {
        width: 95%;
        padding-top: 15vh;
    }

    header {
        padding: 1vh 0.5vh;
    }

    nav .main-nav-ul {
        gap: 10px;
        justify-content: center;
    }

    nav a {
        font-size: clamp(1rem, 2.5vh, 2.5vh);
        padding: 0.3vh 0.5vh;
    }

    #icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #icons img {
        width: 4vh;
        height: 4vh;
        margin: 0.3vh;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 4vh, 4vh);
    }

    .animated-roles {
        gap: 1vh;
    }

    .animated-roles .role {
        font-size: clamp(1rem, 2vh, 2vh);
    }

    .hero-content p {
        font-size: clamp(1rem, 2vh, 2vh);
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .item {
        min-width: 90vw;
        min-height: auto;
    }

    .item img {
        max-height: 40vh;
    }

    .project-details h3 {
        font-size: 2.2vh;
    }

    .project-details p {
        font-size: 1.8vh;
    }

    #minigames {
        margin-top: 16vh;
    }
}

@media (max-width: 480px) {
    main {
        width: 98%;
        padding-top: 20vh;
    }

    header {
        flex-direction: column;
        padding: 1vh;
        gap: 1vh;
        position: fixed;
    }

    header img {
        max-width: 50px;
    }

    nav .main-nav-ul {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    nav a {
        font-size: 0.9rem;
        padding: 0.5vh 0.8vh;
    }

    #icons {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5vh;
    }

    #icons img {
        width: 3.5vh;
        height: 3.5vh;
        margin: 0.2vh;
    }

    #home {
        padding: 2vh;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .animated-roles {
        flex-direction: column;
        gap: 0.5vh;
    }

    .animated-roles .role {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .contact-btn-hero {
        padding: 1vh 2vh;
        font-size: 1rem;
    }

    .information-block {
        padding: 0 1vh;
    }

    #about-me ul {
        padding-left: 20px;
    }

    .skill-header {
        font-size: 1rem;
    }

    .progress-bar {
        height: 1.5vh;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-tag {
        font-size: 0.9rem;
    }

    .skills-list {
        font-size: 0.95rem;
        padding-left: 20px;
    }

    .timeline-content {
        padding: 1.5vh;
        padding-left: 2vh;
    }

    .edu-period,
    .edu-degree,
    .edu-description {
        font-size: 0.9rem;
    }

    .achievements-grid {
        gap: 1.5vh;
    }

    .achievement-card {
        padding: 1.5vh;
    }

    .achievement-icon {
        font-size: 3vh;
    }

    .achievement-card h3 {
        font-size: 1.2rem;
    }

    .achievement-date,
    .achievement-description {
        font-size: 0.9rem;
    }

    .item {
        min-width: 95vw;
        margin: 0.5vh;
        padding: 0.5vh;
    }

    .item img {
        max-height: 30vh;
    }

    .project-details {
        padding: 1vh;
    }

    .project-details h3 {
        font-size: 1.2rem;
    }

    .project-details p {
        font-size: 0.9rem;
    }

    .project-links a {
        font-size: 0.85rem;
        padding: 0.8vh 1.2vh;
    }

    .scroller-container .btn {
        height: 25px;
        width: 25px;
        font-size: 0.9rem;
    }

    .contact-info,
    .contact-form {
        padding: 1vh;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .social-links img {
        width: 4vh;
        height: 4vh;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8vh;
    }

    .contact-btn {
        font-size: 1rem;
        padding: 1vh 2vh;
    }

    .footer-column {
        font-size: 0.85rem;
    }

    .minigame h2 {
        margin: auto 2vh;
        font-size: 1.2rem;
    }

    #minigames {
        margin-top: 18vh;
    }
}

/* Улучшение сенсорного опыта */
@media (hover: none) and (pointer: coarse) {
    nav a {
        padding: 1vh 1.5vh;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .contact-btn,
    .contact-btn-hero,
    .project-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #icons img {
        min-width: 44px;
        min-height: 44px;
    }

    .social-links img {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Landscape mode для мобильных */
@media (max-height: 500px) and (orientation: landscape) {
    #home {
        min-height: 100vh;
        padding: 5vh 2vh;
    }

    #minigames {
        margin-top: 12vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .animated-roles .role {
        font-size: 0.9rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    header {
        padding: 0.5vh;
    }

    nav a {
        padding: 0.5vh 1vh;
        font-size: 0.85rem;
    }

    #icons img {
        width: 3vh;
        height: 3vh;
    }

    main {
        padding-top: 10vh;
    }
}

#minigames {
    margin-top: 12vh;
    background-color: black;
    border-radius: 8px;
    font-size: clamp(1.5rem, 3vh, 3vh);
    text-align: center;
    padding: 2vh;
}
#minigames p {
    font-size: 2.5vh;
}
.minigame {
    margin-top: 4vh;
    background-color: #1a1a1a;
    padding: 2vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.minigame h2 {
    margin: auto 4vh;
    word-wrap: break-word;
}

.minigame p {
    margin: 2vh 0;
    font-size: clamp(1rem, 2vh, 2vh);
}

.minigame button {
    padding: 1.5vh 3vh;
    background-color: #FFD700;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: clamp(1rem, 2.2vh, 2.2vh);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 2vh 0;
}

.minigame button:hover {
    background-color: rgb(255, 199, 0);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}

#adventure-generator {
    margin-top: 4vh;
    background-color: #1a1a1a;
    padding: 2vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#adventure-generator li {
    background-color: rgb(255, 250, 235);
    color: #000;
    padding: 2vh;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1vh;
}

#adventure-generator li .adventure-timestamp {
    font-size: 0.85em;
    color: #cc9900;
    font-weight: bold;
    margin-bottom: 0.5vh;
}

#adventure-generator li .adventure-text {
    font-size: 1em;
    line-height: 1.6;
    color: #000;
}

#adventure-history h3 {
    margin-bottom: 2vh;
    width: 100%;
}
#adventure-history {
    width: 100%;
}

#adventure-history ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    padding-left: 0;
    gap: 1vh;
}
#guessNumber {
    margin-top: 4vh;
    background-color: #1a1a1a;
    padding: 2vh;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#guestNumberInput {
    height: 6vh;
    width: 12rem;
    padding: 0.5vh;
    font-size: 2vh;
    color: black;
}

.switch {
    transition: all 0.3s ease;
    background-color: #1a1a1a;
}
.switch input:hover[type="checkbox"] {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);
}
.switch input[type="checkbox"] {
    position: relative;
    height: 4vh;
    width: 8vh;
    appearance: none;
    outline: 0;
    background: rgba(111, 114, 118, 0.781);
    border-radius: 2vh;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 2vh rgba(0, 0, 0, .4);
    display: block;
    cursor: pointer;
}

.switch input:checked[type="checkbox"] {
    background:#00ff00;
}
.switch input[type="checkbox"]:before {
    position: absolute;
    content: '';
    width: 4vh;
    height: 4vh;
    border-radius: 2vh;
    top: 0;
    left: 0;
    background: aliceblue;
    box-shadow: 0 0 0.5vh rgba(255,215,0, 0.5);
    transition: all 0.3s ease;

}

.switch input:checked[type="checkbox"]:before {
    left: 4vh;
}

.switch {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 1vh;
}

#reactionSpeedGamePlace {
    width: 30vw;
    height: 10vh;
    padding: 0;
    background-color: #1a1a1a;
}

#tic-tac-toe td{
    width: 16vh;
    height: 16vh;
    text-align: center;
    font-size: 3vh;
    border: 1vh solid #e4e4e4;
    border-radius: 4vh;
    cursor:crosshair;
    background-color:#575757;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

#tic-tac-toe td.flip {
    animation: flipCell 0.6s ease-in-out;
}

#tic-tac-toe td.cell-x {
    background-color: #ed3030;
}

#tic-tac-toe td.cell-o {
    background-color: #1962ff;
}

#tic-tac-toe td.cell-win {
    background-color: #2dff65;
    animation: winPulse 0.8s ease-in-out;
}

@keyframes flipCell {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

@keyframes winPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.labirint-cell{
    width: 16vh;
    height: 16vh;
    text-align: center;
    font-size: 3vh;
    cursor:crosshair;
    background-color:#575757;
    transition: transform 0.6s;
}
.labirint-cell.wall {
    background-color: #380505;
}
.labirint-cell.path {
    background-color: #a4ffbb;
}
.labirint-cell.empty {
    background-color: #575757;
}
.labirint-cell.start {
    background-color: #ff4040;
}
.labirint-cell.exit {
    background-color: #2cff5d;
}
.labirint-cell.end {
    background-color: #2cff5d;
}
.labirint-cell.player {
    background-color: #1962ff;
}