/* importing fonts that the website uses 
 * these fonts were designed by Rasmus Andersson, under the Open Font License
 * obtained from https://fonts.google.com/specimen/Inter
 */
@font-face {
    font-family: "Inter Regular";
    src: url("https://cdn.glitch.global/b9deaab0-f4de-4631-979d-2204d0cf891f/Inter-Regular.ttf?v=1669620555058");
}

@font-face {
    font-family: "Inter Bold";
    src: url("https://cdn.glitch.global/b9deaab0-f4de-4631-979d-2204d0cf891f/Inter-Bold.ttf?v=1669620536280");
}

@font-face {
    font-family: "Poppins SemiBold";
    src: url("https://cdn.glitch.global/b9deaab0-f4de-4631-979d-2204d0cf891f/Poppins-SemiBold.ttf?v=1670394265995");
}

@font-face {
    font-family: "Righteous";
    src: url("https://cdn.glitch.global/b9deaab0-f4de-4631-979d-2204d0cf891f/Righteous-Regular.ttf?v=1670997278488");
}

@font-face {
    font-family: "Darker Grotesque";
    src: url("DarkerGrotesque-Regular.ttf");
}

@font-face {
    font-family: "Darker Grotesque Bold";
    src: url("DarkerGrotesque-Bold.ttf");
}


/** CSS Reset **/

*, *::before, *::after {
    box-sizing: border-box;
}
* {
    margin: 0;
}
html, body {
    height: 100%;
}
body {
    -webkit-font-smoothing: antialiased; /* override sub-pixel antialiasing on MacOS */
}
input, button, textarea, select {
    font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: calc(1em + 0.5rem);
}
p {
    hyphens: auto;
}


body {
    /* custom properties for common values */
    --font-reg: "Darker Grotesque", "Inter Regular", 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-bold: "Darker Grotesque Bold", "Inter Bold", 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-header: "Poppins SemiBold", 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-title: "Righteous", 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --offwhite: #F2F2F2;
    --light: #DCE2F9;
    --dark: rgb(0, 0, 0); /* --dark: #001524; */
    --accent: #15616D;
    
    margin: 0;
    padding: 0;
    font-family: var(--font-reg);
    font-size: 1.5rem;
    background-color: var(--dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-bold);
    margin-bottom: 1rem;
}
h1 {
    font-size: 4rem;
    padding-top: 4rem;
}
h2 {
    font-size: 3rem;
}
@media screen and (min-width: 900px) {
    h1 {
        font-size: 5rem;
    }
    h2 {
        font-size: 4rem;
    }
    body {
        font-size: 1.8rem;
    }
}


/** color schemes **/

.dark {
    background-color: var(--dark);
    color: var(--offwhite);
}

.light {
    background-color: var(--light);
    color: var(--dark);
}




/** custom element classes **/

article {
    padding-inline: 20px;
}
.full {
    width: auto;
    height: 100vh;
}
.page-container {
    position: relative;
    overflow: auto;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}
.page {
    width: auto;
    height: inherit;
    margin-block: -1px; /* fix strange border visible on mobile devices */
}
.page:nth-last-child(-n+2) {
    padding-bottom: 0;
    height: 90vh; /* leave room at bottom for footer to appear */
    /* min-height: 90vh;   
	height: fit-content; */
}
@media screen and (min-width: 900px) {
    .page {
        scroll-snap-align: start;
    }
}

.footer {
    scroll-snap-align: end;
}
.centered {
    text-align: center;
    padding-top: 10vh;
}
.left {
    text-align: center;
    padding-top: 10vh;
}

@media screen and (min-width: 900px) {
    .page {
        margin-block: 0;
    }
    .centered {
        position: relative;
        top: 50%;
        transform: translateY(-50%);
        padding-top: 0px;
    }
}
/* deprecated */
.sec {
    padding: 7em 1rem 9em 1rem;
}
@media screen and (min-width: 900px) {
    .sec {
        padding: 3em 10% 0em 10%;
    }
}

.desc {
    margin-inline: 10%;
    text-align: center;
    position: relative;
    top: 40%;
    transform: translateY(-50%);
}
/* end deprecated*/
.left {
    text-align: left;
    position: relative;
    margin-left: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.btn {
    display: inline-block;
    background-color: hsl(170,71%,40%);
    border-radius: 10px;
    color: var(--offwhite);
    font-size: 1.2rem;
    padding: 10px;
    transition: all 75ms ease-in;
}

.btn:hover {
    background-color: hsl(170,71%,56%);
    cursor: pointer;
}

.btn:active {
    background-color: hsl(170,71%,46%);
    cursor: pointer;
}
.connect.btn{
    padding:5px 10px;
    font-size:.8rem;
    margin-inline: 10px;
    border: none;
}



/** Scrollbar **/

.custom-scrollbar {
    --scrollbar-foreground: #333333;
    --scrollbar-background: #999999;
    /* Foreground, Background */
    scrollbar-color: var(--scrollbar-foreground) var(--scrollbar-background);
}
.custom-scrollbar::-webkit-scrollbar {
    width: 5px; /* Mostly for vertical scrollbars */
    height: 10px; /* Mostly for horizontal scrollbars */
}
@media screen and (min-width: 900px) {
    .custom-scrollbar::-webkit-scrollbar {
        width: 15px; 
        height: 15px;
    }
}
.custom-scrollbar::-webkit-scrollbar-thumb { /* Foreground */
    background: var(--scrollbar-foreground);
}
.custom-scrollbar::-webkit-scrollbar-track { /* Background */
    background: var(--scrollbar-background);
}


/* effects classes */

/* raised slightly above the page, leaving a shadow. lift higher off the page on mouse hover */
.lift {
    transition: all 125ms ease-in-out;
    box-shadow: 0 4px 4px 0 rgba(0,0,0,0.2);
}
.lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 8px 0 rgba(0,0,0,0.2);
}

/* jump up when mouse hovers over it, used for links to social */
.jump {
    transition: all 150ms ease-in-out;
}
.jump:hover {
    transform: translateY(-6px);
}


/** navbar styling **/

.navbar {
    position: fixed;
    z-index: 400;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 50px;

    background-color: hsl(204,15%,13%);
    /*background: hsl(0, 0%, 100%, 0.1);
    backdrop-filter: blur(8px);*/
    font-family: var(--font-header);
    font-size: 10pt;
    color: var(--offwhite);
    width: 100%;
    justify-content: space-between;
    /*visibility: hidden;*/
}

.navlinks {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding-inline: 0px;
    margin-block: 0px;
    /*-webkit-font-smoothing: antialiased;*/
}

#logo {
    position: fixed;
    top: 0px;
    left: 15px;
    width: auto;
}

#menu {
    position: absolute;
    top: 50px;
    right: -300px;
    /*position: absolute;
    top: 200px;
    width: 300px;
    margin: -100px 0 0 -50px;
    padding: 50px;
    padding-top: 125px;*/
    
    background-color: hsl(204,15%,13%);
    list-style-type: none;
    transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu .navitem {
    width:100%;
}

#menu.opened
{
    right: 0;
}

.navitem {
    flex: 0 0 auto;
    height: 100%;
    transition: background-color 120ms ease-out;
}

.navitem:hover {
    background-color: hsl(204,15%,23%);
}

.navitem a {
    text-decoration: none;
    color: var(--offwhite);
    padding: 0 15px;
    display: inline-block;
    align-items: center;
    vertical-align: middle;
    line-height: 50px;
    transition: color 250ms ease-in-out;   
}

#menu .navitem a {
    width: 10rem;
}


/** hamburger button **/
#pressed {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    right: -5px;
    cursor: pointer;
    z-index: -420; /* and place it over the hamburger */
    -webkit-touch-callout: none;
}
.line {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    
    background: #cdcdcd;
    border-radius: 3px;
    
    z-index: 401;
  
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}
.top .line {
    transform-origin: 0% 0%;
}
.bot .line {
    transform-origin: 0% 100%;
}
#hamburger {
    position: fixed;
    top: 7px;
    right: 20px;
    height: 25px;
    width: 33px;
    padding: 7px 5px 3px 5px;
    cursor: pointer;
    z-index: 402;
}
/* transform all the slices of hamburger into an X... */
#hamburger.active .top
{
    opacity: 1;
    transform: rotate(45deg) translate(2px, -1px);
}
/* ...but hide the middle one */
#hamburger.active .mid
{
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
    background: #232323;
}

/* turn last one the opposite direction */
#hamburger.active .bot
{
    transform: rotate(-45deg) translate(0, -1px);
}

/* footer styling */

footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    height: 6rem;
    bottom: 0px;
}

footer a {
    color: var(--offwhite);
}

footer li {
    margin: 15px;
    font-size: 1rem;
}

/* targeting a desktop browser with at least 900px */
@media screen and (min-width: 900px) {
    .navbar {
        background-image: linear-gradient(to bottom, rgb(0 0 0 / 80%), rgba(0, 0, 0, 0) 50%);
        background-color: hsla(204,15%,13%, 0);
    }
    .navbar, .navlinks {
        flex-direction: row;
        align-items: center;
    }
    #menu {
        visibility: visible;
        margin-right: 30px;
        right: 0px;
        top: 0px;
        background-color: hsla(204,15%,13%, 0);
    }
    #menu {
        position: absolute;
    }
    #hamburger {
        visibility: hidden;
    }

    #menu .navitem {
        width: auto;
        position: relative;
    }
    .navitem {
        opacity: .6;
        transition: opacity 250ms ease-in;
    }
    .navitem a {
        opacity: 1;
    }
    .navitem a:hover, .navitem.selected a {
        color: var(--offwhite);
    }
    .navitem:hover, .navitem.selected {
        background-color: hsla(204,15%,23%, 0);
        opacity: 1;
    }

    #menu .navitem a {
        width: auto;
    }

    .navitem a:after {    
        background: none repeat scroll 0 0 transparent;
        bottom: 5px;
        content: "";
        display: block;
        height: 2px;
        left: 50%;
        position: absolute;
        background: #fff;
        transition: width 0.3s ease 0s, left 0.3s ease 0s;
        width: 0;
    }
    .navitem a:hover:after { 
        width: 100%; 
        left: 0; 
    }
}

#scroll-notif {
    position: fixed;
    bottom: 2rem;
    color: var(--offwhite);
    text-align: center;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    animation: floating 3s ease-in-out infinite;
    transition: opacity 500ms ease-in-out;
}
@media screen and (min-width: 900px) {
    #scroll-notif {
        opacity: 1;
    }
}

@keyframes floating {
    0%   { transform: translateX(-50%) translateY(0px); }
    50%  { transform: translateX(-50%) translateY(-15px); }
    100% { transform: translateX(-50%) translateY(0px); }
}

#scroll-notif.hidden {
    opacity: 0;
    z-index: -500;
}

.iconbtn {
    display: inline-block;
    color: var(--offwhite);
    opacity: .6;
    margin-right: .5rem;
}

.iconbtn a {
    color: var(--offwhite);
}

.iconbtn:hover {
    opacity: 1;
}

.flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}