/* Main Section Styles */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    padding: 10px;
}

h1 {
    font-size: 58px;
}

/* Body Styles */
body {
    font-family: "Poppins", sans-serif;
    margin: 10px;
    padding: 10px;
    background-color: #e1f8ed;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Paragraph Styles */
p {
    padding: 8px 15px;
    text-align: center;
    margin: 0 auto;
}

/* Row Display Grid */
.row-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #9add9f75;
}

/* Background Block */
.bkg-block {
    background-image: url(images/green-waves.jpg);
    background-size: cover;
    background-position: center;
    color: #0a2312;
    text-align: center;
    padding: 20px;
    margin: 10px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
}

/* Item Tile */
.item-tile {
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 10px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Thumbnail Image */
.thumb-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Link Image */
.link-img {
    width: 40px;
    height: auto;
    display: block;
    margin: 10px;
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}
.link-img.slide-in {
    opacity: 1;
    transform: translateX(0);
}

/* Link List */
#link-list {
    display: flex;
    flex-direction: row;
    align-items: center;
}

/* Profile Picture */
#profile-pic {
    width: 150px;
    height: 100%;
    margin: 10px;
}

/* About Image */
#about-img {
    width: auto;
    height: 100px;
    margin: 10px;
}

/* Gameplay Image */
#gameplay-img {
    width: auto;
    height: 200px;
    margin: 10px;
}

/* About Text */
#about-text {
    margin: auto 0;
}

/* Button Styles */
button {
    background-color: #30b929;
    color: #e1f8e6;
    font-family: "Poppins", sans-serif;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #164820;
}

/* Check Button */
.check-btn {
    order: 1;
    margin-top: auto;
}

/* Gallery Image Styles */
.gall-img:hover {
    transition: transform 0.3s ease-in-out;
    transform: scale(1.5);
}

/* Row and Column Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
}
.column {
    flex: 20%;
    max-width: 25%;
    padding: 0 4px;
}
.column img {
    margin-top: 8px;
    vertical-align: middle;
    max-width: 80%;
}

/* Art Text */
.art-text {
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #e4f8e1;
    padding: 20px;
    text-align: center;
}
footer a {
    color: #e1f8e4;
}
#myLogo {
    max-width: 15px;
    height: auto;
    margin-top: 10px;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
        flex-direction: column;
    }
    .row-display {
        gap: 10px;
    }
    .bkg-block {
        font-size: 1.2em;
        padding: 15px;
        order: -1;
    }
    .item-tile {
        padding: 5px;
        margin: 5px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .column {
        flex: 100%;
        max-width: 100%;
    }
    .thumb-img {
        width: 100px;
        margin: 0 auto;
    }
    button {
        padding: 8px 15px;
        font-size: 14px;
    }
    p {
        padding: 8px 15px;
        text-align: center;
        margin: 0 auto;
    }

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



/*animation*/
.link-img {
    opacity: 0;
    transform: translateX(-100px);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
  }
  
  .link-img.slide-in {
    opacity: 1;
    transform: translateX(0);
  }
  

/* Project Page Specific Styles */
.project-description {
    text-align: center;
    margin: 32px auto;
    padding: 24px 32px;
    background: linear-gradient(90deg, #ff78c9 10%, #de9319 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(160, 160, 160, 0.08);
    font-size: 1.2em;
    max-width: 700px;
}

.project-row-display {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 32px auto;
    padding: 24px 0;
    background-color: #e1f8ed;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(160, 160, 160, 0.06);
}

.project-row-display .item-tile {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 340px;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(160, 160, 160, 0.08);
    transition: transform 0.2s;
}
.project-row-display .item-tile:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 18px rgba(160, 160, 160, 0.12);
}
.image-bar {
    display: flex;
    flex-direction: row;
    gap: 14px;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    padding: 16px 0;
    margin: 0 auto 18px auto;
    width: max-content;
    max-width: 100vw;
    background: #9add9f75;
    border-radius: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.image-bar::-webkit-scrollbar {
    height: 8px;
    background: transparent;
}
.image-bar::-webkit-scrollbar-thumb {
    background: #5a8a5e;
    border-radius: 8px;
}

.image-bar > .bar-img {
    scroll-snap-align: start;
    flex: 0 0 auto;
    min-width: 100%;
    max-width: 300px;
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media only screen and (max-width: 768px) {
    .image-bar {
        gap: 8px;
        padding: 10px 0;
        border-radius: 6px;
    }
    .image-bar > .bar-img {
        min-width: 80px;
        max-width: 120px;
        height: 60px;
    }
}

@media only screen and (max-width: 768px) {
    .image-bar {
        gap: 10px;
        padding: 12px 0;
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .bar-img {
        height: 80px;
        min-width: 120px;
    }
}

.bar-img {
    height: 120px;
    width: auto;
    margin: 0 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(160, 160, 160, 0.08);
    transition: transform 0.2s;
    object-fit: cover;
}
.bar-img:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(160, 160, 160, 0.12);
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .project-description {
        padding: 16px 8px;
        font-size: 1em;
        max-width: 98vw;
    }
    .project-row-display {
        flex-direction: column;
        gap: 16px;
        padding: 12px 0;
    }
    .image-bar {
        gap: 10px;
        padding: 12px 0;
    }
    .bar-img {
        height: 80px;
    }
}

/* Unvisited link */
a:link {
  color: rgb(25, 119, 50); /* Sets the color of unvisited links to blue */
}

/* Visited link */
a:visited {
  color: rgb(1, 60, 50); /* Sets the color of visited links to purple */
}

/* Mouse over link */
a:hover {
  color: rgb(16, 187, 62); /* Sets the color of links on hover to red */
}

.sour-gummy {
  font-family: "Sour Gummy", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, div, li, button, input, textarea {
    font-family: "Sour Gummy", sans-serif;
}
