body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
}

h1 {
    font-size: 35px;
    font-weight: bold;
}

h2 {
    font-size: 20px;
    font-weight: bold;
}

p { 
    font-size: 15px;
}

html {
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    display: grid;
    grid-template-columns: 100px repeat(3, 1fr) 50px;
    grid-template-areas: ". left center right .";
    column-gap: 30px;

    height: 100%;
}

.container > * {
    position: relative;
    width: 100%;
}

.container-left {
    grid-area: left;
}

.container-left > * {
    margin: 40px 0;
}

.container-center {
    grid-area: center;
}

.container-right {
    grid-area: right;
}

/* Cards */
.card {
    border-radius: 8px;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 30px;
    box-shadow: inset 0px 3px 35px var(--box-shadow-color), 0px 3px 6px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: scale 0.2s ease-in;
    scale: 1.0;
}

.card:hover {
    scale: 1.05;
}

.card-body {
    padding: 10px 20px;
}

/* Card List */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-list-item {
    display: flex;
    gap: 8px;
}

.card-list-item-icon {
    height: 50px;
    aspect-ratio: 1;
    border-radius: 8px;
    float: left;
    flex: 0;
}



.card-list-item-details {
    flex: 1;
}

.card-list-item-details > * {
    margin: 0 0 4px 0;
}

.card-list-item-title {
    font-weight: bold;
}

/* Tags */
.tag-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.tag-item {
    padding: 5px 10px;
    background-color: green;
    border-radius: 5px;
}


.tag-green {
    color: #485E4D;
    background-color: #22F059;
}


/* Under review */
.under-review {
    background-color: #FCEEDC;
    text-align: center;
    padding: 50px 30px;
    /* height: 90%; */
    border-radius: 8px;
}

/* Image Gallery */
.showcase-image {
    height: 66%;
}
.showcase-image, .showcase-image > img {
    width: 100%;
}

.showcase-image > img {
    scale: 1.5;
    position: relative;
    z-index: -1;

    opacity: 0;
    animation: 0.8s linear 0.5s 1 imageAppear;
    animation-fill-mode: forwards;
}



/* Specific Cards */
.card-overflow-top {
    position: relative;
    top: -50px;
    max-height: 50%;
    display: flex;

    transform: translateX(150%);
    animation: 0.8s linear 0.5s 1 slideInFromRight;
    animation-fill-mode: forwards;
}

.card-overflow-top > .card-body {
    height: calc(100% - 40px);
    margin-top: 40px;
}

.card-no-overflow-top {
    height: 65%;
    transform: translateY(-110%);
    animation: 0.8s linear 1s 1 slideInFromTop;
    animation-fill-mode: forwards;
}

.card-overflow-bottom {
    height: 35%;

    transform: translateY(100%);
    animation: 0.8s linear 0.2s 1 slideInFromBottom;
    animation-fill-mode: forwards;
}


/* Card animations */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-110%);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(150%);
    }
    100% {
        transform: translateX(0);
    }
}


@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Animate appearing image */
@keyframes imageAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/*  */
.research-tag {
    color: red;
    font-weight: bold;
}


/* Card coloring */
.card-green {
    background-color: #B6F0C5;
    color: #485E4D;
    --box-shadow-color: rgba(25, 240, 81, 0.51);
}

.card-orange {
    background-color: #FFC27D;
    color: #785D3C;
    --box-shadow-color: rgba(252, 142, 8, 0.82);
}

.card-blue {
    background-color: #D9F5FF;
    color: #3E5B66;
    --box-shadow-color: rgba(43, 199, 255, 0.39);
}








@media only screen and (min-width: 20px) {
  /* ... */
  
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p, .tag-item, .under-review { 
     font-size: 1rem;
    }

  .container > * {
    margin: 1rem 0;
  }


}

@media only screen and (min-width: 680px) {
  /* ... */
  
  h1 {
    font-size: 35px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 20px;
  }

  p, .tag-item, .under-review { 
     font-size: 20px;
    }

}

@media only screen and (min-width: 1060px) {
    h1 {
        font-size: 35px;
        font-weight: bold;
    }

    h2 {
        font-size: 20px;
        font-weight: bold;
    }

    p, .tag-item, .under-review { 
        font-size: 15px;
    }
}



@media only screen and (max-width: 1060px) {
.showcase-image {
    display: none;
  }

  .container  {
    display: block;
    padding: 1em;
    margin-bottom: 2em;
    height: 100%;
    
  }

  .container > *, .container-center > * {
    margin: 2rem 0;
  }

  .container-left > * {
    margin: 1rem 0;
  }

  .card {
    animation: none;
    position: relative;
    top: 0;
    left: 0;
    height: auto;
    background: none;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .card:hover {
    scale: 1.0;
  }

  .card-body {
        padding-left: 0;
        padding-right: 0;
        margin: 0;
  }

  .card-overflow-top > .card-body {
    margin-top: 0;
  }

  body {
    overflow-y: scroll;
    height: 100vh;
  }


}