
body {        
    font-family: 'Titillium Web', sans-serif;
    background-color: #FFFCFA;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-image: linear-gradient(180deg, orange, orange, red);
}

main {
    padding: 30px;
}

header {
    background-color: purple;
    height: 110px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 6px solid yellow;
    color: white;
}

header img {
    height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

footer {
    background-color: purple;
    padding: 10px;
    border-top: 6px solid navy;
    color: white;
}

section {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shake8ball {
    animation-name: shake;
    animation-duration: 1s;
}

.cubeVisibility {
    animation-name: visibility;
    animation-duration: 3s;
}

#outter-shape {
    width: 650px;
    height: 650px;
    background-image: linear-gradient(-45deg, #383838, #383838, black, #383838, #383838);
    border-radius: 325px;
    border: 5px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px purple;
    cursor: pointer;
}

#inner-shape {
    width: 300px;
    height: 300px;
    background-image: linear-gradient(-45deg, black, #383838, black);
    border-radius: 150px;
    border: 5px solid rgb(61, 61, 61);
    display: flex;
    justify-content: center;
    align-items: center;
}

#cube {
    width: 175px;
    height: 175px;
    background-color: white;
    opacity: 0.0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    font-size: 1.5em;
    font-weight: bold;
}

#fortune {
    text-align: center;
    width: 165px;
    color: black;
}

@keyframes shake {
    0% {
        transform: translateX(20px);
    }
    10%{
        transform: translateX(-40px);
    }
    20% {
        transform: translateX(40px);
    }
    30%{
        transform: translateX(-40px);
    }
    40%{
        transform: translateX(40px);
    }
    50%{
        transform: translateX(-20px);
    }
    60% {
        transform: translateX(40px);
    }
    70%{
        transform: translateX(-40px);
    }
    80% {
        transform: translateX(40px);
    }
    90%{
        transform: translateX(-40px);
    }
    100%{
        transform: translateX(20px);
    }
}

@keyframes visibility {
    0% {
        opacity: 0.0;
    }
    40% {
        opacity: 1.0;
    }
    60% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.0;
    }
}