/* Title Screen */
#titleScreen {
    position: fixed;
    width: calc(100vw + 100px);
    height: calc(100vh + 100px);
    background-color: #000;
    left: -50px;
    top: -50px;
    z-index: 10001;
}

#titleCredits {
    font-size: 36pt;
    color: #111111;
    font-weight: 700;
    text-shadow:
        -1px -1px 0 #eee,
        1px -1px 0 #eee,
        -1px 1px 0 #eee,
        1px 1px 0 #eee;
    text-align: center;
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
}

#titleScreen > .areaBackground {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    filter: brightness(0.8);
    background-color: #ddd;
    background-image: url(../assets/backgrounds/titlescreen.png);
    background-size: 100% 100%;
    z-index: -1;
    animation: circle 40s linear infinite;
}

#titleScreen > h1 {
    font-size: 128pt;
    color: #111111;
    text-shadow:
        -4px -4px 0 #eee,
        4px -4px 0 #eee,
        -4px 4px 0 #eee,
        4px 4px 0 #eee;
    margin-top: 100px;
    text-align: center;
}

#titleScreen > h3 {
    font-size: 48pt;
    color: #111111;
    text-shadow:
        -2px -2px 0 #eee,
        2px -2px 0 #eee,
        -2px 2px 0 #eee,
        2px 2px 0 #eee;
    margin-top: 10px;
    text-align: center;
}

/* Changelog */
#changelogContainer {
    width: 500px;
    height: 10vh;
    position: fixed;
    left: calc(50vw - 250px);
    top: calc(50vh + 125px);
    transition: height 0.5s ease-in-out;
    overflow: hidden;
}

#changelogContainer.open {
    height: max(calc(40vh - 75px), 100px);
}

#changelogButton {
    width: 100%;
    height: 10vh;
    transition:
        filter 0.2s ease-in-out,
        background-color 0.2s ease-in-out;
    font-size: 48pt;
    border-radius: var(--panel-radius);
    background: none;
    border: none;
    outline: none;
}

#changelogButton:hover {
    filter: brightness(1.2);
    background-color: #00000020;
}

#changelogContent > h4 {
    font-size: 24pt;
    margin-block: 8px;
    font-weight: 400;
}

#changelogContent > p {
    transform: scaleY(1.2);
    margin-bottom: 12px;
}

#changelogContent {
    box-sizing: border-box;
    overflow-y: scroll;
    padding: 0 16px 16px 16px;
    font-size: 16pt;
    line-height: 0.8;
    height: calc(30vh - 75px);
}

/* Play button */
#playButton {
    position: absolute;
    left: calc(50% - 200px);
    top: calc(50% - 75px);
    width: 400px;
    height: 150px;
    font-size: 64pt;
    background-color: #040406b0;
    backdrop-filter: blur(24px);
    border: 2px solid #00000020;
    border-radius: 20px;
    transition:
        transform 0.2s ease-out;
}

#playButton:hover {
    transform: scale(1.02);
}
