/* Reset */
#shard_app {
    all: revert;
}

#shard_app * {
    box-sizing: border-box;
}

#shard_app * {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

#shard_app button {
    font: inherit;
}


/* App Shell */
#shard_app {
    background: #274472;
    border-radius: 10px;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

#shard_app .shard_background {
    position: absolute;
    top: 0;
    left: 0;
}

#shard_app .shard_box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

#shard_app .shard_button {
    display: block;
    text-align: center;
    padding: 0 30px;
    font-size: 32px;
    line-height: 54px;
    border-radius: 54px;
    color: #fff;
    text-shadow: 2px 2px 2px #0d2267;
    background: linear-gradient(#3b69ff, #1b3075);
    border: 6px solid #334fab;
    cursor: pointer;
}

#shard_app .shard_button:hover {
    background: linear-gradient(#6387ff, #2a3c77);
    border-color: #5179ff;
}

#shard_app .shard_button:focus {
    border-color: #5179ff;
}

#shard_app .shard_button:active {
    background: linear-gradient(#2a3c77, #6387ff);
    border-color: #334fab;
    text-shadow: -1px -1px 1px rgba(14, 29, 79, 0.6);
}

#shard_app .shard_button.shard_hide {
    transition: opacity .2s ease-in, transform .3s ease-in;
    opacity: 0;
    transform: translateY(-50%);
}

#shard_app .shard_generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    opacity: 0;
    transform: translateY(50%);
}

#shard_app .shard_generating.shard_show {
    transition: opacity .2s ease-out .1s, transform .3s ease-out;
    opacity: 1;
    transform: translateY(0%);
}

#shard_app .shard_generating.shard_hide {
    transition: opacity .2s ease-in, transform .3s ease-in;
    opacity: 0;
    transform: translateY(-50%);
}

#shard_app .shard_generation_slider {
    width: 75%;
    height: 75px;
    border-radius: 16px;
    background: repeating-linear-gradient(-45deg, #111, #111 25%, #222 25%, #222 50%, #111 50%) top left fixed;
    background-size: 30px 30px;
    border: 4px solid #5885AF;
    overflow: hidden;
}

@keyframes shard_width {
    0% { width: 0%; }
    10% { width: 15%; }
    20% { width: 35%; }
    30% { width: 57%; }
    40% { width: 65%; }
    50% { width: 73%; }
    60% { width: 80%; }
    70% { width: 83%; }
    80% { width: 81%; }
    90% { width: 92%; }
    100% { width: 100%; }
}

#shard_app .shard_generation_slider::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(#3b69ff, #1b3075);
    animation: shard_width 30s linear;
}

#shard_app .shard_generation_text {
    color: #fff;
    text-shadow: 2px 2px 2px #0d2267;
    font-size: 30px;
    text-align: center;
}

#shard_app .shard_download_area {
    display: flex;
    flex: 1;
    justify-content: space-around;
    opacity: 0;
}

#shard_app .shard_download_area.shard_show {
    opacity: 1;
    transition: opacity 1s ease-out;
}

#shard_app .shard_download_image {
    display: flex;
    align-items: center;
}

#shard_app .shard_right_side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#shard_app .shard_explainer {
    color: #fff;
    text-shadow: 2px 2px 2px #0d2267;
    font-size: 30px;
    text-align: center;
}

#shard_app .shard_download_image {
    width: 200px;
    height: 200px;
    border: 0;
    outline: 0;
}

#shard_app .hidden_canvas {
    position: absolute;
    bottom: 110%;
    right: 110%;
    width: 1000px;
    height: 1000px;
    display: block;
}