@font-face {
    font-family: Agbalumo;
    src: url(../fonts/Agbalumo/Agbalumo-Regular.ttf) format('truetype');
   
}

@keyframes slideUp {
    from {
      transform: translateY(50%);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

 main > div{
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: slideUp 1.4s ease-in-out; 
 }

 main > div a:nth-of-type(1){
    color:#194A69;
    text-decoration: none;
    height:2em;
    margin-left: -2em;
}

main > div a:nth-of-type(1):visited{
    color:#194A69;
    text-decoration: none;
}

main > div a:nth-of-type(1)::after{
    margin-left: 10%;
    color:#194A69;
    content: "⬅";
    font-size: 2em; 
    text-decoration: none;
}


div > section:nth-of-type(1){
    margin-top: 1em;
}

 div > section:nth-of-type(1) h2{
    display: none;
    font-size: 1.3em;
 }

 div > section:nth-of-type(1) p{
    font-family: 'Poppins', Helvetica, sans-serif;
    font-size: 1em;
    padding: .6em;
    margin-left: 10%;
    width: 75%;
}

 div > section:nth-of-type(1) p strong{
    font-family: 'Agbalumo', Impact, 'Arial Narrow Bold', sans-serif;
    font-size: 3.5em;
    color: var(--dark-blue);
    text-transform: uppercase;
}

div > section:nth-of-type(1) p:first-of-type::first-line{
    line-height: 120%;
}

div > section:nth-of-type(1) p:last-of-type{
    padding-bottom: 2em;
}

main > div a:nth-of-type(2){
    font-family: 'Unbounded', Helvetica, sans-serif;
    font-size: 1em;
    color: var(--white);
    background-color: var(--dark-blue);
    border-radius: .4em;
    padding: .7em;
    margin-right: 10em;
    margin-bottom: 5em;
    float: right;
}

main > div a:nth-of-type(2):visited{
    color: var(--white);
    text-decoration: none;
}

div > img{
    height: 30em;
    margin-right: 7em;
}

main > section:nth-of-type(1){
    display: grid;
    grid-template-columns: 37% 63%;
    grid-template-rows: repeat(7, 3em);
    background-color: var(--white);
    border-radius: 1.4em;
    border: none;
    box-shadow: 0.1em 0.1em 1em var(--dark-blue);
    width:55%; 
    padding: 2em;
    margin-top: 6em;
    margin-left: 5em;
    margin-bottom: 5em;

}

section:nth-of-type(1) h2{
    font-family: 'Unbounded', Helvetica, sans-serif;
    font-size: 2em;
    font-weight: 400;
    color: var(--dark-blue);
}
section:nth-of-type(1) label{
    grid-column-start: 1;
    text-align: right;
    font-family: 'Poppins', Helvetica, sans-serif;
    font-size: 1.4em;
    align-self: center;
    /* margin-left: 4em; */
}

section:nth-of-type(1) progress{
    appearance: none;
    grid-column-start: 2;
    align-self: center;
    margin-left: 1em;
    width: 80%;

}

progress::-webkit-progress-bar {
    background-color: #ccc; 
    height: .5em; 
    border-radius: 1em;
}


progress::-webkit-progress-value {
    background-color: #194A69; 
    height: .4em; 
    border-radius: 1em;
}

main > h3{ 
    font-family: 'Unbounded', Helvetica, sans-serif;
    font-weight: 500;
    font-size: 2.2em;
    color: var(--dark-blue);
    margin-left: 2em;
    padding-top:2em;
}

main > h3::after{
    content: "  ♡";
}
main > ul{
    background-image: none;
    overflow-x:auto;
    display:flex;
    gap: 1em;
    padding-top: 2em;
    padding-bottom: 2em;
    margin-left: 5em;
    margin-right: 5em;
    list-style-type: none;
    text-decoration: none;
}


main > ul li {
    display:grid;
    flex-direction:column-reverse;
    /* grid-template-columns: 10em; */
    list-style: none;
   }

main > ul h3{
    grid-row-start: 2;
    justify-self: center;
    align-self: center;
     font-family: 'Unbounded', Helvetica, sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    font-style: italic;
    color: var(--black);
    text-align: center;
    padding:1.2em .5em;
    /* height: 5em; */
   }

main > ul img{
    grid-row-start: 1;
    justify-self: center;
    align-self: center;
    width: 17em;
 
 
}


@media screen and (max-width: 600px) {
    main > div {
        flex-direction: column;
        align-items: center;
    }

    div > img {
        order:-1;
        height: 20em;
        margin-top: 2em;
        margin-right: 0;
    }

    div > section:nth-of-type(1) p {
        /* order: 2; */
        font-size: 1em;
        width: 100%;
        margin-left: 0;
    }

    div > section:nth-of-type(1) h2 {
        font-size: 1.5em;
    }

    main > section:nth-of-type(1) img {
        width: 100%;
        height: auto;
        flex: 0 0 auto;
    }

    main > div a:nth-of-type(2) {
        margin-left: .5em;
        margin-top: 2em;
        float: none;
        font-size: .7em;
        padding: .7em;
    }


    main > section:nth-of-type(1) {
        grid-template-columns: 45% 55%;
        font-size: .65em;
        width: 100%;
        margin-left: 0;

    }
    main > section:nth-of-type(1) progress{
        justify-self: end;
        width: 100%;
        /* padding-right: 1em; */
    }

    main > section:nth-of-type(1) label{
        font-size: 1.5em;
        margin-right: 1em;
    }

    main > h3 {
        font-size: 1.5em;
        margin-left: 1em;
        padding-top: 1em;
    }

    section h2 {
        font-size: 1.5em;
    }

    section progress {
        width: 100%;
    }

    main > ul{
        margin-left: 1em;
        margin-right: 1em;
    }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {

    main > div {
        flex-direction: column;
        align-items: center;
    }

    div > img {
        order:-1;
        height: 17em;
        border-radius: 0 ;
        align-self: end;
        margin-bottom: -15em;
        opacity: 0.3;
        margin-right: 1em;
    
    }

    div > section:nth-of-type(1) p {
        /* order: 2; */
        font-size: 1.2em;
        font-weight: 500;
        width: 100%;
        margin-left: .5em;
    }

    main > section:nth-of-type(1) {
        grid-template-columns: 45% 55%;
        font-size: .9em;
        width: 85%;
        margin-top: 0;
        margin-left: auto;
        margin-right: auto;
    }
  
    main > section:nth-of-type(1) progress{
        justify-self: end;
        width: 100%;

    }

    main > section:nth-of-type(1) label{
        font-size: 1.7em;
        margin-right: 1em;
    }

    section h2 {
        font-size: 1.5em;
    }

    section progress {
        width: 100%;
    }
}





 