/* Extra small devices (phones, less than 768px) */
body {
    margin: 0;
    padding: 0;
    font-family: 'Domine';
}
h1 {
    text-align: center;
    font-size: 30px;
    font-weight: normal;
}
p {
    text-align: center;
    font-size: 20px;
    line-height: 1.6;
}

/* Hero image */
#container {
    position: relative;
    text-align: center;
    color: white;
}
#top_container {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0%);
    width: 80%;
}
#intro_text {
    font-size: 24px;
    color: white;
    line-height: 1.6;
    animation-name: my_text;
    animation-duration: 3s;
}
@keyframes my_text {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
#hero_image {
    width: 100%;
    height: auto;
}

/* Features */
#feature_1 {
    padding-top: 7%;
    padding-bottom: 7%;
}
#feature_2 {
    color: white;
    background-color: #003F83;
    padding-top: 7%;
    padding-bottom: 7%;
}
#feature_3 {
    padding-top: 7%;
    padding-bottom: 7%;
}
#feature_4 {
    color: white;
    background-color: #003F83;
    padding-top: 7%;
    padding-bottom: 7%;
}
#feature_5 {
    padding-top: 7%;
    padding-bottom: 7%;
}
.container_a {
    display: grid;
    width: 300px;
    margin: 0 auto;
    grid-row-gap: 25px;
    justify-items: center;
    align-items: center;
}
.container_b {
    display: grid;
    width: 300px;
    margin: 0 auto;
    grid-row-gap: 50px;
    justify-items: center;
    align-items: center;
}
.figure {
    display: flex;
    margin: 0 auto;
    width: 300px;
}

@media (max-width: 1100px) {
    img.figure {
        display: flex;
        margin: 0 auto;    
        /* width: 100%;  */
        max-width: 300px;
    }
}

.figure_new {
    display: block;
    margin: 0 auto;
    width: px;
}

.figure_again {
    display: block;
    margin: 0 auto;
    width: 250px;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
    /* Hero image */
    #intro_text {
        font-size: 30px;
    }

    /* Features */
    .container_a {
        width: 600px;
    }
    .container_b {
        width: 600px;
    }
    .figure{
        width: 400px;
    }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero image */
    #top_container {
        top: 20%;
    }
    #intro_text {
        font-size: 40px;
    }

    /* Features */
    .container_a {
        width: 1100px;
        grid-column-gap: 100px;
        grid-template-columns: 500px 500px;
    }
    .container_a .text_box {
        order: 2;
    }
    .container_a .figure {
        order: 1;
    }
    .container_b {
        width: 1100px;
        grid-column-gap: 100px;
        grid-template-columns: 500px 500px;
    }
}

/* Largest devices (standard desktops, 1920px and up) */
@media (min-width: 1920px) {
    /* Features */
    .container_a {
        width: 1700px;
        grid-column-gap: 100px;
        grid-template-columns: 800px 800px;
    }
    .container_b {
        width: 1700px;
        grid-column-gap: 100px;
        grid-template-columns: 800px 800px;
    }
    .figure{
        width: 500px;
    }
}
