body {
    padding: 0;
    margin: 0;
    background-color: #262626;
}

.fullscreen {
    width: 100%;
    height: 100%;
}

#game-container {
    position: fixed;
}

#game-canvas {
    background: url('game-background.png') center no-repeat;
    background-size: cover;
    background-position: bottom 40%;
}

#loading-screen {
    position: fixed;
    left: 0;
    top: 0;
    display: none;
}

#loading-screen-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }

#loading-screen-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#game-vines {
    position: fixed;
    top: 0;
    width: 100%;
    aspect-ratio: 520 / 110;
    height: auto;
    max-height: 120px;
    background: url('game-vines.png') center repeat-x;
    background-size: contain;
    transform: translate(0%, -25%);
}

#loading-screen-header {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    flex-grow: 1;
}

#loading-screen-footer {
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    min-height: 20%;
    display: flex;
}

#game-logo {
    max-width: min(100%, 800px);
    max-height: 100vw;
    aspect-ratio: 1056 / 756; 
    padding: 0 10px 0 10px;
    background: url('game-logo.png') center no-repeat;
    background-size: contain;
    background-position: bottom;
    position: relative;
    flex-grow: 1;
}

#progress-bar {
    position: relative;
    max-height: 10%;
    aspect-ratio: 560 / 64; 
    width: 70%;
    max-width: 560px;
    top: 10px;
}

#progress-bar-empty {
    width: 100%;
    height: 100%;
    background: url('progress-bar-empty.png') center no-repeat;
    background-size: contain;
}

#progress-bar-full {
    width: 100%;
    height: 100%;
    background: url('progress-bar.png') center no-repeat;
    background-size: contain;
    background-position: center;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.5s ease-in-out;
}

#loading-screen-tip {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    box-sizing: border-box;
}

#loading-screen-tip-title {
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    font-size: clamp(12px, 5vw, 3vh);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    font-weight: bold;
}

#loading-screen-tip-line {
    position: relative;
    left: 50%;
    width: 40%;
    border-top: 2px solid white;
    transform: translate(-50%, 0);
}

#loading-screen-tip-desc {
    padding: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    font-size: clamp(12px, 5vw, 2vh);
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#loading-screen-logo {
    margin-bottom: 10px;
    width: 100%;
    height: 24px;
    background: url('cgg_logo.png') center no-repeat;
    background-size: contain;
    box-sizing: border-box;
}

#game-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}
