@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Regular Oblique.ttf') format('truetype');
    font-weight: 400;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Medium Oblique.ttf') format('truetype');
    font-weight: 500;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Semi Bold Oblique.ttf') format('truetype');
    font-weight: 600;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Bold Oblique.ttf') format('truetype');
    font-weight: 700;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Extra Bold Oblique.ttf') format('truetype');
    font-weight: 800;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Black Oblique.ttf') format('truetype');
    font-weight: 900;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Light Oblique.ttf') format('truetype');
    font-weight: 300;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Extra Light Oblique.ttf') format('truetype');
    font-weight: 200;
    font-style: oblique;
}

@font-face {
    font-family: 'BelfastGrotesk';
    src: url('./fonts/Belfast Grotesk Thin Oblique.ttf') format('truetype');
    font-weight: 100;
    font-style: oblique;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #101010; /* fallback */
}

body {
    position: relative;
    color: #ccc;
    font-family: 'BelfastGrotesk', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    font-size: 1.2rem;
    background-image: url('images/bg1.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.xLink {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translate(-50%);
    z-index: 20;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.xLink img {
    width: 32px;
    height: 32px;
}

.cyberneticTitle {
    width: 664px;
    height: 270px;
}

.animatedCanvasWrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.animatedCanvas {
    min-width: 540px;
    aspect-ratio: 1 / 1;
    position: relative;
    z-index: 1;
    border-radius: 50%;
}

.mainAnimationContainer {
    border-radius: 50%;
    position: absolute;
    z-index: 2;
    top: calc(50vh - 150px);
    margin: auto 50vw 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mainText {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    position: absolute;
    bottom: 0;
    z-index: 3;
    color: #CFD6D8;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
}

.mainTextMobile {
    display: none;
}

.linesImg {
    background-image: url("images/grid.png");
    background-position: center center;
    background-size: contain;
    position: absolute;
    z-index: 10;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.terminalWrapper {
    position: absolute;
    z-index: 10;
    top: 3%;
    left: 3%;
    margin: auto auto;
}

.staticWrapper {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 10;
    bottom: 3%;
    left: 3%;
    margin: auto auto;
}

.hashWrapper {
    display: flex;
    align-items: center;
    position: absolute;
    z-index: 10;
    top: 3%;
    right: 3%;
    margin: auto auto;
}

.errorWrapper {
    font-size: 1rem;
    color: #414141;
    font-weight: 400;
    line-height: normal;
    position: absolute;
    z-index: 10;
    bottom: 3%;
    right: 3%;
}

.terminal, .static-line, #hash, #errorText {
    color: #414141;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 168px;
}

#hash {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

#errorText {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    white-space: nowrap;
}

.inline-text {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 0.6ch;
    height: 1em;
    background-color: #ccc;
    animation: blink 1s steps(1) infinite;
    vertical-align: bottom;
}

#errorText {
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.5;
}

#errorText span {
    transform: rotate(90deg);
}

.char {
    line-height: 1.5rem;
}

.scaler {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    z-index: 1;
    height: 100%; /* 16:9 ratio example */
    max-height: 100vh;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    width: 42%;
    aspect-ratio: 1/1;
    /*background-image: url('./images/black-circle.png');*/
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.15);
}

.animationWrapper {
    width: 80%;
    aspect-ratio: 1/1;
}

.intro-text-wrapper {

}

.reveal-line {
    color: #CFD6D8;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 0;
}

.reveal-line.visible {
    opacity: 1;
    animation: revealText 1s ease forwards;
}

@keyframes revealText {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}


@media (min-width: 1920px) {
    .errorWrapper {
        bottom: 2%;
        right: 1%;
    }

    .terminalWrapper {
        top: 10%;
        left: 10%;
    }

    .hashWrapper {
        top: 10%;
        right: 10%;
    }

    .staticWrapper {
        bottom: 10%;
        left: 10%;
    }
    .cyberneticTitle {
        transform: scale(1.2);
    }
}

@media (max-width: 1440px) {
    .circle {
        width: 50%;
    }
}

@media (max-width: 1366px) {
    .circle {
        width: 57%;
    }
}

@media (max-width: 1024px) {

    .circle {
        width: 55%;
        height: 100%;
    }

    .mainText {
        max-width: 270px;
    }
}
@media (max-width: 850px) and (orientation: landscape)  {

    .circle {
        width: 42%;
        height: 100%;
    }
    .cyberneticTitle {
        width: 450px;
        height: 200px;
    }
    .mainText {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .scaler {
        padding-top: 10px;
    }

    .circle {
        width: 100%;
        margin: 0;
    }

    .mainTextMobile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        position: absolute;
        bottom: 0;
        z-index: 3;
        color: #CFD6D8;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 28px;
        margin-bottom: 30px;
    }

    .mainText {
        display: none;
    }

    .cyberneticTitle {
        margin-bottom: 70px;
    }

    .linesImg {
        background: url("images/grid-mobile.png");
    }

    .xLink {
        bottom: 10%;
    }

    .xLink img {
        width: 24px;
        height: 24px;
    }

}

@media (max-width: 560px) {
    .scaler {
        width: 100vw;
        height: 100vh;
        background-size: cover;
        overflow: hidden;
        padding: 0 8px 40px 0px;
    }

    .circle {
        width: 100%;
        margin-top: 45px;
        transform: scale(1.85);
        margin-left: 30px;
    }

    .animationWrapper {
        margin-right: 5px;
    }

    .cyberneticTitle {
        width: 600px;
        height: 230px;
    }
}

@media (max-width: 375px) {
    .scaler {
        width: 100vw;
        height: 100vh;
        background-size: cover;
        overflow: hidden;
        padding: 0 8px 40px 0px;
    }

    .circle {
        width: 98%;
        margin-top: 50px;
        transform: scale(1.5);
        margin-left: 31px;
    }

    .animationWrapper {
        margin-right: 5px;
    }
}

@media (orientation: portrait) and (max-height: 560px) {
    .circle {
        width: 42%;
        margin-top: 40px;
        margin-left: 20px;
    }
}


@media (max-width: 1080px) and (orientation: portrait) {

    .circle {
        width: 100%;
        height: 100%;
    }

    .mainText {
        max-width: 270px;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}
