body {
    padding-top: 0vh; /* adjust this value to what looks best */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0px;
    padding: 0px;
    scroll-behavior: smooth;
    background-image: 
        linear-gradient(
            rgba(255, 255, 255, 0.5), 
            rgba(255, 255, 255, 0.5)
        ),
        url('/img/games/bloodmaskFinal.jpg');
    background-size: cover;
    background-position: center 30%; /* adjust the second value to move the image up or down */
}


h2 {
    box-sizing: content-box;
    justify-content: space-around;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    text-align: center;
    font-size: 48px;
    color: #000000;
    padding-top: 7vh;
}


h3 {
    text-align: center;
    color: white;
}

#games {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#games > div {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 6em;
    box-sizing: content-box;
}

#games > div > figure {
    position: relative;
    box-sizing: content-box;
}

#games > div > figure > figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.8);
    font-size: 1em;
    font-weight: bold;
    padding: 0em;
    transition: 0.5s;
    opacity: 0;
}

#games > div > figure:hover > figcaption {
    opacity: 1;
}

#nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000; /* ensure the navbar is always on top */
    width: 100%;
    height: 6.6vh;
    background-color: #000000;
    text-align: center;
}
h3 {
    text-align: center;
    color: black;
}

#nav-bar li {
    height: 6vh;
    display: inline-block;
    margin-top: auto;
    font-family: 'Kanit', sans-serif;
    font-size: 26px;
    margin-top: 1.2vh;
    margin-right: 1vw;
}

#nav-bar li a {
    cursor: pointer;
    color: #A62300;
}

#nav-bar li a:hover {
    font-weight: bold;
    text-decoration: none;
    font-size: 28px;
}

#imgcontainer {
    margin-top: 0 !important;
    margin-left: 5vw;
    text-align: center;
    justify-content: center;
}

#portrait {
    display: inline-block;
    vertical-align: top;
    width: 150px; 
    height: 150px; 
    border-radius: 50%;
    margin: 20px 30px 0 0;
}

p {
    font-size: 20px;
    line-height: 1.5;
    color: rgb(0, 0, 0);
    font-weight: bold;
    margin: 0.5em 0;
    max-width: 800px;
    margin: 0.5em auto;
    margin-top: 1em;
  }
  #heading {
    top: 0;
    left: 0;
    width: 100%;
    font-weight: 300;
    font-size: 1.8em;
    margin-bottom: 5;
    background: linear-gradient(-45deg, #000000, #6B1200, #9E1A00, #CF2200);
    height: 20vh; /* Increase the height */
    animation: Gradient 10s ease infinite;
    background-size: 400% 400%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0; /* Add top margin */
}

#cover_page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#title_letters_left {
    text-align: center;
}

#carouselExampleIndicators {
    height: 30vh;
    width: 40vw;
    background-image: linear-gradient(0deg, #FFFFFF, #A62300, #000000);
    border-radius: 25px;
    margin-bottom: 0;
    margin-top: 0;
}

.carousel-item {
    height: 30vh;
    padding: 40px 50px 40px 50px;
}

.carousel-item {
    height: 32vh;
    padding: 0px;
    object-fit: contain;
}
.carousel-indicators li {
    background-color: black;
}

.carousel-indicators .active {
    background-color: black;
}

.carousel-control-next-icon,
.carousel-control-prev-icon {
    background-image: none;
    background-color: black;
}

#backslide {
    margin-top: 3vh;
    margin-left: 22vh;
    height: 40vh;
    width: 30vw;
    align-self: center;
    text-align: center;
    background-image: linear-gradient(-45deg, #ff4040, #FF9073, #ffb657, #3d0000);
    border-radius: 25px;
}

#back {
    padding-left: 10vw;
    padding-right: 10vw;
    padding-top: 13vh;
    text-align: center;
}

.emptydiv1 {
    float: right;
    background-image: linear-gradient(-45deg, #ff4040, #FF9073, #ffb657, #3d0000);
    height: 4px;
    width: 15vw;
    text-align: center;
}

.col-sm-12 {
    padding-left: 0px;
    padding-right: 0px;
}

#page-container {
    position: relative;
    min-height: 100vh;
}

#content-wrap {
    padding-bottom: 2.5rem;
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.5em; /* Reduced padding to make the footer smaller */
    background-color: rgb(255, 255, 255);
    text-decoration-color: #000000;
    display: flex;
    justify-content: center; /* Aligns items horizontally to the center */
    align-items: center; /* Stacks items vertically */
  }

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px; /* Provides even space between each item */
}
.social-icon {
    width: 60px;
    height: auto; 
  }
.personal-info {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 10px;
color: #FFFFFF; /* Change text color to white */
}
.icons {
    display: flex;
    justify-content: center;
    gap: 10px; /* Provides even space between each icon */
}

.game-slot .media {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
    max-height: 80vh;
    margin: auto;
}

.last-slider {
    background-image: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
}

.last-slider .carousel-item {
    padding: 0 !important;
}

.last-slider .carousel-item img {
    object-fit: cover !important;
}
.carousel-control-next-icon,
.carousel-control-prev-icon {
    display: none;
}

.carousel-control-prev {
    justify-content: flex-start;
    padding-left: 15px;
}

.carousel-control-next {
    justify-content: flex-end;
    padding-right: 15px;
}

.carousel-control-prev i,
.carousel-control-next i {
    color: black;
    font-size: 2rem;
}
#current_projects {
    margin-bottom: 80px; 
}

@keyframes Gradient {
    0% {background-position: 0% 50%}
    50% {background-position: 100% 50%}
    100% {background-position: 0% 50%}
}
#carouselGames {
    height: 50vh;
    width: 40vw;
    border-radius: 25px;
    margin-bottom: 0;
    margin-top: 0;
    background: linear-gradient(-45deg, #000000, #6B1200, #9E1A00, #CF2200);
}

#carouselGames .carousel-item {
    height: 50vh;
    padding: 40px 50px 40px 50px;
}

#carouselGames .carousel-item {
    height: 50vh;
    padding: 0px;
}

#carouselGames .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#carouselGames .carousel-indicators li {
    background-color: black;
}

#carouselGames .carousel-indicators .active {
    background-color: black;
}

#carouselGames .carousel-control-next-icon,
#carouselGames .carousel-control-prev-icon {
    background-image: none; 
    background-color: black; 
}
.project {
    width: 100%; 
}
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-start; 
    margin: 0 auto;
    margin-top: 2vh;
    height: auto;
}
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    margin-top: 10vh;
    max-width: 500px;
    max-height: 300px; 
    width: 100%;
    height: auto;
}

#knowledge_tech {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: auto;
    margin-top: 0em;
    margin-bottom: 5em;
    padding: 2em;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.tech-section {
    background: rgba(255, 255, 255, 0.1);
    margin: 1em 0;
    padding: 2em;
    border-radius: 5px;
    width: 100%;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.tech-section::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: linear-gradient(120deg, #000000, #b32400);
    transform: skewX(-10deg) scale(1);
    transition: all .7s ease-in-out;
}

.tech-section:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-section:hover::before {
    transform: skewX(-10deg) scale(0);
}

.section-title {
    font-size: 1.5em;
    margin-bottom: 0.5em;
    color: white;
    z-index: 2;
    position: relative;
}

.section-skills {
    color: white;
    z-index: 2;
    position: relative;
}
