/*Styles for module 4 Particpation*/

*{margin: 0; padding: 0; border: 0; box-sizing: border-box;}

 
body { background-color: rgb(191, 203, 199);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1 {
    text-align: center;
    font-weight: normal;
    text-transform: lowercase;
    border-left: 4px solid #456;
    border-bottom: 4px solid #456;
    margin: 8px 8px 40px 8px;
    padding: 8px;
    transform: rotate(-2deg);
    border-radius: 0 0 0 45px;
}


#samples-parent { 
    margin-bottom: 20px;
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    padding: 24px;
    
 
}

#samples-parent figure {
    border: 8px solid rgb(117, 29, 171);
    aspect-ratio: 1/1; 
    flex-grow: 0; 
    flex-basis: 30%;
    border-radius: 20% 0px 20% 0px;
    position: relative;
}

figure h2 {
    position: absolute;
    top: 12px;left: -5%;
    background-color: hsla(215, 60%, 40%, 0.6) ;
    color: #eee;
    width: 110%;
    text-align: center;
    padding: 4px 0px;
    transition: top .7s ease-in-out;

}

figure figcaption {
    position: absolute;
    background-color: hsla(215, 60%, 40%, 0.6);
    top: 80%; left: 0;
    width: 100% hieght 20%;   
    color: #eee;
    border-radius: 0px 0px 20% 0px;
    text-align: left;
    padding: 20px;
    position: absolute;

    
    
}

#samples-parent figure:nth-child(1) {
   border-radius: 40% 40% 40px 0;
   border: 16px solid rebeccapurple;
}

#samples-parent figure:nth-child(2) {
    overflow: hidden;
}

#samples-parent figure:nth-child(3) {
    
    text-align: center;
    
}

figure img {
    width: 100%; height: 100%;
    object-fit: fill;

}

#samples-parent figure:nth-child(4) div {
    width: 30%;
    aspect-ratio: 1/1;
    margin: 90px auto;
    background-image: conic-gradient(blue 0%, blue 20%, green 20%, green 40%, yellow 40%,
     yellow 60%, orange 60%, orange 80%, red 80%, red 100%);
     border-radius: 50%;

}
 
#samples-parent figure:nth-child(5) div {
    width: 30%;
    aspect-ratio: 1/1;
    border: 4px solid red;
    margin: 90px auto;
    background-image: repeating-radial-gradient(red 0px,red 10px, blue 10px, blue 20px);

}
#samples-parent figure:nth-child(6) div {
    padding-top: 80px;
}

#samples-parent figure:nth-child(6) img {
    float: left;
}

#samples-parent figure:nth-child(6) h3 {
    clear: left;
}


#samples-parent figure:nth-child(7) h3 {
    text-shadow: 20px 0px green;
    margin: 80px auto;
    text-align: center;
    font-size: 3em;
}

#samples-parent figure:nth-child(8) h3 {
    margin: 80px auto;
    text-align: center;
    font-size: 3em;
    width: 80%;
    border: 2px solid red;
    transform: rotate(20deg) skewY(5deg);
    margin-bottom: 30px;
}


#samples-parent figure:nth-child(9) {
background-color: yellowgreen;
transition: background-color .5s linear;

}
#samples-parent figure:nth-child(9):hover {
    background-color: orangered;

}
#samples-parent figure:nth-child(9):hover h2{
    top: 80px;

}