@import url('https://fonts.cdnfonts.com/css/segoe-ui-4');

:root{
    --text-color: #1C3746;
    --primary-color: #00b9f2;
    --primary-shadow: rgba(0, 185, 242, 0.8);
    --background-color: #EBEBEB;
}

html, body{
    min-width: 375px;
    height: 100vh;
    margin: 0;
    font-family: monospace;
    position: relative;
    font-size: 16px;
    color: var(--text-color) !important;
    font-family: 'Segoe UI', sans-serif !important;
    background-color: var(--background-color);
}

section{
    height: calc( 100vh - 16px );
    width: calc( 100% - 16px );
    padding: 8px;
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    position: absolute;
    user-select: none;
    z-index: 1;
    text-align: center;
    background-color: #fff;
}

section#comics{
    grid-template-columns: auto max-content auto;
    grid-template-rows: auto;
    display: none;
}

main::before, main::after{
    display: block;
    top: 0;
    bottom: 0;
}

main::before{
    width: 100%;
    content: '';
    text-align: right;
}

main::after{
    width: 100%;
    text-align: left;
    content: '';
}

main article{
    display: grid;
    grid-auto-flow: row;
    align-items: center;
    justify-items: center;
    justify-items: stretch;
    grid-template-rows: auto max-content;
    max-height: 100%;
}

main article img{
    display: block;
    height: 100%;
    object-fit: cover;
    max-height: 82vh;
    user-select: none;
    margin: 16px;
    border-radius: 6px;
}

main .controls{
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: max-content auto max-content;
    justify-items: center;
    align-items: center;
    margin: 8px;
    padding: 8px 12px;
    grid-gap: 12px;
}

main .controls p{
    margin: 0;
}

main .controls i{
    background-color: transparent;
    padding: 22px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    font-style: normal;
    overflow: hidden;
}

main .controls i:hover{
    background-color: rgba(223, 223, 223, 0.4);
    padding: 22px;
    border-radius: 50%;
    position: relative;
}

main .controls i::before, main .controls i::after{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 1.6em;
    font-weight: bold;
    font-size: 26px;
}

main .controls i:first-child::before{
    content: '⇦';
}

main .controls i:last-child::after{
    content: '⇨';
    display: block;
    border-width: 5px 5px 5px 5px;
    border-color: white;
}

main .controls > div{
    display: grid;
    grid-auto-flow: row;
    justify-items: center;
    justify-content: stretch;
    align-items: center;
    grid-gap: 6px;
    width: 100%;
}

section#tips article{
    margin: 50px 0 45px;
    display: grid;
    justify-items: center;
    align-content: center;
    font-weight: 400;
    font-size: large;
    grid-gap: 8px;
    min-height: 110px;
}

.animationFadeFall{
    animation-name: fall;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}

section#tips article img{
    height: 45px;
}

section#tips article p{
    margin: 0;
    padding: 0;
    font-size: 19px;
    max-width: 512px;
    font-weight: 600 !important;
}

section#tips .loader{
    height: 128px;
    width: 128px;
}

.loader{
    position: relative;
}

.circular, .linear{
    box-sizing: border-box;
}

.linear{
    border-radius: 100vh;
    overflow: hidden;
    background-color: rgba(256, 256, 256, 0.28);
    border: 1px solid rgb(0, 0, 0, 0.75);
    height: 10px;
    margin: 2px 4px;
    width: 100%;
    display: block;
    position: relative;
}

.linear::after{
    position: absolute;
    display: block;
    bottom: 0;
    top: 0;
    width: 1px;
    content: '';
    background-color: var(--primary-color);
    animation: slide .75s infinite;
}

.loader.circular::before, .loader.circular::after{
    content: '';
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border-width: 6px;
    border-color: var(--primary-color) transparent transparent;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    animation: spin .6s infinite;
}

.loader.circular::before{
    border-style: dashed;
    animation-timing-function: linear;
    animation-delay: .08s;
}

.loader.circular::after{
    border-style: solid;
    animation-timing-function: ease-in-out;
}

.snackbar{
    border-radius: 6px;
    background-color: #323232;
    color: white;
    box-shadow: 4px 4px 16px rgba(50, 50, 50, 0.4);
}

button{
    display: block;
    padding: 12px 44px;
    border-radius: 50px;
    color: white;
    background-color: var(--primary-color);
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
}

button.primary{
    font-weight: bold;
    animation: shadow 1s infinite alternate;
    animation-timing-function: ease-in-out;
}

#loader{
    height: 100vh;
    width: 100%;
    z-index: 0;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@keyframes spin{
    0%{
        transform: rotate( 0deg );
    }
    100%{
        transform: rotate( 360deg );
    }
}

@keyframes slide{
    0%{
        margin-left: 0;
    }
    50%{
        transform: scaleX( 10000% );
    }
    100%{
        margin-left: 100%;
    }
}

@keyframes shadow{
    0%{
        box-shadow: 0 0 0 var(--primary-shadow);
    }
    100%{
        box-shadow: 2px 2px 12px var(--primary-shadow);
    }
}

@keyframes fall{
    0%{
        transform: translateY(-44px);
        opacity: 0;
    }
    5%{
        opacity: 0;
    }
    10%{
        opacity: 1;
        transform: translateY(0);
    }

    90%{
        opacity: 1;
        transform: translateY(0);
    }
    95%{
        opacity: 0;
    }
    100%{
        transform: translateY(32px);
        opacity: 0;
    }
}
