/* Google Fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Sixtyfour+Convergence&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Imperial+Script&display=swap');

/* Concept of Color Themes using CSS vars */
:root {
    --header-color: rgba(240, 255, 255, 0.192);
    --nav-link-color: white;
    --nav-link-hover: #2CDBAE;
}
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family:'Courier New', Courier, monospace;
    font-size: 20px;
    line-height: 1.6rem;
    /* text-align: center; */
    background: black;
    color: white;

}
h1 {
    /* font-family: "Sixtyfour Convergence", sans-serif; */
    font-family: "Imperial Script", cursive;
    font-size: 20vh;
    font-weight: normal;
    text-align: center;
    line-height: normal;
    text-shadow: 0 0 16.2px rgba(255, 255, 255, 0.28);
    background: radial-gradient(50% 50% at 50% 50%, #1FC9EE 0%, #2CDBAE 26.21%, #31E197 46.35%, #1C7550 72.92%, #2EA8C2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    background-size: 300% 100%; /* Larger than element */
    background-position: 0% 0%; /* Initial position */
    animation: gradient-shift 2.3s linear infinite alternate;
    position: absolute;
    top: 150px;
    width: 100%;

}
@keyframes gradient-shift {
    0% {
    background-position: 0% 0%;
    }
    100% {
    background-position: 100% 0%; /* Shift to the right */
    }
}

#player {
    border-radius: 12px;
    max-width: 320px;
    position: absolute;
    left: calc(50% - 160px);
    top: 410px;

}
h2, h3, h4 {
    font-family: "Imperial Script", cursive;
    font-weight: normal;
    margin-bottom: 20px;
}

header {
    width: 100%;
    background-color: var(--header-color);
    height: 60px;
    position: fixed;
    z-index: 1;
}
nav ul li {
    display: inline-block;
    margin-right: 20px;
}
nav ul li a {
    font-family: "Imperial Script", cursive;
    /* font-weight: bold; */
    font-size: 1.5em;
    line-height: 2em;
    text-decoration: none;
    color: var(--nav-link-color);

}
nav ul li a:hover {
    color: var(--nav-link-hover);
}

nav {
    width: 100%;
    /* position: relative;
    margin: 0 auto; */
    top:20px;
    text-align: center;
}

#banner {
    height: 100vh;
    background: rgb(0, 0, 0) url(../img/bg-2.png) no-repeat top center;
    background-size: cover;
    text-align: center;
    padding: 30px 0 0;
    background-position: center center;
    opacity: 0.15;
}

#yt-1{
    width: 100%;
    height:400px;
}

#projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;

}
figure {
    background: rgb(240, 240, 240);
    border-radius: 10px;
    padding: 10px;
}

figure img {
    width: 100%;
    cursor: pointer;
}

footer{
    background-color: black;
    color: white;
    min-height: 200px;
    padding: 20px;
    text-align: center;
    font-size: 0.7em;
}

/*header, */
/*#banner, */
#about, 
#projects,
#contact  
/*, footer */ 
{
    padding: 20px;
    max-width: 1200px;
    position: relative;
    margin: 0 auto;
    text-align: center;
}



/* Mobile menu */
#menu{
    position: absolute;
    color: white;
    cursor: pointer;
    top: 13px;
    left: 14px;
    font-size: 40px;
    font-family: Arial, Helvetica, sans-serif;
}
#panel{
    position: fixed;
    width: 300px;
    height: 100vh;
    top: 0px;
    left: -300px;
    background: #b5b5b5;
    transition: all 0.5s ease-in;    
    padding: 20px;
    z-index: 10;
}
#panel.slide-in{
    transform: translateX(300px);
}

#menu{
    display: none;
}
#close{
    width: 30px;
    position: relative;
    left: 255px;
    top: -19px;
}

#panel nav ul li {
    display: block;
    font-weight: bold;
    /* word-spacing: 20px; */
}
@media only screen and (max-width: 680px) {
    #menu{
        display: block;
    }
    header nav{
        display: none;
    }

    h1 {
        font-size: 2.8em;    
    }    

}


.project-img{
    width: 100%;
    display: none;
}
.project-img:first-child{
    display: block;
    cursor: pointer;
}
#overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    top:0px;
    left: 0px;
    background: white;
    display: none;
    opacity: 0;
    transition: all 0.3s ease-in;
    padding: 20px;
    z-index: 100;
    overflow-x: hidden;
    overflow-y: scroll;
}
#overlay.show {
    display: block;
    /* opacity: 1; */
}
.project-img-detail{
    width: 100%;
}
.close{
    font-weight: bold;
    cursor: pointer;
}

/* #overlay::before {
    content: "x";
} */

footer button {
    background: transparent;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 20px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    margin: 20px 0;
}