:root{

    --element-color: rgb(2, 19, 9);
    --background-color: rgb(240, 236, 226);
    --offset1: 25px;
    --rotateX: 10deg;
    --edge: 100px;
    --face-offset: 14.5px;
    
    --border-width: 2px;
}

body {
    /* width: 100%; */
    
    background-color: var(--background-color);
    color: var(--element-color);
    font-family: 'iA Writer Duo', 'Courier New', Courier, monospace;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.8rem;
    padding: 1rem;
    perspective: 1000px;
    perspective-origin: 50% 50%;
}

.hero {
    width: 35ch;
}

.scroll-rotate {
    transform-style: preserve-3d;
}

.viewport{
    height: 10rem;
    width: 100hw;
    transform-style: preserve-3d;
    animation: rotate 32s infinite linear;
    transform-origin: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -3rem;
    
    
}

@keyframes rotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}


.face{
    position: absolute;
    width: var(--edge);
    height: var(--edge); 
}

.face-1{
    transform: rotateY(0deg) rotateX(19.471deg) translateZ(var(--face-offset));
}
.face-2{
    transform: rotateY(120deg) rotateX(19.471deg)  translateZ(var(--face-offset));
}
.face-3{
    transform: rotateY(240deg) rotateX(19.471deg) translateZ(var(--face-offset));
}

.face-4{
    transform: rotateY(0deg) rotateX(90deg) translate3d(-0px, -18px, -40px);
}

.triangleWrapper{
    width: var(--edge);
    height: var(--edge);
    position: absolute;
    
    padding: 0;
    transform: translateY(48px) rotate(-120deg);
}

.equitriangle {
    width: var(--edge);
    height: var(--edge);
    border-style: solid;
    border-color: var(--element-color);
    border-width: 0 var(--border-width)  var(--border-width) 0;
    
    transform: skewX(30deg) scaleY(0.866);
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 2px;
    
    
}

.equitriangle::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-color: var(--edge-color);
    border-width: var(--border-width) ;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleY(1.155) skewX(-30deg) rotate(30deg) translateX(47%);
    border-radius: 2px;
}

.equitriangle-1::before {
    
}



.equitriangle-2::before {
    
}

.equitriangle-3::before {
    
}







@keyframes rotateCursor {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cursor {
    display: inline-block;
    animation: rotateCursor 2s infinite linear;
}

@keyframes spin {
    0% { content: "/"; }
    25% { content: "-"; }
    50% { content: "\\"; }
    75% { content: "|"; }
    100% { content: "/"; }
}

.spinner::before {
    content: "/";
    animation: spin 1s infinite steps(4, end);
    display: inline-block;
}

.hero, .textblock {
    width: auto;
    font-size: 1.15rem;
}

p.underline {
    text-decoration: underline;
}

a {
    color: var(--element-color);
    transition: all 0.3s;
}

a.noUnderline {
    text-decoration: none;
}

.link-arrow-right, .link-arrow-left {
    display: inline-block;
    transition: transform 0.3s;
}

.link:hover {
    cursor:pointer
}
.link:hover .link-arrow-right {
    transform: translateX(10px);
}

.link:hover .link-arrow-left {
    transform: translateX(-10px);
}

.section-header {
    font-variant-caps: all-small-caps;
    color: var(--blue);
    font-family: 'iA Writer Duo', 'Courier New', Courier, monospace;
    font-weight: 700;
}

@keyframes animateLogo {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
    
}

.logoText {
    display: inline-block;
    font-family: 'iA Writer Duo Bold', 'Courier New', Courier, monospace;
    font-weight: 700;
    color: transparent;
    background-image: linear-gradient(120deg, 
    #c30749 0%, 
    #791dea 50%, 
    #0ad9ac 100%);
    background-clip: text;
    background-size: 800%;
    background-position: left;

    animation: animateLogo 10s infinite alternate;
}

strong {
    font-weight: 700;
    color:black
}


/* Fonts */
  @font-face {
    font-family: 'iA Writer Duo';
    src: url('fonts/iAWriterDuoS-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
  }

  @font-face {
    font-family: 'iA Writer Duo Bold';
    src: url('fonts/iAWriterDuoS-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
  }

.ascii{
    line-height: 1rem;
}

.edge {
    position: absolute;
    background-color: darkslategray;
    width: 2px;
    transform-origin: 0 0;
    left: 150px;
    top: 150px;
}

.edge-1-2 {
    height: 173.2px;
    transform: translate3d(0, -117.10125px, 0) rotateZ(60deg) rotateY(-30deg);
}

.edge-1-3 {
    height: 173.2px;
    transform: translate3d(0, -117.10125px, 0) rotateZ(-60deg) rotateY(30deg);
}

.edge-1-4 {
    height: 173.2px;
    transform: translate3d(0, -117.10125px, 0) rotateX(30deg);
}

.edge-2-3 {
    height: 173.2px;
    transform: translate3d(106.06605px, 39.03375px, 67.70625px) rotateZ(60deg) rotateY(180deg);
}

.edge-2-4 {
    height: 173.2px;
    transform: translate3d(106.06605px, 39.03375px, 67.70625px) rotateZ(-60deg) rotateY(-30deg);
}

.edge-3-4 {
    height: 173.2px;
    transform: translate3d(-106.06605px, 39.03375px, 67.70625px) rotateZ(60deg) rotateY(30deg);
}

.dotted-lines{
    border-top: 2px dotted;
    border-bottom: 2px dotted;
    border-color: var(--element-color);
}

.btn{
    border: 2px var(--element-color) solid;
    height: 2.4rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:6px;
}

.btn:hover,
.btn:active {
    background-color: var(--element-color);
    color: var(--background-color);
}

.btn:hover a,
.btn:active a {
    color: var(--background-color);
}

/* Consolidated Media Queries */
@media (max-width: 425px) {
    body {
        margin:0;
        padding: 1rem;
        width: 100%;
        font-size: 1rem;
        line-height: 1.6rem;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* .scroll-rotate {
        animation: rotateXMobile both;
        animation-timeline: view();
    } */



    @keyframes rotateXMobile {
        40% {
            transform: rotateX(0deg);
        }
        100% {
            transform: rotateX(540deg);
        }
    }
}

@media (min-width: 768px) {
    :root {
        --border-width: 2px;
    }

    body {
        width: 38ch;
        font-size: 1.15rem;
        line-height: 1.8rem;
    }

    

    .textblock {
        width: 80ch;
    }

    

    .scroll-rotate {
        animation: rotateXOnScroll both;
        animation-timeline: view();
    }

    @keyframes rotateXOnScroll {
        from {
            transform: rotateX(0deg);
        }
        to {
            transform: rotateX(720deg);
        }
    }
}

.more-companies {
    display: none;
}

.toggle-companies:checked ~ .more-companies {
    display: inline;
}

.show-more {
    cursor: pointer;
    text-decoration: underline;
}

.toggle-companies {
    display: none;
}

.toggle-companies:checked ~ .show-more {
    display: none;
}

@keyframes animateLogo {
    0% {
        background-position: left;
    }
    100% {
        background-position: right;
    }
}

.animated-logo {
    -webkit-mask: url('assets/Scope.svg') no-repeat center;
    mask: url('assets/Scope.svg') no-repeat center;
    -webkit-mask-composite: destination-out;
    mask-composite: subtract;
    background-image: linear-gradient(120deg, 
        #068b80 0%, 
        #025163 80%, 
        #034872 100%);
    background-size: 800%;
    background-position: left;
    animation: animateLogo 10s infinite alternate;
    width: 100px;
    height: 100px;
    display: block;
}





