/* GLOBAL STYLES */

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

body {
    --header-height: 4vw;
    font-size: 1vw;
    overflow-x: hidden;
    min-height: 100vh;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
}

/* OVERLAY STYLES */

#image-overlay {
    font-size: 1vw;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#image-overlay.hidden {
    display: none;
}

#image-overlay h3 {
    position: absolute;
    top: 2em;
    width: 50vw;
    font-size: 1.5em;
}

.overlay-content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#overlay-image {
    max-width: 70vw;
    max-height: 75vh;
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: auto;
    user-select: none;
}

.nav-arrow {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 12em;
    /* margin-inline: .2em; */
    cursor: pointer;
    user-select: none;
    z-index: 2001;
}

#prev-image {
    left: 5vw;
}

#next-image {
    right: 5vw;
}

.close-button {
    position: absolute;
    top: 3em;
    right: 4em;

    width: 3em;
    aspect-ratio: 1/1;
    background-size: cover;
    background-position: center 0vw;
    background-repeat: no-repeat;

    border: none;
    color: white;
    cursor: pointer;
    z-index: 2001;
}

#zoom-container {
    position: relative;
    width: 70vw;
    height: 75vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
}

#overlay-image {
    max-width: none; /* Allows the image to exceed its container size during zoom */
    max-height: none;
    transform-origin: center center;
    /* transition: transform 0.2s ease; */
    user-select: none;
    -webkit-user-drag: none;
}

/* PREVIEW IMAGE SECTION */

.preview-image-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(75vh - var(--header-height, 4vw));
}

.preview-image {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;

    background-size: cover;
    background-position: center 0vw;
    background-repeat: no-repeat;
    z-index: -1;
}

.preview-image-section h1 {
    font-size: 6vw;

    cursor: default;
    z-index: 1;
}

.project-name {
  filter:blur(0vw);
  transition: all 0.5s ease-in-out;
}

.project-name:hover {
  filter:blur(10vw);
  transition: all 0.5s ease-in-out;
}

/* SUMMARY SECTION */

.summary-section {
    font-size: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block: 5vw;
}

.summary-section h2 {
    font-size: 4em;

    transition: all 0.3s ease-in-out;
}

.summary-content {
    font-size: 1.4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5vw;
}

.details-lists {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: fit-content;
    max-width: 100vw;
    gap: 10vw;
    margin: auto;
    padding-inline: 15vw;
}

.details-list.right, .details-list.left{
    display: flex;
    flex-direction: column;
    width: max-content;
    flex-wrap: wrap;
    text-align: left;
    justify-content: left;
    justify-self: left;
    margin: auto;
    margin-left: 0;;
    margin-top: 0;
    padding: 0;
}

.summary-content ul li {
    display: flex;
    flex-direction: row;
    margin: auto;
    margin-left: 0;
    margin-bottom: 1em;
    text-align: left;
    justify-self: left;
    text-shadow: 0 1em 1em rgba(0, 0, 0, 1);
}

.summary-content ul li strong{
    margin-left: 0;
    margin-top: 0;
    text-align: left;
    justify-self: left;
    text-decoration: underline;
}

.summary-content ul li ul {
    display: flex;
    flex-direction: column;
    /* flex-direction: row;
    flex-wrap: wrap; */
    font-weight: 500;
    margin: auto;
    margin-bottom: 0;
}

.summary-content ul li ul li {
    margin-left: .3em;
    margin-bottom: 0;
}

.listed-project-language-logo {
  width: 1.4em;
  aspect-ratio: 1 / 1;
  margin: 0;
  margin-left: .5em;
  background-size: contain;
  background-repeat: no-repeat;
}

/* DETAILS SECTION */

.details-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
  
.info-card {
    font-size: 1vw;
    display: flex;
    flex-direction: row;
    text-align: center;
    width: 90vw;
    margin-top: 0%;
    margin-bottom: 7.5vw;;
}
  
.image-container {
    width: 100%;
    max-width: 30vw;
    max-height: fit-content;
    display: flex;
    margin: auto;
    margin-inline: 1.5vw;
}
  
.image {
    width: 30vw;
    max-height: fit-content;
    aspect-ratio: initial;
    max-height: fit-content;
    display: flex;
    margin: auto;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}
  
.info-content {
    display: flex;
    text-align: left;
}
  
.info-card p {
    text-align: left;
    font-size: 1.5em;
}
  
.info-hook {
    cursor: default;
    font-size: 2em;
    /* min-width: max-content; */
    margin-right: 1vw;
    font-style: italic;
    text-decoration: underline;
    text-align: left;

    transition: all 0.3s ease-in-out;
}

/* Media Queries for smaller screens */

@media (max-aspect-ratio: 1.4 / 1) {
    .preview-image-section {
        height: 40vw;
    }

    .preview-image {
        background-size: contain;
    }
}

/* TABLET FORMAT */

@media (max-width: 992px) {
    #image-overlay h3 {
        top: calc((50vh - 2.3em) - 40vw);
        font-size: 2.3em;
    }
}

/* ANYTHING LARGER THAN PHONE */
@media (min-width: 769px) {
    .info-card.right .info-content {
        margin-left: 2vw;
    }

    .info-card.left .info-content {
        margin-right: 2vw;
    }

    .summary-section h2:hover {
        cursor: default;
        font-size: 4.2em;

        transition: all 0.3s ease-in-out;
    }
}

/* PHONE FORMAT */
@media (max-width: 768px) {
    #image-overlay h3 {
        top: 2em;
        font-size: 3em;
    }

    .nav-arrow {
        font-size: 5rem;
    }

    #prev-image {
        top: 10vh;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    #next-image {
        bottom: 10vh;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
    }

    .summary-section {
        font-size: 2vw;
    }

    .summary-content p {
        padding-inline: 3.5vw;
        margin-inline: 9vw;
    }

    .details-lists {
        flex-direction: column;
        gap: 6vw;
        padding-inline: 12.5vw;
    }

    .info-card {
        font-size: 2vw;
        flex-direction: column;
        align-items: center;
        width: 75vw;
    }

    .info-card.right{
        flex-direction:column-reverse;
        align-items: center;
    }
  
    .image-container {
        max-width: 75vw;
        height: 75vw;
        min-height: fit-content;
        margin-block: 5vw;
    }
  
    .image {
        width: 100%;
        max-height: fit-content;
    }
    
    .info-card p {
        font-size: 2em;
        margin-block: 5vw;
        display: flex;
        flex-direction: column;
    }

    .info-hook {
        font-size: 2.5em;
        line-height: 1.2em;
        text-align: center;
    }
}