@import url("https://cdn.jsdelivr.net/gh/jgthms/minireset.css@master/minireset.min.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f5f0f6;
    scroll-behavior: smooth;
}

/* header styles */
header {
    width: 100%;
    z-index: 10;
    position: fixed;
    top: 0;
}

.header-container {
    background-color: #2b4162;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    height: 3.5rem;
    padding: 0 0.8rem;
    font-family: "Spinnaker", sans-serif;
    color: #FFFEEE;
}

header h1 {
    margin-left: 0.5rem;
    font-size: 2rem;
}

nav ul {
    display: flex;
    gap: 1rem;
    margin-right: 0.5rem;
    cursor: pointer;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #FFFEEE;
}

a:hover {
    color: #9FF1FF;
}

/* introduction styles */
.main-container {
    padding-top: 4rem;
}

.intro-container {
    font-family: "Spinnaker", sans-serif;
    margin: 2rem;
    padding: 1rem;
    background-color: #385f71;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    color: #FFFEEE;
    border-radius: 10px;
}

.intro-container h2 {
    margin: 0.5rem;
    padding-bottom: 0.5rem;
    font-weight: 800;
    font-size: 1.5rem;
}

.intro-container p {
    font-family: "Spinnaker", sans-serif;
    margin: 0.5rem;
    padding: 0 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* styling for the p tag in this container */
.photo-container p {
    font-family: "Spinnaker", sans-serif;
    margin: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* create a scrollbar for the thumbnail container  */
.scroll-container {
    overflow-x: auto;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 500px;
    white-space: nowrap;
    text-align: center; 
    cursor: pointer;
}

/* custom scroll bar styles */
.scroll-container::-webkit-scrollbar {
    height: 4px;
    transition: opacity 0.3s;
}

.scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}

#thumbnail-container {
    display: inline-flex;
    flex-wrap: nowrap; 
    gap: 0.3rem;
    padding: 0.3rem 0.2rem;
}

.thumbnail {
    width: 7.5rem;
    height: 4.5rem;
    object-fit: cover;
    transition: .2s linear;
}

.thumbnail:hover {
    transform: scale(1.1);
}

/* popup image when clicking on thumbnail */
.popup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

.close-btn {
    position: absolute;
    top: 5rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    z-index: 100;
}

.close-btn:hover {
    color: #ff69b4;
}

.prev-next-button {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.prev-btn, .next-btn {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    padding: 0.5rem;
}

.prev-btn:hover, .next-btn:hover {
    color: #ff69b4;
}

#large-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.large-image {
    max-width: 80%;
    max-height: 80%;
    border: 2px solid white;
    border-radius: 5px;
}

footer {
    background-color: #2b4162;
    width: 100%;
    position: absolute;
    bottom: 0;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Spinnaker", sans-serif;
    font-size: 0.8rem;
    color: #FFFEEE;
}

@media (max-width: 500px) {
    /* centering my thumbnail container and p tag for photo container when device size shirnks*/

    header h1 {
        font-size: 1rem;
    }

    nav ul li {
        font-size: 0.8rem;
    }

    .intro-container h2 {
        font-size: 1rem;
        text-align: center;
    }

    .scroll-container {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        max-width: 400px;
    }  

    
    .photo-container p {
        position: absolute;
        bottom: 7.5rem;
        font-size: 0.7rem;
        left: 45%;
        transform: translateX(-45%);
        max-width: 500px;
    }

    .thumbnail {
        width: 5.5rem;
        height: 3.5rem;
    } 
};