*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main {
    /* background: blue; */
    background-image:url('../pictures/backgrounds/stick-people-children-AnnaliseArt-phrase.png');
    /* linear-gradient(rgba(252, 111, 233, 0.1), rgba(252, 111, 233, 0.1)),  */
    background-repeat: no-repeat;
    background-size: contain;
    background-position-y: bottom;
    background-attachment: fixed;
    height: 30vh;
    margin-top: 180px;
    /* padding-top: 5rem; */
    /* margin-top: 5rem; */
}
.arrow-up {
    position: fixed;
    bottom: 50px;
    right: 50px;
    height: 70px;
    z-index: 4;
}
.arrow-up img {
    height: 70px;
}
/* h1 {
    color: rgb(213, 85, 224);
    text-align: center;  
    margin-top:
 }   */
:root {
    --main-color: rgb(213, 85, 224);
    --main-dark-color: rgb(109, 17, 117);
}

.nav-links {
    /* display: none; */
    font-size: 1.1rem;
}
.nav {
    background: white;
    height: 5rem;
    padding: 1rem;
    /* display: grid; */
    /* grid-template-columns: repeat(1fr, 1fr); */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* justify-content: center; */
    justify-self: center;
    position: fixed;
    /* left: 50%; */
    transition: all 1s all-ease;
    /* border-bottom: var(--main-color) solid 5px; */
    box-shadow: var(--main-color) 3px 3px 20px;
    /* background: blue;    */
    z-index: 5;
    height: 130px;
    width: 100vw;
    color: var(--main-color);
}
/* .nav-center { */
    /* max-width: 100%; */
    /* max-width: 1270px; */
    /* margin: 0 auto; */
    /* display: flex; */
    /* grid-template-columns: 1fr 2fr; */
    /* flex-wrap: wrap; */
    /* color: var(--main-color); */
    /* justify-items:start; */
    /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
    /* background: yellow; */
    /* padding: 10px; */

/* } */
.nav-header {
    display: flex;
    align-items: start;
    justify-items: start;
    justify-content: flex-start;
    font-size: 1.5rem;
    margin: 0 15px;
}
.nav-header h1 {
    font-size: 5.5rem;
    color: var(--main-color);
    margin: 0 auto;
    text-align: center;
    margin-top: -30px;
}
.nav-header .middle-h1 {
    color:#a0059d;
}
.nav-header .two-h1 {
    font-size: 4.9rem;
}
.nav-header .three-h1 {
    font-size: 5.1rem;
}
.nav-header .four-h1 {
    font-size: 5.4rem;
}
.nav-header .start-h1, .nav-header .end-h1 {
    /* color:#a0059d; */
    font-size: 4.5rem;
    color: #B954A4;
    /* padding-left: 110px; */
}
.nav-header .center-h1 {
    font-size: 6.5rem;
}
@media screen and (max-width: 800px) {
    .nav-header .two-h1 {
        font-size: 3.9rem;
    }
    .nav-header .three-h1 {
        font-size: 4.1rem;
    }
    .nav-header .four-h1 {
        font-size: 4.4rem;
    }
    .nav-header .start-h1, .nav-header .end-h1 {
        font-size: 3.5rem;
    }
    .nav-header .center-h1 {
        font-size: 5.5rem;
    }.nav-header h1 {
        font-size: 4.5rem;
    }    
}
@media screen and (max-width: 610px) {
    .nav-header .two-h1 {
        font-size: 2.9rem;
    }
    .nav-header .three-h1 {
        font-size: 3.1rem;
    }
    .nav-header .four-h1 {
        font-size: 3.4rem;
    }
    .nav-header .start-h1, .nav-header .end-h1 {
        font-size: 2.5rem;
    }
    .nav-header .center-h1 {
        font-size: 4.5rem;
    }.nav-header h1 {
        font-size: 3.5rem;
    }    
}
.nav-btn {
    background: transparent;
    border-color:  transparent;
    cursor: pointer; 
    font-size: 2rem;
    justify-self: end;
    color: var(--main-color);
}
.hidden {
    display: none;
}

.content-divider {
    height: 0.2rem;
    background: linear-gradient(to right, var(--main-color), var(--main-dark-color), var(--main-color));
    box-shadow: 2px 2px 5px var(--main-color);
}

.units {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    scroll-margin-top: 150px;
    flex-wrap: wrap;
}


.units a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    color: var(--main-dark-color);
    text-transform: uppercase;
    background:rgb(253, 247, 247);
    border:var(--main-color) solid 1px;
    border-radius: 10px;
    padding: 10px;
    margin: 15px;
    margin-top: 4rem;
    text-align: center;
    transition: 1s all ease;
    height: 90px;
    width: 190px;
    text-align: center;
}
@media screen and (max-width:1300px) {
    .units a {
        margin: 10px;
    }
}
@media screen and (max-width:850px) {
    .units a {
        font-size: 0.8rem;
        margin: 5px;
        width: 150px;
    }
}

@media screen and (max-width:500px) {
    .units a {
        font-size: 0.7rem;
        width: 120px;
    }
}
@media screen and (max-width:400px) {
    .units a {
        font-size: 0.7rem;
        width: 100px;
        margin: 2px;
    }
}

.even {
    background: rgb(250, 204, 250);
}
.units a:hover {
    background:rgb(109, 17, 117);
    color: rgb(253, 247, 247); 
}
.bottom-picture {
    background-image: url('../pictures/backgrounds/collage-bottom-picture/bottom-picture.png');
    /* background-attachment: fixed; */
    background-size: contain;
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: bottom;
    height: 25vh;
    /* margin-top: 5rem; */
}
.nav-bottom {
    height: 200px;
    position: relative;
    padding: 20px;
}
footer {
    margin-top: 150px;
    color: brown;
    font-weight: bold;
}
/* sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(253, 247, 247);
    z-index: 4;
    display: grid;
    /* align-items: center;
    justify-content: center; */
    place-items: center;
    transition: 1s all ease-out;
    transform: translateX(-100%);
}
.show-sidebar {
    transform: translateX(0);
}

    .nav-btn {
        display: none;
    }
    .nav-links {
        display: flex;
        /* grid-template-columns: repeat(5, 1fr); */
        flex-wrap: wrap;
        justify-items: center;
        justify-content: center;
        column-gap: 2rem;
        list-style-type: none;
        justify-self: end;
    }
    .nav-links a {
        text-transform: capitalize;
        color:var(--main-color);
        font-weight: bold;
        text-decoration: none;
        transition: all 1s ease-out;
    }
    .nav-links a:hover {
        color: var(--main-dark-color);
        text-decoration: underline;
    }
    .nav-center {
        display: flex;
        flex-wrap: wrap;
        /* display: grid;
        grid-template-columns: 1fr 2fr; */
        /* color: var(--main-color); */
        align-items: center;

    }
    .nav-header {
        font-size: 1.5rem;
    }
   
    .sidebar-links {
        text-align: center;
    }
    .sidebar-links a {
        font-size: 2rem;
        text-transform: capitalize;
        transition: all 1s ease-out;
        background: rgb(253, 247, 247);
        display: inline-block;
        letter-spacing: 1.3;
        margin-bottom: 1.5rem;
        text-decoration: none;
        color: var(--main-color);
    }
    .sidebar-links a:hover {
        color:rgb(109, 17, 117);
        /* text-decoration: underline; */
    }
    .sidebar-links li {
        list-style-type: none;
    }
    
    .close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 3rem;
        background: transparent;
        border: transparent;
        transition: all 1s ease-out;
        color: var(--main-color);
        cursor: pointer;
    }
    .close-btn:hover {
        color: var(--main-dark-color);
    }
    .units {
        grid-template-columns: repeat(4, 1fr);
    }
    .bottom-picture {
        height: 75vh;
    }
 

@media screen and (min-width: 1100px) {
    .units {
        grid-template-columns: repeat(5, 1fr);
    }
    .main {
        height: 73vh;
        position: relative;
    }
}
.animation-balls {
    position: absolute;
    bottom: 0;
    left: 20%;
}
.animation-balls ul {
    display: flex;
    /* border-bottom: 1px solid 29AEDA; */
    /* box-shadow: 5px 5px 5px #29AEDA; */
}
.animation-balls ul li {
    width: 50px;
    height: 50px;
    list-style: none;
    margin: 0 70px;
    border-radius: 50%;
    animation: bouncy 1s linear infinite;
}
@keyframes bouncy {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-150px);
    }
    100% {  transform: translateY(0);}
}
.animation-balls ul li:nth-child(1) {
    animation-delay: 0.2s;
    background-color: #FFF212;
}
.animation-balls ul li:nth-child(2) {
    animation-delay: 0.6s;
    background-color: #29AEDA;
}
.animation-balls ul li:nth-child(3) {
    animation-delay: 0.4s;
    background-color: #E58CE3;
}
.animation-balls ul li:nth-child(4) {
    animation-delay: 0.8s;
    background-color: #2AFFFF;
}
.animation-balls ul li:nth-child(5) {
    animation-delay: 0.5s;
    background-color: #EA3223;
}

#stories-1-10 {
    background: url(../pictures/animals/frog-small.png) left top no-repeat, url(../pictures/animals/easter-chick-small.png) 50% no-repeat fixed, url(../pictures/animals/ladybug-small.png) right bottom no-repeat;
    /* /* background-repeat:no-repeat; */
    /* background-attachment: fixed; */
}
#stories-31-40 {
    background-image: url(../pictures/animals/other-animals.png);
    background-repeat: no-repeat;
    background-size: contain;   
    position: relative;
}
#stories-21-30 {
    position: relative;
}
#stories-21-30 .moving-cat {
    position: absolute;
    right:0;
    top: 40%;
    animation: walking 20s ease-in infinite;
    /* animation-direction: alternate; */
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}
#stories-21-30 .moving-cat img {
    height: 120px;
}
#stories-41-50 {
    background-image: url(../pictures/animals/hanging-cats-cut.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-attachment: fixed;
}
@keyframes walking {
    0% {
        transform: translateX(300px) ;
    }
   100% {
        transform: translateX(-1700px) ;
        /* transform: ; */
    }
}

