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

html {
    font-size: 16px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Jua', sans-serif;
}

h1 {
    color: #007faa;
    font-family: 'Bagel Fat One', cursive;
    font-weight: 400;
    text-shadow: 3px 2px 2px #fff;
    font-size: 4rem;
}

h2, h3 {
    font-family: 'Cherry Bomb One', cursive;
    font-weight: 400;
    font-size: 3rem;
    text-align: center;
}

p {
    font-size: 1.5rem;
}


/* Header */

.header-container {
    display: flex;
    background-color: #5ee7ff;
    justify-content: space-between;
    align-items: center;
    height: 6rem;
    padding: 0 1rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1rem;
    display: flex;
}

nav ul li a {
    text-decoration: none;
    color: #85c4ff;
    padding: 0.5rem 1rem;
    background-color: rgb(9, 56, 100);
    transition: background-color 0.25s ease, color 0.25s ease;
    border-radius: 0.7rem;
    width: 10rem;
    height: 3rem;
    text-align: center;
    font-family: 'Cherry Bomb One', cursive;
    font-weight: 400;
    font-size: 1.5rem;
    box-shadow: 0.3rem 0.24rem 0rem 0rem rgb(0, 0, 0);
}

nav ul li a:hover {
    background-color: #2a9fff;
    color: #fff;
}

nav ul li a:active {
    background-color: #48ffff;
    color: #3835e6;
    box-shadow: none;
}

nav ul li a.active {
    background-color: #48ffff;
    color: #3835e6;
    box-shadow: 0.15rem 0.2rem 0rem 0rem rgb(0, 0, 0);
}

/* Main */

main {
    padding: 2rem;
    flex: 1;
    background-color: #dcfaff;
}

#welcome {
    margin-bottom: 2rem;
    height: 30rem;
    position: relative;
    overflow: hidden;
}

#welcome::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0057744f;
    z-index: 3;
}

#welcome h2 {
    text-shadow: 8px 2px 8px rgb(0, 0, 0);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    color: rgb(209, 250, 255);
    text-align: center;
    font-size: 7rem;
    width: 100%;
}

#slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1.5s ease-in-out;
}

.slideshow-image {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

#about-catalyst {
    line-height: 1.5;
    text-align: center;
    color: #010041;
}

#about-catalyst h2 {
    margin-bottom: 1rem;
}

#about-catalyst img {
    width: 40%;
    height: 30rem;
    object-fit: cover;
}

.about-layout {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.about-layout p {
    margin-top: 1rem;
}

.about-layout div {
    padding: 7rem 2rem 0rem 2rem;
    background-color: #126e7e77;
    width: 40%;
}

.left-design div {
    border-radius: 0 0.5rem 0.5rem 0;
}

.left-design img {
    border-radius: 0.5rem 0 0 0.5rem;
}

.right-design div {
    border-radius: 0.5rem 0 0 0.5rem;
}

.right-design img {
    border-radius: 0 0.5rem 0.5rem 0;
}

.about-center-layout {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.about-center-layout p {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.about-center-layout img {
    border-radius: 0.5rem;
}

/* Footer */

footer {
    background-color: #5ee7ff;
    color: #006f94;
    text-align: center;
    padding: 1rem;
}

/* Responsiveness*/

@media only screen and (max-width: 1024px) {
    #about-catalyst img {
        width: 65%;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.3rem;
    }

    nav ul li a {
        width: 9rem;
        font-size: 1.4rem;
    }
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2, h3 {
        font-size: 2rem;
    }

    p {
        font-size: 1.3rem;
    }

    nav ul li a {
        padding: 0.5rem 1rem;
        border-radius: 0.7rem;
        width: 8rem;
        font-weight: 200;
        font-size: 1.3rem;
    }

    #welcome h2 {
        font-size: 6rem;
    }
}

@media only screen and (max-width: 540px) {
    h2 {
        font-size: 2.5rem;
    }

    .header-container {
        flex-direction: column;
        height: 10rem;
        padding: 1rem;
    }

    nav ul {
        width: 28rem;
        justify-content: space-between;
    }

    nav ul li {
        margin-left: 0rem;
    }

    #welcome h2 {
        font-size: 4.5rem;
        padding: 1rem;
    }

    .about-layout div {
        padding: 7rem 1rem 0rem 1rem;
    }

    #about-catalyst img {
        width: 60%;
        height: 25rem;
    }
}

@media only screen and (max-width: 430px) {
    .header-container {
        height: 14rem;
    }

    nav ul {
        width: 100%;
        flex-flow: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    #welcome h2 {
        font-size: 3.3rem;
        padding: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    #about-catalyst img {
        width: 80%;
    }

    .about-layout {
        display: block;
        padding: 1rem 0;
    }

    .about-layout div {
        width: 72%;
        padding: 5rem 1rem 2rem 1rem;
    }

    .left-design div {
        border-radius: 0.5rem;
        position: relative;
        left: 5rem;
        top: -5rem;
    }

    .left-design img {
        border-radius: 0.5rem;
        position: relative;
        left: -1.8rem;
    }

    .right-design div {
        border-radius: 0.5rem;
        position: relative;
        top: 21rem;
    }

    .right-design img {
        border-radius: 0.5rem;
        position: relative;
        left: 1.8rem;
        top: -17rem;
    }
}