@font-face {
    font-family: cfour;
    src: url(/shared-resources/fonts/Cfour.otf);
}

@font-face {
    font-family: MTYPE;
    src: url(/shared-resources/fonts/moderntype.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000000;
    overflow-x: hidden;
}

nav {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 998;
    background-color: #000000;
}

.sidebar {
    display: none;
    position: fixed;
    top: -100vh;
    height: 100vh;
    width: 100%;
    background-color: #000000;
    transition: top 0.3s ease;
    z-index: 999;
}

.menuButton {
    display: none;
}

nav ul{
    height: 70px;
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-inline-start: 0px;
    margin: 0 0;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
    padding-right: 0rem;
}

nav li.brand {
  display: flex;
  height: 100%;
  margin-right: auto;
  overflow: visible;
  flex: 0 0 auto;
  position: absolute;
  left: 0;
  top: 0;
}

#first-element {
    margin-right: 0;
    margin-left: 0px;
    font-weight: bolder;
    color: #F6F4D1;
    font-family: cfour; 
    font-size: 2rem;
    padding: 0 1rem;
}

#first-element:hover {
    color: #ff0000;
}

nav a {
    font-family: 'MTYPE';
    font-weight: bolder;
    font-size: large;
    height: 100%;
    padding-right: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #F6F4D1;
    transition: color 0.2s ease;
}

nav li:hover a {
    color: #ff0000;
}

nav li:hover .cross {
    background-color: #F6F4D1;
    transform: rotate(90deg);
}

.cross {
    display: inline-block;
    height: 18px;
    width: 18px;
    padding-right: 0.5rem;
    padding-left: 2rem;
    background-color: #ff0000;
    mask: url("./textures/cross.png") center / contain no-repeat;
    -webkit-mask: url("./textures/cross.png") center / contain no-repeat;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

nav #accent {
    width: 350px;
    max-width: 350px;
    height: 100%;
    background: #7eff00;
    mask: 
        url("./assets/swirl.png") center / 100% 100% no-repeat,
        linear-gradient(90deg, black 0%, rgba(209, 63, 61, 0.5) 65%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect,
        url("./assets/swirl.png") center / 100% 100% no-repeat,f
        linear-gradient(90deg, black 0%, rgba(209, 63, 61, 0.5) 65%, transparent 100%);
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    pointer-events: none;
    position: relative;
}

@media(max-width: 1100px) {
    .hideOnMobile {
        display: none !important;
    }
    .menuButton {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
        height: 100%;
        padding-right: 0.5rem;
        padding-left: 4rem;
        background: 
            linear-gradient(
            -90deg,
            #ff0000 0%,
            #ff0000 75%,
            transparent 100%
        );
    }
    nav a {
        font-size: 1.5rem;
    }
    .sidebar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 1rem;
        padding: 0;
    }
    .sidebar ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        gap: 1rem;
    }
    .sidebar li {
        background-color: #d13f3d;
        height: 100px;
        color: #030109;
        align-self: center;
        width: 80%;
        justify-content: center;
        border-radius: 10px;
        margin-left: auto;
        margin-right: auto;
        padding: 0;
    }
    .sidebar li a {
        align-items: center;
        padding: 0;
        border-radius: 50%;
        height: 100%;   
        width: 100%;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    .sidebar li:first-child{
        width: 15%;
        height: 9%;
    }
    .header{
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .header h1 span {
        font-size: 2.5rem;
    }
    .tagline {
        margin-top: -2.5rem !important; 
    }
}

h2 {
    color: #F6F4D1;
    font-family: 'MTYPE';
}

.tagline {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: fit-content;
    font-family: 'MTYPE';
    margin-top: -7rem;
    color: #F6F4D1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    border-color: #ff0000;
    border-width: 5px;
    border-radius: 8px;
}

.grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
    padding-bottom: 2rem;
    column-gap: 1rem;
    row-gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    min-height: 200px;
    width: 27vw;
    height: fit-content;
    border: 1px solid #403e3a;
    background: #000000;
    z-index: 2;
    text-align: center;
    align-items: center;
    justify-items: center;
    border-color: #ff0000;
    border-width: 5px;
    border-radius: 8px;;
    row-gap: 1rem;
}

.card h2 {
    margin: 2.5vw auto 0 auto;
    color: #F6F4D1;
    font-family: 'MTYPE';
    font-size: 2.5rem;
}

.card button {
    margin: 0 auto 3vw auto;
    width: 10rem;
    min-height: 4rem;
    height: 4rem;
    background-color: #F6F4D1;
    border: none;
    cursor: pointer;
    border-radius: 15px;
    font-family: "MTYPE";
    font-size: 1.5rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.text {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.card button:hover {
    background-color: #ff0000;
    color: #F6F4D1;
}

.card p {
    margin: auto auto;
    font-family: "MTYPE";
    color: #F6F4D1;
}

.mobile {
    display: none;
    margin-top: 6rem;
    margin-bottom: 4rem;
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.mobile h1 {
    margin-top: rem;
    font-family: 'MTYPE';
    color: #F6F4D1;
    font-size: 3.5rem;
}

.mobile p {
    font-family: 'MTYPE';
    color: #F6F4D1;
    font-size: 1rem;
}

canvas {
    z-index: 99;
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0) 100%
    );
    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,1) 80%,
        rgba(0,0,0,0) 100%
    );
}