:root {
    --main-bg-grad: linear-gradient(155deg, rgb(14, 6, 42), rgb(1, 84, 61));
    --main-bg-clr: rgb(14, 6, 42);
    --card-bg: rgb(124, 124, 124);
    --accent: rgb(0, 128, 92);
    --text-clr: rgb(231, 237, 241);
    --text-clr-dark: rgb(0 0 0 / 0.8);
    --border-rad: 0.3rem;
    --box-shadow: 0 0.25 1rem rgb(0 0 0 / .5);
    /* fonts */
    --font-sz-main: clamp(0.8rem, 0.7rem + 0.65vw, 1.5rem);
    --font-sz-cards: clamp(0.8rem, 0.2rem + 0.65vw, 1rem);
    --font-primary: 'Roboto', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-accent: 'Kdam Thmor Pro', sans-serif;
    
    /* motion color racing */
    --mcr-yellow: rgb(226, 192, 68);
    --mcr-blue: rgb(31, 32, 65);
    --mcr-cyan: rgb(81, 163, 163);
    --mcr-red: rgb(159, 52, 45);
    --mcr-grad: linear-gradient(50deg, var(--mcr-red), var(--mcr-yellow), var(--mcr-cyan), var(--mcr-blue));
}

body {
    width: 85%;
    margin: 0 auto;
    background-color: var(--mcr-blue);
    background-image: var(--main-bg-grad);
    background-attachment: fixed;
    color: var(--text-clr) ;
    font-family: var(--font-primary);
    font-size: var(--font-sz-main);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

body
  

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 1,
  'wght' 200,
  'GRAD' 0,
  'opsz' 24
}

a {
    text-decoration: none!important;
    color: var(--text-clr)
}

/* .header, .footer {
    background-color: var(--accent);
}

.header {
    position: fixed;
    border-radius: 1rem;
    top: 10px;
    min-width: 85%;
    display: flex;
    justify-content: right;
    align-items: center;
}

.header img {
    float: right;
    border-radius: 45%;
    border: 2px solid var(--card-bg);
    margin: 3px;
    height: 55px;
    width: auto;
}

.header h1 {
    margin: 0px 15px;
    font-size: 2rem;
    font-family: var(--font-accent);
}


main {
    max-height: 75vh;
    margin-top: 80px;
}


main > h2, p {
    padding: 0px;
} */

/* .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 15px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    height: 46vmin;
    scroll-snap-type: y mandatory;
    overflow: auto!important;
    overflow-y: auto;
} */

/* .cards .card {
    background-color: var(--card-bg);
    padding: 15px;
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    height: 45vmin;
    scroll-snap-align: start;
    font-size: var(--font-sz);
    overflow-y: auto;
    scrollbar-width: thin!important;
    --scroller-color: 0, 0%;
    --scroller-color-lightness: 80%;
    --scroller-hover-factor: 0.8;
    --scroller-thumb: hsl(var(--scroller-color), var(--scroller-color-lightness));
    /* Replicate hover for webkit */
    /* --scroller-thumb-hover: hsl(
      var(--scroller-color),
      calc(var(--scroller-color-lightness) * var(--scroller-hover-factor))
    );
    --scroller-background: transparent;
    scrollbar-color: var(--scroller-thumb) var(--scroller-background);
}  */

main {
    display: flex;
    background-color: var(--mcr-yellow);
    background-image: var(--mcr-grad);
    /* background-attachment: fixed; */
    margin: 0.5rem 0 0 0;
    padding: 1rem;
    border-radius: var(--border-rad);
}


.about {
    background: rgb(0 0 0 / .2);
    padding: 1rem;
    border-radius: var(--border-rad);
    /* text-shadow: 1px 1px rgb(0 0 0 / .7); */
}

.about__pic {
    align-self: start;
    margin: 0 0 0 1rem;
    
}

.icons {
    text-align: center;
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
    color: reg(1 1 1 / 0.1);
    text-shadow: 1px 1px rgb(0 0 0 / .2);
}

.about__pic img {
    width: 40rem;
    border-radius: 50%;
    border: 2px solid var(--mcr-yellow);
}

main h1 {
    font-family: var(--font-accent);
}

.scroll {
    display: flex;
    justify-content: center;
    height: 40px;
    position: relative;
    top: 37%;
    line-height: 0.5;
}
.scrollarrow {
    margin: 0;
    font-size: 3rem;
}

.portfolio__header {
    background-color: var(--mcr-yellow);
    background-image: linear-gradient(90deg, var(--mcr-yellow) 60%, var(--mcr-red) 100%);
    margin: 0.8rem 0;
    padding: 0.5rem;
    border-radius: var(--border-rad);
}

.portfolio__header h2 {
    margin: 0;
    font-family: var(--font-accent);
    text-align: right;
}

.portfolio-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}


/* .card .card__description a[href^="https://"]::after, .cards .card a[href^="http://"]::after
{
  content: "";
  width: 1.5vmin;
  height: 1.5vmin;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
} */

.card {
    background: var(--card-bg);
    border-radius: var(--border-rad);
    box-shadow: var(--box-shadow);
    background: var(--text-clr);
    color: var(--text-clr-dark)
}

.spotlight {
}

.card__image {
    height: auto;
    width: 100%;
    margin: auto;
    border: 1px solid var(--mcr-cyan);
    border-radius: var(--border-rad);
    box-shadow: var(--box-shadow);
}

.card__description {
    font-size: var(--font-sz-cards);
}

.card__description a {
    color: var(--text-clr-dark);
}


video {
    width: 100%;
    border: 1px solid var(--mcr-cyan);
    border-radius: var(--border-rad);
}


.portrait video {
    width: 56.25%;
}

.portrait {
    text-align: center;
}

.card__content {
    padding: 1rem;

}

.card__title {
    font-size: 1rem;
    line-height: 1.1;
    /* color: var(--mcr-cyan); */
}

.card h2 {
    font-family: var(--font-accent);
}

.footer {
    /* position: fixed;
    bottom: 0;
    width: 85%; */
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: var(--mcr-yellow);
    background-image: linear-gradient(90deg, var(--mcr-yellow) 0%, var(--mcr-red) 50%, var(--mcr-yellow) 100%);
    margin: 0.8rem 0 0 0;
    padding: 0.5rem;
    border-radius: 0.3rem 0.3rem 0 0;
    font-size: 1rem;
}

.footer .endspace {
    flex-grow: 3;
}


@media only screen and (max-width: 500px) {
    .wrapper {
        height: 100dvh;
        overflow-y: scroll;
        overscroll-behavior-y: contain;
        scroll-snap-type: y mandatory;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .wrapper::-webkit-scrollbar {
        display: none;
    }
    .frontpage {
        height: 100%;
        scroll-snap-align: start;
    }
    main {
        flex-direction: column;
        height: 75%;
        position: relative;
        top: 50%;
	    transform: translateY(-50%);
        margin: auto;
    }
    .scroll {
        top: 22%;
    }
    .portfolio {
        height: 100%;
        overflow-y: scroll;
        scroll-snap-align: start;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .portfolio::-webkit-scrollbar {
        display: none;
    }
    .about__pic {
        margin: 0.5rem auto;
    }
    .about__pic img {
        margin: 0.5rem auto;
        width: 4rem;
        border: 2px solid var(--mcr-cyan);
    }
}

@media only screen and (min-width: 501px)  {
    .wrapper {
        height: 100dvh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .wrapper::-webkit-scrollbar {
        display: none;
    }
    .frontpage {
        height: 100%;
        scroll-snap-align: start;
    }
    main {
        height: 60%;
        position: relative;
        top: 50%;
	    transform: translateY(-50%);
        margin: auto;
    }
    .portfolio {
        height: 100%;
        overflow-y: scroll;
        scroll-snap-align: start;
        margin-top: 1rem;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .portfolio::-webkit-scrollbar {
        display: none;
    }
}

@media only screen and (min-width: 1080px) {
    .about {
        margin-left: 2.5rem;
    }
    .about__pic {
        width: 50rem;
        margin: 0 5rem;
        
    }    
}

/* .cards .card div {
    overflow: scroll;
    --mask: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 1) 0,
        rgba(0, 0, 0, 1) 40%,
        rgba(0, 0, 0, 0) 95%,
        rgba(0, 0, 0, 0) 0
      )
      100% 50% / 100% 100% repeat-x;

    -webkit-mask: var(--mask);
    mask: var(--mask);
} */

/* .cards p {
    padding-bottom: 0;
    margin-bottom: 0;
} */
/* 
@media only screen and (max-width: 600px) {
    
    body {
        font-size: 3vmin;
    }
    main {
        margin-top: 65px;
    }
    .cards {
        display: flex;
        flex-direction: column;
        height: 100vh;
        align-items: center;
    }
    .cards .card {
        height: fit-content;
        overflow-y: unset;
        font-size: 3vmin;
    }
    #scroll {
        display: none;
    }
    .header img {
        height: 40px;
    }
    .footer {
        position: relative;
    }
} */

/* #scroll {
    visibility: hidden;
} */

/* #port-header::after {
    content: ' &#8595 scroll for more';
    visibility: hidden;
} */

/* Hide scrollbar for Chrome, Safari and Opera */
/* .cards::-webkit-scrollbar {
    display: none;
  }

  .cards .card::-webkit-scrollbar {
    width: 8px;
  }
  .cards .card::-webkit-scrollbar-track {
    box-shadow: inset 0 0 4px grey;
    border-radius: 10px;
  }
  .cards .card::-webkit-scrollbar-thumb {
    background: grey;
    border-radius: 10px;
  }
  .cards .card::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
  } */
  

/* .cards:hover + #scroll {
    animation: fadeIn 1s ease-in;
    visibility: visible;
} */

/* @keyframes fadeIn {
    0% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
}
@-webkit-keyframes fadeIn {
    0% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
}
@-moz-keyframes fadeIn {
    0% {
        visibility: hidden;
    }
    100% {
        visibility: visible;
    }
} */


/* #about:hover {
    animation: disappear 1s ease-in;
}

@keyframes disappear {
    0% {
        color: white;
    }
    100% {
        color: red;
    }
}
@-webkit-keyframes disappear {
    0% {
        color: white;
    }
    100% {
        color: red;
    }
}
@-moz-keyframes disappear {
    0% {
        color: white;
    }
    100% {
        color: red;
    }
} */

/* .footer {
    position: fixed;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: .4rem;
    min-width: 85%;
    text-align: center;
    margin-top: 25px;
    max-height: 100px;
    padding: 1px 5px;
    margin: 0px;
    font-size: 0.8hmin;
} */

/* .footer a {
    font-size: 1.5hmin;
    padding: 0;
    margin: 0;
} */
  