@import url("../styles/reset.css");
@import url("../styles/global.css");

body {
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 1rem;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

main h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 0;
}

main p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 0.5rem 0;
}

.eight-ball-container {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0; /* Important for flex child overflow */
}

.eight-ball {
    width: 100%;
    max-height: 100%;
    height: 100vh;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* Needed due to the responsive rendering of the eight-ball */
/* TODO(raffclar): Make available for other pages */
.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    color: #fff;
    text-decoration: none;
}

#three-container {
    width: 100%;
    height: 100%;
    z-index: 1;
    position: relative;
}

#fps-counter {
    top: 3rem !important;
    left: 3rem !important;
}

#three-container canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}
