@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    color: #959595;
    background: #eeedea;
    font-size: 1em;
}

h1,h2,h3 {
    font-weight: 700;
    color: #202020;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-weight: 600;
    font-size: 1.5em;
}

.h2-more {
    margin: 2em 0 3em 0;
}

h3 {
    font-size: 1.25em;
    margin: 4em 0 2.5em 0;
}

.project-img {
    max-width: 100%;
}
.project-img-flow {
    max-width: 100%;
}

.project-p {
    margin-top: 4em;
    margin-bottom: 2em;
}

.intro {
    padding: 50px;
    text-align: left;
}

.container {
    max-width: 100vw;
    margin: 0 auto;
}

.projects {
    padding: 50px;
    text-align: center;
}

.project-images {
    display: flex;
    justify-content: center;
    gap: 10em;
    flex-direction: column;
    align-items: center;
}

.project-images img {
    margin-bottom: 20px;
    width: 100%;
}

.contact {
    padding: 50px;
    text-align: center;
}

.contact a {
    display: inline-block;
    margin-top: 50px;
    padding: 10px 20px;
    background-color: #9D9D9D;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.contact a:hover {
    background-color: #909090;
}

.project-intro {
    padding: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project-content {
    padding: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.openidea {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    width: 100%;
}

.openidea-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3em;
    width: 100%;
}

.openidea img {
    width: 100%;
}

.openidea-row img {
    width: 100%;
}

.spareribs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    width: 100%;
}

.spareribs img {
    width: 100%;
}

.project-items {
    background-color: #a080ac;
    width: 15em;
    height: 15em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.project-images a {
    text-decoration: none;
    color: #000000;
    font-size: 1.25em;
}

.project-items:hover {
    animation: breathing 1s;
}

@keyframes breathing {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
  }

.youtube-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Adjust for larger screens */
@media (min-width: 768px) { /* Typically 768px is the breakpoint for tablets in portrait mode */
    p {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .intro p {
        margin-left: 0;
        text-align: left;
    }

    .container {
        max-width: 70vw;
    }

    .project-images {
        flex-direction: row;
    }
    
    .project-images img {
        width: 30%;
        max-width: 300px;
        margin-bottom: 0;
    }

    .project-img {
        max-width: 60%;
    }

    .project-img-flow {
        max-width: 100%;
    }

    .project-interstella iframe {
        max-width: 100%
    }

    .openidea img {
        width: 40%;
    }

    .openidea-row img {
        width: 25%;
    }

    .spareribs img {
        width: 40%;
    }

    .video-wrapper {
        max-width: 70%;
        padding-top: 39.375%; /* 16:9 Aspect Ratio */
    }
}