/* The code below centers the text of all h1's on the page. */
h1 {
    text-align: center;
    color: white;
    font-size: 50px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: sticky;
    /* Enables sticky behavior */
    top: 0px;
    background: linear-gradient(90deg,
            /* Angle */
            #22591a,
            /* Color 1 */
            #059f52,
            /* End of first stripe */
            #576289,
            /* Color 2 start */
            #3678fc
            /* End of second stripe */
        );
}

/* The code below centers all images on the page and gives them a width of 400px. */
img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 400px;
}

/* The code below centers the text of all h2's on the page. */
h2 {
    text-align: center;
    color: rgb(255, 255, 255);
    font-style: oblique;
    font-size: 30px;
}

h3 {
    font-size: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 2.5;
    }
}

h2 {
    animation: fadeIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
}

body {
    /* Create a diagonal stripe pattern */
    background: linear-gradient(90deg,
            /* Angle */
            #22591a,
            /* Color 1 */
            #059f52,
            /* End of first stripe */
            #576289,
            /* Color 2 start */
            #3678fc
            /* End of second stripe */
        );
    overflow-x: hidden;
    height: 100vh;
    margin: 0;
}

.image {
    border-radius: 30%;
}

.head {
    width: 200px;
}

.green {
    width: 225px;
}

.anotherhead {
    width: 175px;
}

/* The code below aligns all the sections horizontally on the bottom. */
.section-container {
    display: flex;
    justify-content: space-between;
    color: rgb(206, 255, 223);
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    animation: fadeIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
}

/* The code below a solid black border to section and puts space between them (the margin). */
.section1 {
    text-align: center;
    border: 4px rgb(248, 178, 178) solid;
    margin: 10px;
    color: rgb(147, 45, 45);
    padding: 15px;
    text-align: auto;
    background-color: rgb(248, 178, 178);
    border-radius: 5%;
}

.section1:hover {
    background-color: rgb(255, 204, 204);
    color: rgb(147, 45, 45);
    border: 4px rgb(255, 204, 204) solid;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.section2 {
    text-align: center;
    border: 4px rgb(243, 249, 159) solid;
    margin: 10px;
    color: rgb(218, 121, 52);
    padding: 15px;
    background-color: rgb(243, 249, 159);
    border-radius: 5%;
}

.section2:hover {
    background-color: rgb(255, 255, 204);
    color: rgb(218, 121, 52);
    border: 4px rgb(255, 255, 204) solid;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.section3 {
    text-align: center;
    border: 4px rgb(178, 208, 248) solid;
    margin: 10px;
    color: rgb(25, 60, 116);
    padding: 15px;
    background-color: rgb(178, 208, 248);
    border-radius: 5%;
}

.section3:hover {
    background-color: rgb(204, 229, 255);
    color: rgb(25, 60, 116);
    border: 4px rgb(204, 229, 255) solid;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.footer {
    padding: 2px;
    text-align: center;
}

/*trebuchet MS*/