@font-face {
  font-family: 'PortfolioFredoka';
  src: url('assets/font/Fredoka-VariableFont_wdth,wght.ttf') format('truetype');
  font-style: normal;
}


body {
    background-image: url("assets/images/Normal BG.png"), url("assets/images/Basic Stars.png");
    background-position: bottom center, bottom center;
    background-repeat: repeat-x, repeat;   
    background-size: auto;
    image-rendering: pixelated;
}

html, body{
    min-height: 100vh;
    margin: 0;
    padding: 0;
    
    color: white;
    font-family: 'PortfolioFredoka';
}

div.site-header{
    height: 100%;
    pointer-events: none;
}

.banner-image{
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}
ul.navbar{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1000;
    position: sticky;
    top: 0;
    width: 100%;

    background-color: #181a20;
    filter: drop-shadow(-8px 8px 2px rgba(0, 0, 0, 0.5));
}

.navbar li{
    float: left;
}

.navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;


    /*Preventing Text Selection*/
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.navbar li a:hover {
  background-color: #50535e;
  cursor: pointer;
}

.navbar li a:active {
  background-color: #060a13;
}

.grid{
    max-width: calc(320px*3 + 20px*2 + 320px/2);
    margin: 2rem auto;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 20px;
    padding: 0 1rem;
}

button {
    font-family: 'PortfolioFredoka';
}

.project-card{
    all: unset;
    width: 320px;
    min-height: 120px;
    
    padding: 1em;
    margin-bottom: 1em;

    position: relative;
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 1em;
    

    color: #ffffff;
    background-color: #181a20;
    border: 5px solid #2e323b;
    border-radius: 10px;
    
    
    transition: transform 0.2s ease, filter 0.2s ease, border 0.2s ease;
}

.tool{
    background-color: #00000000 !important;
    border-color: #00000000 !important;
}

.tool img{
    background-color: #00000000 !important;
    border-color: #00000000 !important;
    width: 200px !important;
}

#projects-container h3{
    text-align: left;
}
#projects-container h2{
    text-align: center;
}
.project-card:hover{
    transform: scale(1.05);
    border: solid white 5px;
    filter: drop-shadow(-10px 10px 6px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}
.project-card:active{
    transform: scale(.85);
    border: solid white 5px;
    filter: drop-shadow(-10px 10px 6px rgba(0, 0, 0, 0.3));
    cursor: pointer;
}

.project-card img {
    width: 250px;
    height: auto;
    flex-shrink: 0;
    border: solid #70737c 2px;
    border-radius: 10px;
    filter: drop-shadow(-8px 8px 1px rgba(0, 0, 0, .5));
}


.project-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    width: 260px;
}
.project-details p{
    font-size: 16px;
}
.project-details h2{
    font-size: 24px;
}
.project-details *, .project-description-full * {
    margin: 0 0 0.25em 0;
    width: 100%;
}

/* .project-description-full */ a {
  color: #8fd3ff;
  text-decoration: none;
  position: relative;
  padding-bottom: 2px; /* space for underline */
}
/* .project-description-full */ a:active {
  color: rgb(58, 99, 175);
}
/* .project-description-full */ a:active::after {
  background-color: rgb(58, 99, 175);
}
/* .project-description-full */ a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #8fd3ff;
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* .project-description-full */ a:hover::after {
  width: 100%;
}

.project-description-full img{
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border: solid #70737c 2px;
    border-radius: 10px;
    transform: translateX(-2px);
}
.project-wrapper {
    position: relative;
    width: 320px;
}
.project-card,
.project-description-full {
    box-sizing: border-box;
}
.project-description-full {
    filter: drop-shadow(-8px 8px 2px rgba(0, 0, 0, 0.5));
    position: absolute;
    left: 0;
    width: 100%;
    color: #ffffff;
    background-color: #181a20;
    border: 5px solid #2e323b;
    border-radius: 10px;
    color: #ddd;
    z-index: 5;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transform: translateY(0.5em);
    pointer-events: none;
    transition:
        max-height 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.project-wrapper.active .project-description-full {
    opacity: 1;
    max-height: 300px;
    transform: translateY(0);
    pointer-events: auto;
    padding: 1em;
}

.project-wrapper.active.drop-up .project-description-full {
    bottom: 100%;
    top: auto;
    margin-bottom: 0.5em;
}

.project-wrapper.active:not(.drop-up) .project-description-full {
    top: 96%;
    bottom: auto;
    margin-top: 0.5em;
}

p, h1, h2, h3, h4, h5, h6, ul, ol, hr{
    width: 40%;
    margin: 2rem auto;
    text-align: left;
}

p, ul, ol{
    font-size: 24px
}

h1{
    font-size: 64px
}

h2{
    font-size: 48px
}

h3{
    font-size: 32px
}

.tool-list {
    list-style: none;
    padding: 0;
}

.tool-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5em;
}
.bold{
    font-weight: bold;
}
.tool-list img {
    width: 30px;
    height: auto;
    margin-right: 0.5em;
}
hr {
    border: none;
    height: 1px;
    color: white;
    background-color: white;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 35%, rgba(255,255,255,1) 62%, rgba(255,255,255,0) 100%) !important;
}
.reduce-margin{
    margin-bottom: -20px;
}