#loadingContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 9999;
}

#loadingText {
    color: black;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: 'Advent Pro';
    text-align: center;
}

#loadingText.white {
    color: white;
}

#loadingText.black {
    color: black;
}

#titleCanvas {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Advent Pro', sans-serif;
    color: white;
    text-align: center;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#loadingSpinner {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#3498db 0%, #ddd 0%);
    transition: background 0.2s linear;
    position: relative;
}


#loadingSpinner::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
}

#percentage {
    color: black;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
}

/* Nasconde il loading spinner all'inizio */
/*#loadingSpinner {*/
/*    display: none;*/
/*}*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

canvas {
    width: 100vw;
    height: 100vh;
    display: block;  /* Rimuove lo spazio vuoto sotto il canvas */
    margin: 0;
    padding: 0;
}

#canvas-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

#renderCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

#muteButton, #volumeButton, #mtButton {
    position: absolute;
    top: 10px;
    left: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

#volumeButton, #mtButton {
    z-index: 20;
}

#screenshotButton {
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#screenshotButton:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#recordButton {
    position: absolute;
    top: 100px;
    right: 20px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#recordButton:hover {
    background-color: rgba(255, 0, 0, 1);
}

#fullscreenButton {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

#infoButton {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 30;
    padding: 8px;
}

#infoPopup {
    flex-direction: column;
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom));
    right: 20px;
    background: white;
    color: black;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    display: none;
    z-index: 60;
    width: 250px;
    max-width: 250px;
    max-height: 300px;
    overflow-y: auto;
    overflow-wrap: break-word;
    font-family: 'Advent Pro';
    font-weight: 400;
}

#columnsContainer0, #columnsContainer, #columnsContainer2, #columnsContainer3, #columnsContainer4 {
    display: flex;
    cursor: pointer;
    height: 23px;
}

.column {
    width: 48%;
}

.row {
    margin-bottom: 10px;
    white-space: nowrap;
}

.row[id^="CR"] {
    display: none;
    white-space: nowrap;
}

.arrow {
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease-in-out;
    white-space: nowrap;
}


#fullscreenOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 100;
    padding: 40px;
    box-sizing: border-box;
    font-family: 'Advent Pro';
    overflow-y: auto;
}

#backArrow {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    background: none;
    color: black;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.toggle-header {
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    color: #333;
    display: flex;
    align-items: center;
}

.toggle-content {
    display: block;
    /*margin-left: 10px;*/
    margin-top: 10px;
}

#feedbackIcon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 24px;
    background: none;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 30;
}
