html 
{
    min-width: 720px;
}

body, html 
{
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: rgb(31, 31, 31);
    scroll-behavior: smooth;
}

body
{
    color:antiquewhite;
    font-family: "Jomolhari", serif;
    font-weight: 400;
    font-style: normal;
    scrollbar-width: 0.2rem;
    scrollbar-color: brown;
}

p, ul, img, li
{
    margin: 0;
    padding: 0;
}

/*#grain > * { position:relative; }*/
  
#frame 
{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.emblem
{
    background-image: url('images/Emblem.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: contain;
    height: 17vh;
    width: 100%;
}

#logo
{
    width: 30vw;
    max-height: 60%;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainHeader 
{
    transition: all 0.3s ease;
    background: transparent;
    height: 25vh;
    padding-top: 5vh;
}

#mainHeader.scrolled
{
    background-color: black;
    height: 16vh;
    padding-top: 0;
}

#mainHeader.scrolled ul 
{
    font-size: 1vw;
}

header ul
{
    max-height: 33%;
    list-style-type: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    /*margin: 27vh 0 0 0;*/
    padding: 0;
    font-size: clamp(0.5rem, 2vw, 1.2rem);
    letter-spacing: 0.3rem;
    display: flex;
    justify-content: center;
}

header ul li
{
    transition: all 0.3s ease;
    display: inline;
    margin-left: 1.3vw;
}

header ul li:first-child
{
    margin: 0;
}

#mainHeader.scrolled ul li
{
    margin-left: 0.2vw;
}

main
{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    image-rendering: pixelated;
}

.background-scroll 
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    display: inline-block;
}

.parallax 
{
    position: absolute;
    width: 100%;
    height: 80vh;
    transition: transform 0.05s linear;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
  
.parallax-layer1 
{
    bottom:0;
}
  
.parallax-layer2 
{
    bottom:50px;
}

.main-content
{
    min-height: 100vh;
}

.intro 
{
    width: 100%;
    background-image: 
        url('images/LeftSide.svg'),
        url('images/RightSide.svg'),
        url('images/Bottom.svg');
    background-position: 
        left top,
        right top,
        bottom left;
    background-repeat: 
        no-repeat,
        no-repeat,
        repeat-x;
    background-size: 
        auto 100%,
        auto 100%,
        auto 10%;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.intro .content
{
    width: 30vw;
    overflow-y: hidden;
    padding-top: 38vh;
    height: 52vh;
}

.portfolio
{
    width: 100%;
    margin-top:-1px;
    background-color: rgb(31, 31, 31);
}

.portfolio .content
{
    margin: 17vh 20vw 0 20vw;
    display: flex;
    flex-direction: row;
}

.horizontalLine {
    height: 10vh;
    width: auto;
    padding-bottom: 0;
}


.portfolio-column {
  flex: 1;
  max-width: 460px;
}
.portfolio-column:first-child
{
    margin-right: 2rem;
}

.portfolio-column h2 {
  font-size: 2rem;
  color: #eee;
  margin-bottom: 2rem;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.portfolio-item {
  margin-bottom: 2rem;
  overflow: hidden;
  transition: max-height 0.5s ease, box-shadow 0.3s;
  max-height: 400px;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.6);
}

.portfolio-item * {
    margin: 0 0.5rem;
  }

.portfolio-item:hover {
  max-height: 800px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.game-header-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

span.align-right {
    display: flex;
    flex-direction: row;
    justify-content:right;
}

.portfolio-item h3 {
  font-size: 1.5rem;
  color: #ddd;
}

.portfolio-item p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #aaa;
}

.portfolio-item a {
  font-size: 0.9rem;
  color: #c00;
  text-decoration: none;
}

.portfolio-item a:hover {
  text-decoration: underline;
}

.extra-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.extra-images img {
  width: 30%;
  border-radius: 1;
  object-fit: cover;
}

.portfolio-item:hover .extra-images {
  opacity: 1;
}

.tags {
  margin-bottom: 0.5rem;
}

.tags span {
  background-color: #222;
  border: 1px solid #444;
  color: #888;
  padding: 0.2rem 0.5rem;
  margin-right: 0.4rem;
  font-size: 0.8rem;
  border-radius: 4px;
  display: inline-block;
}

.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #111;
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid #444;
  width: 60%;
  color: #ccc;
  border-radius: 1px;
  position: relative;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-content h2 {
    border: 0;
    text-align: center;
}

p.modal-description {
    font-style: italic;
    padding: 0.8rem;
    text-align: center;
    margin-bottom: 2rem;
    border-top: 2px solid #444;
    border-bottom: 2px solid #444;
}

.modal-content .story-content {
    font-family: sans-serif;
    line-height: 1.5rem;
}

.story-content:not(:first-child) {
    margin-top: 1.3rem;
}

.modal-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.close {
  color: #888;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.close:hover {
  color: #fff;
}