/* Style the navigation menu */
.topnav {
  overflow: hidden;
  background-color: #333;
  position: relative;
}

/* Hide the links inside the navigation menu (except for logo/home) */
.topnav #myLinks {
  display: none;
}

/* Style navigation menu links */
.topnav a {
  color: white;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  display: block;
}

/* Style the hamburger menu */
.topnav a.icon {
  background: black;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

/* Add a grey background color on mouse-over */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Style the active link (or home/logo) */
.active {
  background-color: #04AA6D;
  color: white;
}


@font-face {
    font-family: space-grotesk;
    src: url(SpaceGrotesk-Medium.ttf);
    font-display: swap;
}

/*this is the good stuff https://www.schemecolor.com/night-sky-color-palette.php*/
html {
    scroll-behavior: smooth;
    height: auto;
    background: linear-gradient(190deg, rgba(7, 11, 52, 1) 0%, rgba(20, 24, 82, 1) 35%, rgba(43, 47, 119, 1) 61%, rgba(72, 52, 117, 1) 73%, rgba(107, 73, 132, 1) 87%, rgba(133, 89, 136, 1) 100%);
}

* {
    transition: 4s;
}

body {
    width: 99vw;
    overflow-x: hidden;
    display: inline-flex;
    height: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
    margin: 0;
}

p,h1 {
    text-align: center;
    font-family: space-grotesk;
    color: white;
    font-size: calc(1vh + 1vw);
    text-decoration: initial;
}
a{
    text-decoration:none;
    max-height: 10vh;
}

h1 {
    z-index: 3;
}

li {
    text-align: left;
    font-family: space-grotesk;
    color: white;
    font-size: calc(1vh + 1vw);
    ;
    align-self: flex-start;
}

.button {
    transition: 0.5s;
    border-radius: 10px;
    width: auto;
    height: auto;
    padding: calc(0.5vh + 0.5vw);
    font-family: space-grotesk;
    color: white;
    background-color: rgb(72, 35, 152);
    border: 1px solid rgba(255, 255, 255, 0.50);
    margin: 1%;
}

.button:hover {
    border-radius: 10px;
    width: auto;
    height: auto;
    padding: calc(0.5vh + 0.5vw);
    font-family: space-grotesk;
    color: rgb(140, 171, 229);
    background-color: rgb(59, 27, 128);
    border: 1px solid rgba(255, 255, 255, 0.50);
    margin: 1%;
    cursor: pointer;
}

.button:active {
    transition: 0.1s;
    border-radius: 10px;
    width: auto;
    height: auto;
    padding: calc(0.5vh + 0.5vw);
    font-family: space-grotesk;
    color: rgb(140, 171, 229);
    background-color: rgb(32, 13, 72);
    border: 1px solid rgba(255, 255, 255, 0.50);
    margin: 1%;
    cursor: pointer;
}


.member{
    display: block;
    justify-content: left;
    /* break-inside: avoid-column; */
    /* page-break-inside: avoid; */
    cursor: pointer;
    min-width: 15vw;
}

.membergrid{
    width: 100%;
    display: grid;
    grid-gap:calc(0.5vh + 0.5vw);;
    grid-auto-rows: min-content;
    grid-template-columns: repeat(4,25fr);
    justify-content: center;
}

/* btw the shit doesn't work if you put this below the media queries */
.membername>p{
    font-size: calc(0.85vh + 0.85vw);
}

@media only screen and (max-aspect-ratio: 99/100) {
    .membergrid {
    grid-template-columns: repeat(3,33fr);

    }

    /* .membername>p {
        font-size: calc(0.75rem + 0.75vw);
    } */
  }
  @media only screen and (max-aspect-ratio: 80/100) {
    .membergrid {
    grid-template-columns: repeat(2,33fr);

    }

    .membername>p {
        font-size: calc(1vh + 1.15vw);

    }
  }
.membername{
    align-self:flex-start;
    display: flex;
    justify-content: left;
    align-items: center;
}

.pfp{
    border-radius: 50%;
        margin: calc(0.5vh + 0.5vw);;
        max-width: 40px;
        max-height: 40px;
}

#projects{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.spacer{
    margin: 2em;
}
.project{
    width: 100%;
    backdrop-filter: blur(10px);
}

#stars {
    top: 0px;
    z-index: 0;
    height: 100%;
    width: 100%;
    display: block;
    position: absolute;
    /*Ember314 and Coolelectronics Mercury Workshop*/
    filter: blur(1.5px);
}

#grid {
    z-index: 2;
    position: static;
    display: inline-flex;
    width: 85%;
    align-items: center;
    flex-direction: column;
}



.box {
    transition: background 0.25s;
    position: static;
    max-width: 50em;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: all;
    border-radius: 15px;
    -moz-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    margin: 2%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 3%;
}

.box:hover {
    position: static;
    max-width: 50em;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: all;
    border-radius: 15px;
    -moz-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    margin: 2%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    padding: 3%;
}

.hiddenbox {
    max-width: 50em;

}

.modal-pfp{
        max-width: 80px;
        max-height: 80px;
}

.modal p{
    font-size: calc(0.8vh + 0.8vw);
}
.modal td,th {
    text-align: center;
    font-family: space-grotesk;
    color: white;
    font-size: calc(0.9vh + 0.9vw);
    padding: 0.7em;
    border: 3px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}
.modal a{
    color: rgba(255, 255, 255, 0.6);
}
.modal table{
    border-collapse: collapse;
}
.modalmembername{
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-inner{
    position: fixed;
    width: 50vw;
    height:fit-content;

    transition: background 0.25s;
    z-index: 3;
    background: #5b5466;
    pointer-events: all;
    border-radius: 15px;
    -moz-box-shadow: 0 0 100px 6vw rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 0 100px 6vw rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 100px 6vw rgba(0, 0, 0, 0.3);

    /* border: 3px solid rgba(255, 255, 255, 0.2); */
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0px;
    padding: 3%;
}
.modal-inner-dumbass-fucking-padding-hack{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
}
@media only screen and (max-aspect-ratio: 3/4) {
    .modal-inner {
        position: fixed;
        width: 100%;
        height: fit-content;
        padding: 0;
        margin: 0;
        left: 0;
        /* right: 0; */
        bottom: 0;
        border-radius:0;
        border-top-left-radius:15px;
        border-top-right-radius:15px;
    }
    .modal-inner-dumbass-fucking-padding-hack{
        /* for some reason padding breaks 100% and there's no way to compensate unless you either use ugly calc shit or make a wrapper */
        padding:6vw;
    }
    .modal p{
        font-size: calc(1.2vh + 1.2vw);
        max-width: 80%;
    }
    .modal h1{
        font-size: calc(2vh + 2vw);
    }

    /* .modalmembername{
        justify-content: space-between;
    } */
    .modal-pfp{
        margin: 15px;
        max-width: 60px;
        max-height: 60px;
}
    .modal td,th {
        max-width: 80%;
        font-size: calc(1.2vh + 1.2vw);

    }

  }

.modal{
    margin-left: auto;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 100;
    display: flex;
    justify-content:center;
    align-items: center;
    pointer-events: none;
    z-index: 3;
}
.modal-effect{
    background-color: rgb(1, 1, 10);
    opacity: 60%;
    pointer-events: all;
}
.modal-blur{
    filter: blur(2.5px);
}

.opacityzero{
    opacity: 0;
}

body.modal-open {
    overflow: hidden;
}

#header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin-top: 5%;
}
#header >img{
    width:127px;
    height:127px;
}

#logo {
    height: calc(5vh + 5vw);
    background-color: rgba(255, 255, 255, 0.25);
    -moz-box-shadow: 0 0 35px 15px rgba(255, 255, 255, 0.4);
    -webkit-box-shadow: 0 0 35px 15px rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 55px 15px rgba(255, 255, 255, 0.4);
    z-index: 3;
}

#footerLogo {
    height: calc(2vh + 2vw);
    align-self: center;
    justify-self: flex-start;
    order: 1;
    margin: 1vw;
}

#brand {
    text-align: center;
    font-family: space-grotesk;
    color: white;
    font-size: calc(1vh + 1vw);
    align-self: center;
    justify-self: flex-start;
    order: 2;
    white-space: nowrap;
}

.footerSpace {
    display: flex;
}

#takedown {
    font-family: space-grotesk;
    color: white;
    font-size: calc(0.75vh + 0.75vw);
    align-self: center;
    margin-right: 5em;
    order: 3;
    white-space: nowrap;
}

#hide {
    margin-left: auto;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: all;
    overflow: hidden;
    z-index: 100;
    background-color: rgb(15, 15, 50);
}

.footer {
    position: static;
    width: 90%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: all;
    border-radius: 15px;
    -moz-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.2);
    margin: 2%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
}
@media only screen and (max-aspect-ratio: 3/4) {
    .footer {
        flex-direction: column;
        /* justify-content: center !important; */
        align-items: center;
        text-align: center;

    }
    #takedown{
        /* display: flex;
        align-items: center;
        justify-content: center;*/
        margin-right: 0;
        margin-bottom: 1em;
        text-align: center;
    }

  }
