* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: #fff;
    background-color: #000;
}
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.ui-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.instructions {
    font-size: 14px;
    margin-bottom: 10px;
}
.ui-overlay h3 {
    margin-bottom: 5px;
    font-weight: 400;
}
.author-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}
.author-info a {
    color: #6ee7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.author-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Plovoucí tlačítko pro info panel */
.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(110, 231, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 98;  /* Sníženo z 100 na 98 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.info-button:hover {
    background: #fff;
    transform: scale(1.1);
}
.info-button svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* Vysouvací panel */
.info-panel {
    position: fixed;
    top: 0;
    right: -35%;
    width: 33%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.info-panel.active {
    right: 0;
}
.info-panel::-webkit-scrollbar {
    width: 8px;
}
.info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}
.info-panel::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 255, 0.5);
    border-radius: 4px;
}
.info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 255, 0.8);
}

/* Tlačítko zavřít panel */
.close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 101;  /* Přidáno z-index vyšší než info tlačítko */
}
.close-panel:hover {
    transform: rotate(90deg);
}

/* Sekce v panelu */
.panel-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.panel-section:last-child {
    border-bottom: none;
}
.panel-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 300;
}
.panel-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 400;
}
.panel-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}
.panel-section a {
    color: #6ee7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}
.panel-section a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Barevné akcenty pro projekty */
.project-item {
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 3px solid #333;
    transition: border-color 0.3s ease;
}
.project-item.myconnect {
    border-color: #4287f5;
}
.project-item.mynoti {
    border-color: #42f56f;
}
.project-item.myeduca {
    border-color: #ff8c42;
}
.project-item.mymem {
    border-color: #a742f5;
}
.project-item h3 {
    color: #fff;
}
.panel-button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background: #6ee7ff;
    color: #000 !important;  /* Přidáno !important pro černou barvu textu */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.panel-button:hover {
    background: #fff;
    color: #000 !important;  /* Černá i při hoveru */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;  /* Žádné podtržení při hoveru */
}
.content-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    padding: 30px;
    border-radius: 15px;
    z-index: 100;
    max-width: 600px;
    width: 90%;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.content-modal h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #6ee7ff;
}
.content-modal p {
    line-height: 1.6;
    margin-bottom: 20px;
}
.content-modal button {
    background: #6ee7ff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.content-modal button:hover {
    background: #fff;
}
.project-link {
    display: inline-block;
    background: #6ee7ff;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}
.project-link:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.interaction-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(110, 231, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease;
}
.loader-content {
    text-align: center;
}
.loader h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #6ee7ff;
}
.loader .progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}
.loader .progress-bar {
    height: 100%;
    width: 0%;
    background: #6ee7ff;
    transition: width 0.3s ease;
}

/* Mobilní ovládání */
.control-mode-toggle {
    margin-top: 15px;
}

.mode-button {
    background: rgba(110, 231, 255, 0.2);
    border: 2px solid rgba(110, 231, 255, 0.5);
    color: #6ee7ff;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.mode-button:hover {
    background: rgba(110, 231, 255, 0.3);
    border-color: #6ee7ff;
    transform: scale(1.05);
}

.mode-button.gyro-active {
    background: rgba(110, 231, 255, 0.4);
    border-color: #fff;
    color: #fff;
}

.mode-button svg {
    width: 20px;
    height: 20px;
}

/* Responzivní design pro mobily */
@media (max-width: 768px) {
    /* Info panel na mobilu - 50% šířky */
    .info-panel {
        width: 50%;
        right: -55%;
        padding: 20px;
    }
    
    /* UI overlay přizpůsobení */
    .ui-overlay {
        bottom: 15px;
        left: 15px;
        padding: 12px;
        max-width: 250px;
    }
    
    .instructions {
        font-size: 13px;
    }
    
    .ui-overlay h3 {
        font-size: 16px;
    }
    
    /* Větší interaction hints pro mobil */
    .interaction-hint {
        font-size: 16px;
        padding: 12px 24px;
        bottom: 80px;
    }
    
    /* Modální okna přizpůsobení */
    .content-modal {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .content-modal h2 {
        font-size: 20px;
    }
    
    /* Info tlačítko menší na mobilu */
    .info-button {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .info-button svg {
        width: 22px;
        height: 22px;
    }
    
    /* Panel sekce úpravy */
    .panel-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .panel-section h2 {
        font-size: 20px;
    }
    
    .panel-section h3 {
        font-size: 16px;
    }
    
    .panel-section p {
        font-size: 14px;
    }
    
    /* Tlačítka v panelu */
    .panel-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    /* Ještě menší displeje */
    .info-panel {
        width: 65%;
        right: -70%;
    }
    
    .ui-overlay {
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }
    
    .instructions {
        font-size: 12px;
    }
    
    .author-info {
        font-size: 11px;
    }
    
    /* Loader úpravy */
    .loader h2 {
        font-size: 20px;
    }
    
    .loader .progress {
        width: 250px;
    }
}
