body {
    font-family: 'Lexend Deca', 'serif';
    margin: 150px 0 0 0;
    background-color: #EADEDA;
    color: #242D77;
}

/*****************header********************************/

header {
    background-color: #E07A5F;
    padding: 40px 0;
    text-align: center;
    color: #242D77;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
    z-index: 1;
}

/******************articles*******************/

#intro {
    text-align: center;
    padding: 20px 50px 60px 50px;
}

.page {
    justify-content: center;
    margin: 20px 20px 200px 20px;
}

.text {
    position: relative;
    background-color: #E07A5F;
    color: #242D77;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

article a:hover {
    text-decoration: underline;
}

article img {
    display: block;
    max-width: 100%;
    margin: 5px 0 0 0;
}

/************images*****************/

.big {
    rotate: -10deg;
    transition: 0.5s ease;
    border-radius: 10px;
}

.big:hover {
    box-shadow: 0 0 40px #00000078;
}

.icon {
    position: absolute;
    rotate: -5deg;
 }

.icon:hover {
    animation: wiggle 0.5s ease;
}


/**************footer*******************/

footer {
    background-color: #242D77;
    padding: 20px 0 20px 0;
    text-align: center;
    margin: auto;
    width: 100%;
}

footer p, footer a {
    color: #ededed;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/**************overlays*****************/

.hidelay {
    visibility: hidden;
    opacity: 0;
}

.showverlay {
    visibility: visible;
    opacity: 1;
}

.mini {
    font-size: 14px;
    margin: auto;
    padding: 0 0 20px 0;
}

#game, #nancypics {
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    background-color: #fffbd7;
    color:#000;
    padding: 20px;
    position: fixed;
    top:60%;
    left:50%;
    transform: translate(-50%, -50%);
    transition: 0.5s ease;
    box-shadow: 0 0 200px #00000078;

}

#game {
    width: 90%;
}

#p1, #p2, #p3, #p4, #p5, #p6, #p7 {
    height: 30px;
    width: 70px;
    position: fixed;
    z-index: 1;
}

/******petal divs*******/

#p1 {
    top: 130px;
    left: 120px;
/*     rotate: 93deg;
 */}

#p2{
    top: 140px;
    left: 154px;
/*     rotate: 133deg;
 */}

#p3{
    top: 180px;
    left: 160px;
}

#p4{
    top: 220px;
    left: 135px;
/*     rotate: 65deg;
 */}

#p5{
    top: 220px;
    left: 93px;
/*     rotate: 115deg;
 */}

#p6{
    top: 190px;
    left: 70px;
/*     rotate: -20deg;
 */}

#p7{
    top: 143px;
    left: 80px;
/*     rotate: 43deg;
 */}

#nancypics {
    width: 50%;
}

#nancypics div {
    display: flex;
    gap: 20px;
}

#nancypics img {
    border-radius: 10px;
}

#exit1, #exit2 {
    text-align: center;
    padding: 10px;
    height: 20px;
    width: 70px;
    background-color: #242D77;
    color: #EADEDA;
    border-radius: 5px;
    transition: 0.3s ease;
}

#exit1:hover, #exit2:hover, #again:hover {
    text-decoration: underline;
}

#again {
    text-align: center;
    padding: 10px;
    height: 20px;
    width: 90px;
    background-color: #E07A5F;
    color: #242D77;
    border-radius: 5px;
    transition: 0.3s ease;
}

#try {
    display: flex;
    gap: 50px;
    justify-content: end;
}

/***************wiggle**************************/

@keyframes wiggle {
    0% {
      transform: rotate(0);
    }
    25% {
      transform: rotate(-4deg);
    }
    50% {
      transform: rotate(4deg);
    }
    75% {
      transform: rotate(-4deg);
    }
    100%{
      transform: rotate(0);
    }
  }



/*** media queries ***/

@media only screen and (min-width: 700px) {

    #game {
        width: 50%;
    }
}

@media only screen and (min-width: 1000px) {

    header {
        padding: 20px;
    }

    #game {
        width: 30%;
    }

    .page {
        display: flex;
    }

    .text {
        width: 30%;
        height: 30%;
    }
}