* {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
        -ms-box-sizing: border-box;
         -o-box-sizing: border-box;
}

a,
a:active,
a:focus,
a:hover,
a:visited {
    color: inherit;
    text-decoration: none;
}

@font-face {
    font-family: "Coming Soon";
    src: url("../fonts/Coming_Soon/ComingSoon-Regular.ttf");
}

@font-face {
    font-family: "Cabin Sketch";
    src: url("../fonts/Cabin_Sketch/CabinSketch-Bold.ttf");
}

body {
    font-family: "Coming Soon", cursive;
    background-color: #deb887;
    background-image: url("../images/wood.jpg");
    background-size: cover;
    background-blend-mode: multiply;
}

.paper-stack {
    position: relative;
    max-width: 1200px;
    margin: 50px auto;
}

.paper-stack .blank-paper {
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    content: "";
}

.paper-stack .blank-paper {
    background: linear-gradient(to bottom, white 29px, #a1caf1 1px);
    background-size: 100% 30px;
    border-radius: 5px;
            box-shadow: 3px 3px 3px rgba(0, 0, 0, .1), 0 0 6px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 3px 3px 3px rgba(0, 0, 0, .1), 0 0 6px rgba(0, 0, 0, .1);
       -moz-box-shadow: 3px 3px 3px rgba(0, 0, 0, .1), 0 0 6px rgba(0, 0, 0, .1);
        -ms-box-shadow: 3px 3px 3px rgba(0, 0, 0, .1), 0 0 6px rgba(0, 0, 0, .1);
         -o-box-shadow: 3px 3px 3px rgba(0, 0, 0, .1), 0 0 6px rgba(0, 0, 0, .1);
}

.paper-stack .blank-paper:nth-child(1) {
    top: 4px;
    left: -5px;
    transform: rotate(-2.5deg);
}

.paper-stack .blank-paper:nth-child(2) {
    top: 5px;
    right: -4px;
    transform: rotate(1.4deg);
}

.paper-stack .blank-paper:after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: white;
    content: "";
}

.paper-stack .notebook-paper {
    position: relative;
    width: 100%;
    padding-top: 90px;
    padding-right: 50px;
    padding-bottom: 59px;
    padding-left: 150px;
    background: linear-gradient(to bottom, white 29px, #a1caf1 1px);
    background-size: 100% 30px;
    border-radius: 5px;
            box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
       -moz-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
        -ms-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
         -o-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
}

.paper-stack .notebook-paper:before,
.paper-stack .blank-paper:before {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 120px;
    display: block;
    height: 100%;
    border-right: double 4px #ffaa9f;
    content: "";
}

.paper-stack .notebook-paper:after {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: white;
    content: "";
}

.paper-stack .notebook-paper .content {
    margin-top: 30px;
    font-size: 16px;
    line-height: 30px;
}

.paper-stack .notebook-paper .content header {
    display: block;
    margin-top: 31px;
}

.paper-stack .notebook-paper .content h1 {
    margin: 0;
    font-family: "Cabin Sketch", cursive;
    font-size: clamp(26px, 6.5vw, 40px);
    font-weight: normal;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(150, 150, 150, .5);
    text-transform: uppercase;
}

.paper-stack .notebook-paper .content h2 {
    margin: 0 0 30px 0;
    font-family: "Cabin Sketch", cursive;
    font-weight: normal;
}

.paper-stack .notebook-paper .content header h2 {
    text-align: center;
}

.paper-stack .notebook-paper .content h3 {
    margin: 0;
    font-family: "Cabin Sketch", cursive;
    font-size: 30px;
    font-weight: normal;
    text-align: left;
}

.paper-stack .notebook-paper .content p {
    margin: 0 0 30px 0;
    color: rgba(0, 0, 0, .9);
}

.paper-stack .notebook-paper .content mark {
    margin: 0 -.25em;
    padding: 0 .25em;
    font-style: normal;
    color: rgb(118, 118, 16);
    background-color: transparent;
    background-image: linear-gradient(100deg, rgba(255, 255, 0, .1) 0%, rgba(255, 255, 0, .45) 5%, rgba(255, 255, 0, .35) 95%, rgba(255, 255, 0, .08) 100%);
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 100% 80%;
            box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: .6em .25em .7em .35em;
}

.paper-stack .notebook-paper .content figure {
    position: relative;
    display: block;
    float: left;
    max-width: 46%;
    margin: 0 40px 0 0;
    padding: 8px;
    padding: 10px;
    background: #dddccf;
    border-radius: 2px;
            box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
       -moz-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
    transform: rotate(3deg);
        -ms-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
         -o-box-shadow: 3px 3px 3px rgba(0, 0, 0, .2), 0 0 6px rgba(0, 0, 0, .2);
}

.paper-stack .notebook-paper .content figure img {
    width: 100%;
            filter: sepia(70%);
    -webkit-transition: .3s ease-in-out;
            transition: .3s ease-in-out;
    -webkit-filter: sepia(70%);
}

.paper-stack .notebook-paper .content figure figcaption {
    font-family: "Cabin Sketch", cursive;
    font-size: 20px;
    font-weight: normal;
    line-height: 15px;
    color: rgba(0, 0, 0, .7);
}

.paper-stack .notebook-paper .content figure:before,
.paper-stack .notebook-paper .content figure:after {
    position: absolute;
    display: block;
    width: 160px;
    height: 30px;
    background: rgba(255, 255, 200, .6);
            box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
       -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
    opacity: .5;
    content: "";
}

.paper-stack .notebook-paper .content figure:before {
    top: 10px;
    left: -40px;
    transform: rotate(-45deg);
}

.paper-stack .notebook-paper .content figure:after {
    right: -40px;
    bottom: 10px;
    transform: rotate(-25deg);
}

.paper-stack .notebook-paper .content .generator p.password-block {
    display: inline-block;
    width: 220px;
    margin-right: 20px;
    vertical-align: top;
    cursor: default;
}

.paper-stack .notebook-paper .content .generator p.password-block.long {
    width: 460px;
}

.paper-stack .notebook-paper .content .generator p.password-block span.pw {
    overflow-wrap: anywhere;
    font-style: italic;
    letter-spacing: .5px;
    cursor: pointer;
}

.paper-stack .notebook-paper .content .generator p.password-block span.pw:focus-visible {
    outline: 2px dashed #3c4a85;
    outline-offset: 2px;
}

.paper-stack .notebook-paper .content .generator p.password-block span.pw:hover,
.paper-stack .notebook-paper .content .generator p.password-block span.pw:active {
    margin: 0 -.2em;
    padding: 0 .2em;
    color: rgb(118, 118, 16);
    background-image: linear-gradient(100deg, rgba(255, 255, 0, .1) 0%, rgba(255, 255, 0, .45) 5%, rgba(255, 255, 0, .35) 95%, rgba(255, 255, 0, .08) 100%);
    background-repeat: no-repeat;
    background-position: 0 50%;
    background-size: 100% 80%;
            box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    border-radius: .6em .25em .7em .35em;
}

.paper-stack .notebook-paper .content .password-block.button {
    display: inline-block;
    width: unset;
    height: 30px;
    margin-top: 60px;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    line-height: 30px;
    letter-spacing: 1px;
    color: #3c4a85;
    text-decoration: none;
    vertical-align: top;
    background: none;
    border: none;
    border-bottom: dashed #3c4a85;
    transform-origin: center bottom;
    -webkit-transition: transform .15s ease-in-out;
       -moz-transition: transform .15s ease-in-out;
        -ms-transition: transform .15s ease-in-out;
         -o-transition: transform .15s ease-in-out;
            transition: transform .15s ease-in-out;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
     -khtml-user-select: none;
    -webkit-text-stroke: 2px #3c4a85;
    -webkit-touch-callout: none;
}

.paper-stack .notebook-paper .content .password-block.button:focus-visible {
    outline: 2px dashed #3c4a85;
    outline-offset: 4px;
}

.paper-stack .notebook-paper .content .button:hover {
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}

.paper-stack .notebook-paper .content footer {
    font-family: "Cabin Sketch", cursive;
    font-weight: normal;
    text-align: center;
}

.paper-stack .notebook-paper .content footer a {
    color: rgba(0, 0, 0, .9);
    text-decoration: none;
}

/* Alerts */

.alerts {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
}

.alerts .push-alert {
    position: relative;
    display: block;
    word-wrap: break-word;
    width: 80%;
    margin: 0 auto 8px;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: white;
    text-align: left;
    border-radius: 3px;
    cursor: pointer;
}

.alerts .push-alert .closebtn {
    float: right;
    margin-left: 15px;
    font-size: 22px;
    font-weight: bold;
    line-height: 20px;
    color: white;
    -webkit-transition: transform .1s ease-in-out;
       -moz-transition: transform .1s ease-in-out;
        -ms-transition: transform .1s ease-in-out;
         -o-transition: transform .1s ease-in-out;
            transition: transform .1s ease-in-out;
    cursor: pointer;
}

.alerts .push-alert:hover .closebtn {
    -webkit-transform: scale(1.2);
        -ms-transform: scale(1.2);
            transform: scale(1.2);
}

/* Loader */

.loader,
.loader:after {
    width: 10em;
    height: 10em;
    border-radius: 50%;
}

.loader {
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 50%;
    margin: -5em 0 0 -6.1em;
    font-size: 10px;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(101, 157, 50, .2);
    border-right: 1.1em solid rgba(101, 157, 50, .2);
    border-bottom: 1.1em solid rgba(101, 157, 50, .2);
    border-left: 1.1em solid #308014;
    -webkit-transform: translateZ(0);
        -ms-transform: translateZ(0);
            transform: translateZ(0);
    -webkit-animation: load 1.1s infinite linear;
            animation: load 1.1s infinite linear;
}

@-webkit-keyframes load {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

@keyframes load {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}

/* Hint & legend (inside the instructions block) */

.paper-stack .notebook-paper .content .instructions .hint {
    display: none;
    font-size: 13px;
    line-height: 30px;
    color: rgba(0, 0, 0, .55);
}

.paper-stack .notebook-paper .content .password-block.button .label-eraser {
    display: none;
}

/* Keep the page inside the viewport (the rotated papers peek out) */

html,
body {
    overflow-x: hidden;
}

/* Mobile: same notebook, pocket sized */

@media (max-width: 760px) {
    .paper-stack {
        margin: 24px 10px;
    }

    .paper-stack .blank-paper:nth-child(1) {
        top: 3px;
        left: -3px;
        transform: rotate(-1deg);
    }

    .paper-stack .blank-paper:nth-child(2) {
        top: 4px;
        right: -3px;
        transform: rotate(.6deg);
    }

    .paper-stack .notebook-paper {
        padding-top: 90px;
        padding-right: 16px;
        padding-bottom: 89px;
        padding-left: 52px;
    }

    .paper-stack .notebook-paper .content .instructions .hint {
        display: inline;
    }

    /* The Regenerate button becomes an eraser (how else do you redo
       something in a notebook?) - fixed so it's always within thumb reach */

    .paper-stack .notebook-paper .content .password-block.button {
        position: fixed;
        z-index: 999;
        right: 14px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        width: 100px;
        height: 46px;
        margin: 0;
        font-size: 16px;
        letter-spacing: 1px;
        color: #8c3434;
        text-align: center;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
        background: linear-gradient(180deg, #f9a8a8 0%, #f48a8a 60%, #e07070 100%);
        border-bottom: none;
        border-radius: 12px 15px 13px 14px / 16px 12px 15px 13px;
                box-shadow: 2px 4px 6px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .15);
        -webkit-box-shadow: 2px 4px 6px rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .15);
        transform: rotate(-7deg);
        transform-origin: center;

        -webkit-text-stroke: 1px #8c3434;
    }

    .paper-stack .notebook-paper .content .button:hover {
        transform: rotate(-7deg);
    }

    .paper-stack .notebook-paper .content .password-block.button:active {
        transform: rotate(-7deg) scale(.92);
    }

    .paper-stack .notebook-paper .content .password-block.button .label-full {
        display: none;
    }

    .paper-stack .notebook-paper .content .password-block.button .label-eraser {
        display: inline;
    }

    .paper-stack .notebook-paper:before,
    .paper-stack .blank-paper:before {
        left: 38px;
        border-right-width: 3px;
    }

    .paper-stack .notebook-paper .content h1 {
        letter-spacing: 2px;
    }

    .paper-stack .notebook-paper .content .generator p.password-block,
    .paper-stack .notebook-paper .content .generator p.password-block.long {
        display: block;
        width: auto;
        margin-right: 0;
    }

    /* Margin annotations: the legend teaches the code, every row wears it */

    .paper-stack .notebook-paper .content .generator p.password-block span.pw:nth-of-type(1):before,
    .paper-stack .notebook-paper .content .instructions span.legend:nth-of-type(1):before {
        font-style: normal;
        color: rgba(0, 0, 0, .4);
        content: "R\00b7  ";
    }

    .paper-stack .notebook-paper .content .generator p.password-block span.pw:nth-of-type(2):before,
    .paper-stack .notebook-paper .content .instructions span.legend:nth-of-type(2):before {
        font-style: normal;
        color: rgba(0, 0, 0, .4);
        content: "A\00b7  ";
    }

    .paper-stack .notebook-paper .content .generator p.password-block span.pw:nth-of-type(3):before,
    .paper-stack .notebook-paper .content .instructions span.legend:nth-of-type(3):before {
        font-style: normal;
        color: rgba(0, 0, 0, .4);
        content: "H\00b7  ";
    }

    .paper-stack .notebook-paper .content figure {
        display: block;
        float: none;
        max-width: min(320px, 88%);
        margin-right: auto;
        margin-left: auto;
        transform: rotate(2deg);
    }

    .alerts .push-alert {
        width: 94%;
        padding: 14px;
    }
}

/* Quality floor */

@media (prefers-reduced-motion: reduce) {
    .loader {
        -webkit-animation: none;
                animation: none;
    }

    .paper-stack .notebook-paper .content .password-block.button,
    .alerts .push-alert .closebtn,
    .paper-stack .notebook-paper .content figure img {
        -webkit-transition: none;
                transition: none;
    }
}