@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap");

/* DESIGN */

body {
    background: #e8e8e8;
}

.dramapanel {
    top: 30px;
    left: 50px;
}

.laureatedot {
    top: 40px;
    right: 100px;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 200px;
    background: rgb(178, 252, 255);
    filter: drop-shadow(-2px 2px 0 rgba(0, 0, 0, 0.08));
}

.heading {
    border-top: 1px solid #bbb;
    border-bottom: 1px solid #bbb;
}

.gap20 {
    gap: 20px;
}

main {
    overflow-x: visible;
}

.book {
    box-sizing: border-box;
    margin-top: 100px;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
p,
li,
button {
    font-family: "Bitter", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    line-height: 2rem;
    color: #444;
}

em {
    font-style: italic;
}

h1 {
    font-size: 4rem;
    line-height: 5rem;
    color: #000;
}

h2 {
    font-size: 3rem;
    line-height: 4rem;
    color: #000;
}

h3 {
    font-size: 2.5rem;
    line-height: 2.5rem;
    color: #000;
}

h4 {
    font-size: 2rem;
    line-height: 2.5rem;
    color: #000;
}

p {
    font-size: 1.25rem;
    line-height: 2rem;
    margin-bottom: 2rem;
}

p:last-of-type {
    margin-bottom: 0;
}

.dramapanel p {
    font-size: 1rem;
    line-height: 2rem;
}

footer p {
    font-size: 0.8rem;
    line-height: 1.3rem;
    color: #999;
}

.laureatedot p {
    font-size: 1rem;
    line-height: 1.2rem;
    color: #000;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    text-align: center;
}

.hilite-orange {
    position: relative;
    display: inline-block;
    color: #000;
    z-index: 1;
}

.hilite-orange::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 70%;
    background: #ff977d;
    z-index: -1;
    border-radius: 6% 18% 12% 20% / 30% 40% 20% 30%;
    transform: translateY(-50%) rotate(-2deg) scaleY(1.08);
    opacity: 0.85;
    box-shadow:
        0 2px 8px 0 rgba(255, 151, 125, 0.18),
        0 0px 0px 2px #ff977d44;
    pointer-events: none;
}

.hilite-yellow {
    position: relative;
    display: inline-block;
    color: #2238c9;
    z-index: 1;
}

.book .hilite-yellow {
    color: #000;
}

.hilite-yellow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 52%;
    width: 100%;
    height: 72%;
    background: #f2ff3f;
    z-index: -1;
    border-radius: 7% 2% 15% 9% / 22% 8% 17% 13%;
    transform: translateY(-50%) rotate(1deg) scaleY(1.06);
    opacity: 0.82;
    box-shadow:
        0 2px 8px 0 rgba(242, 255, 63, 0.13),
        0 0px 0px 2px #f2ff3f44;
    pointer-events: none;
}

.hilite-green {
    position: relative;
    display: inline-block;
    color: #2238c9;
    z-index: 1;
}

.book .hilite-green {
    color: #000;
}

.hilite-green::before {
    content: "";
    position: absolute;
    left: 0;
    top: 52%;
    width: 100%;
    height: 72%;
    background: #87ffb9;
    z-index: -1;
    border-radius: 20% 10% 30% 15% / 30% 20% 25% 18%;
    transform: translateY(-50%) rotate(-2.5deg) scaleY(1.1);
    opacity: 0.88;
    box-shadow:
        0 4px 16px 0 rgba(135, 255, 185, 0.18),
        0 0px 0px 2px #87ffb944;
    pointer-events: none;
}

.strike {
    text-decoration: line-through;
}

/* NAVIGATION */

a,
a:visited {
    color: #2238c9;
    border-bottom: 1px solid #2238c9;
    transition: color 0.3s ease;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover,
a:active {
    border-bottom: 0px none;
    color: #000;
}

button.download,
button.download:visited {
    width: 100px;
    height: 100px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2238c9;
    text-decoration: none;
    border: 0px none;
}

button {
    border: 0px none;
    text-align: center;
    font-size: 2rem;
    color: #fff;
    background: #2238c9;
    font-weight: 600;
    padding: 20px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100px;
}

button:hover:not(:disabled),
#donate-button:hover {
    background: #000;
}

button:disabled {
    background: #999;
    cursor: not-allowed;
    filter: saturate(0);
}

#donate-button {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
    background: #2238c9;
    margin: 50px auto 50px;
    transition: all 0.3s ease;
}

#donate-button::after {
    content: "Почерпи с PayPal";
    font-family: "Bitter", serif;
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

button.reaction,
button.reaction:visited {
    padding: 0 20px;
    line-height: 1rem;
    background: none;
    border: 1px solid #ccc;
    height: 70px;
    color: #000;
}

/* ARROWS */

.arrow1 {
    position: absolute;
    top: 20px;
    right: 0;
}

.arrow2 {
    position: relative;
    left: 40%;
}

/* RESPONSIVENESS */

@media screen and (max-width: 1600px) {
    html {
        font-size: 85%;
    }
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 75%;
    }

    .laureatedot {
        right: unset;
    }
}

@media screen and (max-width: 992px) {
    .book {
        display: flex;
        flex-direction: column;
    }

    .last {
        order: 2;
        margin-top: 50px;
    }

    .first {
        order: 1;
    }
}

@media screen and (max-width: 640px) {
    h1 {
        font-size: 3.5rem;
    }
}
