@import url('https://fonts.googleapis.com/css2?family=Barriecito&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Francois+One&display=swap');


:root {
    --camera-position-z: 25;
    --decode-text-bg-color: #FFFFFF;
    --main-text-color: #FFFFFF;
    --black-color: #000000;
    --font-size: 1.2em;
    --margin: 6%;
    --title-font-family: 'Barriecito', cursive;
    --text-font-family: 'Francois One', sans-serif;
}

/* Media query for iPhone */
@media (max-width: 480px) {
    :root {
        --camera-position-z: 30;
    }
}


canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--title-font-family), cursive;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    /*overflow: hidden;*/

}

.torus-container {
    width: 500px; /* Adjust the width as needed */
    height: 500px; /* Adjust the height as needed */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* Set background to transparent */
}


.decode-text {
    width: 100%;
    font-size: 45px;
    text-align: center;
    text-transform: uppercase;


}

.decode-text.small-text {
    font-size: 14px; /* Adjust the size as needed */
    font-family: var(--text-font-family), sans-serif;
    text-transform: lowercase;


}

.text-animation {
    display: inline-block;
    position: relative;
    color: transparent;

    &:before {
        content: "";
        color: var(--main-text-color);
        position: absolute;
        top: 50%;
        left: 50%;
        background: var(--decode-text-bg-color);
        width: 0;
        height: 1.2em;
        -webkit-transform: translate(-50%, -55%);
        -ms-transform: translate(-50%, -55%);
        transform: translate(-50%, -55%);
    }

    &.state-1 {
        &:before {
            width: 1px;
        }
    }

    &.state-2 {
        &:before {
            width: 0.9em;
        }
    }

    &.state-3 {
        color: var(--main-text-color);

        &:before {
            width: 0;
        }
    }
}


.bottom-text-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: var(--main-text-color);
    padding: 10px 0; /* Optional: Add padding */

}

@media (max-width: 480px) {
    .bottom-text-container {
        margin-bottom: 100px;
    }
}


.button-bottom-right {
    position: absolute;
    bottom: 1px;
    right: 1px;
    font-size: 0.6em; /* Inherit font size from parent */
    font-family: var(--title-font-family), sans-serif; /* Inherit font family from parent */
    color: var(--black-color); /* Inherit text color from parent */
    background: none;
    border: none;
    cursor: pointer; /* Display small hand cursor on hover */


}
