/* ================================
   FULL PAGE DOODLE BORDER
   ================================ */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: white;
}

/* The border sits over the entire webpage */
body::before {
    content: "";

    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background-image: url("border.png");

   background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;

    pointer-events: none;

    z-index: 9999;
}
/* =========================================================
   RANT TO ME!
   Main stylesheet
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: #B6D1E0;

    color: #2A607D;

    font-family: "Montserrat", Arial, sans-serif;

    overflow-x: hidden;
}


/* =========================================================
   COLOUR PALETTE
   ========================================================= */

:root {

    /* Large title blue */
    --title-blue: #4f86db;

    /* Decorative blue */
    --decor-blue: #8ab0ce;

    /* Dark blue question text */
    --question-blue: #173d83;

    /* Black body text */
    --black: #111111;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

main {

    position: relative;

    width: min(1220px, 90vw);

    margin: 0 auto;

    padding-top: 136px;

    padding-bottom: 120px;

    text-align: center;
}


/* =========================================================
   TOP QUESTIONS
   ========================================================= */

.questions {

    color: var(--question-blue);

    font-size: clamp(22px, 1.75vw, 34px);

    font-weight: 500;

    line-height: 1.02;

    letter-spacing: -0.7px;

    margin-bottom: 27px;
}


.questions div {
    margin: 0;
}


/* =========================================================
   HUGE "RANT TO ME!" TITLE
   ========================================================= */

h1 {

    margin: 0;

    padding: 0;

    color: var(--title-blue);

    font-family: "Anton", Impact, sans-serif;

    font-size: clamp(105px, 9.3vw, 185px);

    font-weight: 400;

    line-height: 0.91;

    letter-spacing: 1px;

    white-space: nowrap;

    /* Canva-style soft drop shadow */
    text-shadow:
        7px 9px 7px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome {

    width: min(930px, 100%);

    margin: 31px auto 0;
}


/* "Welcome to RANT TO ME!" */

.welcome h2 {

    margin: 0 0 6px;

    font-size: clamp(24px, 1.7vw, 33px);

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: -0.6px;
}


/* "An indie website..." */

.tagline {

    margin: 0 0 12px;

    font-size: clamp(19px, 1.35vw, 27px);

    font-weight: 500;

    line-height: 1.2;

    letter-spacing: -0.4px;
}


/* Main paragraph */

.welcome p {

    width: min(900px, 100%);

    margin: 0 auto;

    font-size: clamp(15px, 1.08vw, 21px);

    font-weight: 400;

    line-height: 1.42;

    letter-spacing: -0.2px;
}


/* =========================================================
   CORNER DECORATIONS
   ========================================================= */

.corner {

    position: fixed;

    width: 260px;
    height: 260px;

    z-index: -1;

    pointer-events: none;

    color: var(--decor-blue);
}


/* =========================================================
   TOP LEFT
   ========================================================= */

.corner-tl {

    top: -25px;
    left: -25px;
}


/* Curved lines */

.tl-lines {

    position: absolute;

    top: -25px;
    left: -45px;

    width: 160px;
    height: 110px;

    border: 8px solid var(--decor-blue);

    border-right: none;
    border-bottom: none;

    border-radius: 90px 0 0 0;

    transform: rotate(8deg);
}


.tl-lines::before {

    content: "";

    position: absolute;

    top: 19px;
    left: 17px;

    width: 125px;
    height: 85px;

    border: 7px solid var(--decor-blue);

    border-right: none;
    border-bottom: none;

    border-radius: 80px 0 0 0;
}


.tl-lines::after {

    content: "";

    position: absolute;

    top: 40px;
    left: 37px;

    width: 90px;
    height: 60px;

    border: 6px solid var(--decor-blue);

    border-right: none;
    border-bottom: none;

    border-radius: 60px 0 0 0;
}


/* Small circle */

.tl-circle {

    position: absolute;

    top: 112px;
    left: 75px;

    width: 39px;
    height: 39px;

    border: 7px solid var(--decor-blue);

    border-radius: 50%;
}


.tl-circle::after {

    content: "";

    position: absolute;

    width: 7px;
    height: 7px;

    top: 9px;
    left: 9px;

    background: var(--decor-blue);

    border-radius: 50%;
}


/* Big curving shape */

.tl-curve {

    position: absolute;

    top: 140px;
    left: -45px;

    width: 135px;
    height: 115px;

    border: 8px solid var(--decor-blue);

    border-left: none;
    border-bottom: none;

    border-radius: 0 80px 0 0;

    transform: rotate(8deg);
}


/* =========================================================
   TOP RIGHT
   ========================================================= */

.corner-tr {

    top: -15px;
    right: -15px;
}


/* Large organic blob */

.tr-blob {

    position: absolute;

    top: -20px;
    right: 40px;

    width: 135px;
    height: 120px;

    background: var(--decor-blue);

    border-radius:
        55% 45% 60% 40%
        / 55% 50% 50% 45%;

    transform: rotate(-13deg);
}


/* White cut-out inside blob */

.tr-blob::after {

    content: "";

    position: absolute;

    width: 42px;
    height: 54px;

    background: white;

    right: 18px;
    bottom: -2px;

    border-radius: 50% 50% 45% 55%;
}


/* Sun rays */

.tr-rays {

    position: absolute;

    top: 65px;
    right: 112px;

    width: 30px;
    height: 125px;

    transform: rotate(38deg);
}


.tr-rays::before,
.tr-rays::after {

    content: "";

    position: absolute;

    width: 115px;
    height: 12px;

    background: var(--decor-blue);

    border-radius: 20px;

    transform-origin: right center;
}


.tr-rays::before {

    top: 15px;
    right: 0;

    transform: rotate(-23deg);
}


.tr-rays::after {

    top: 65px;
    right: -3px;

    transform: rotate(23deg);
}


/* Little outlined triangle */

.tr-circle {

    position: absolute;

    top: 73px;
    right: 265px;

    width: 80px;
    height: 50px;

    border: 8px solid var(--decor-blue);

    border-radius: 50%;

    transform: rotate(12deg);
}


/* Curving line on right */

.tr-curve {

    position: absolute;

    top: 125px;
    right: -30px;

    width: 115px;
    height: 95px;

    border: 8px solid var(--decor-blue);

    border-left: none;

    border-radius: 0 70px 70px 0;

    transform: rotate(10deg);
}


/* =========================================================
   BOTTOM LEFT
   ========================================================= */

.corner-bl {

    bottom: -30px;
    left: -25px;
}


/* Bottom-left organic blob */

.bl-blob {

    position: absolute;

    bottom: -5px;
    left: 65px;

    width: 125px;
    height: 130px;

    background: var(--decor-blue);

    border-radius:
        40% 60% 45% 55%
        / 55% 40% 60% 45%;

    transform: rotate(-12deg);
}


/* Lines at far left */

.bl-lines {

    position: absolute;

    bottom: 30px;
    left: -70px;

    width: 155px;
    height: 105px;

    border: 8px solid var(--decor-blue);

    border-left: none;
    border-bottom: none;

    border-radius: 0 90px 0 0;

    transform: rotate(18deg);
}


.bl-lines::before {

    content: "";

    position: absolute;

    width: 110px;
    height: 75px;

    top: 17px;
    left: 20px;

    border: 7px solid var(--decor-blue);

    border-left: none;
    border-bottom: none;

    border-radius: 0 70px 0 0;
}


/* Small circle */

.bl-circle {

    position: absolute;

    bottom: 125px;
    left: 80px;

    width: 60px;
    height: 60px;

    border: 9px solid var(--decor-blue);

    border-radius: 50%;
}


/* Rays */

.bl-rays {

    position: absolute;

    bottom: 70px;
    left: 185px;

    width: 100px;
    height: 100px;

    transform: rotate(-12deg);
}


.bl-rays::before {

    content: "";

    position: absolute;

    width: 95px;
    height: 12px;

    background: var(--decor-blue);

    border-radius: 20px;

    transform: rotate(12deg);
}


.bl-rays::after {

    content: "";

    position: absolute;

    top: 30px;
    left: 8px;

    width: 80px;
    height: 12px;

    background: var(--decor-blue);

    border-radius: 20px;

    transform: rotate(-20deg);
}


/* =========================================================
   BOTTOM RIGHT
   ========================================================= */

.corner-br {

    right: -25px;
    bottom: -20px;
}


/* Huge partial circle */

.br-circle {

    position: absolute;

    right: -105px;
    bottom: -90px;

    width: 230px;
    height: 230px;

    border: 9px solid var(--decor-blue);

    border-radius: 50%;
}


/* Curved hook */

.br-curve {

    position: absolute;

    right: 0;
    bottom: 75px;

    width: 120px;
    height: 140px;

    border: 9px solid var(--decor-blue);

    border-left: none;

    border-bottom: none;

    border-radius: 0 100px 0 0;

    transform: rotate(-20deg);
}


/* Little lines */

.br-lines {

    position: absolute;

    right: 120px;
    bottom: 15px;

    width: 100px;
    height: 100px;

    transform: rotate(-15deg);
}


.br-lines::before {

    content: "";

    position: absolute;

    width: 70px;
    height: 11px;

    background: var(--decor-blue);

    border-radius: 20px;

    top: 20px;
    right: 0;

    transform: rotate(-35deg);
}


.br-lines::after {

    content: "";

    position: absolute;

    width: 55px;
    height: 11px;

    background: var(--decor-blue);

    border-radius: 20px;

    top: 60px;
    right: 5px;

    transform: rotate(20deg);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    main {

        padding-top: 100px;
    }

    .corner {

        transform: scale(0.75);
        transform-origin: top left;
    }

    .corner-tr,
    .corner-br {

        transform-origin: top right;
    }

    .corner-bl {

        transform-origin: bottom left;
    }

    .corner-br {

        transform-origin: bottom right;
    }
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 650px) {

    main {

        width: 88vw;

        padding-top: 70px;
        padding-bottom: 80px;
    }


    .questions {

        font-size: 18px;

        line-height: 1.12;

        letter-spacing: -0.3px;
    }


    .desktop-break {

        display: none;
    }


    h1 {

        font-size: 21vw;

        letter-spacing: 0;

        white-space: normal;

        line-height: 0.95;
    }


    .welcome {

        margin-top: 25px;
    }


    .welcome h2 {

        font-size: 23px;
    }


    .tagline {

        font-size: 18px;
    }


    .welcome p {

        font-size: 15px;

        line-height: 1.5;
    }


    /* Make decorations less intrusive on phones */

    .corner {

        transform: scale(0.48);
    }


    .corner-tr,
    .corner-br {

        transform: scale(0.48);
        transform-origin: top right;
    }


    .corner-bl {

        transform-origin: bottom left;
    }


    .corner-br {

        transform-origin: bottom right;
    }
}
/* =========================================================
   RANT BUTTON
   ========================================================= */

.chat-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-top: 32px;

    min-width: 230px;
    min-height: 72px;

    padding: 16px 28px;

    background: #8ab0ce;

    color: white;

    font-family: "Montserrat", Arial, sans-serif;

    font-size: 19px;
    font-weight: 700;

    letter-spacing: 0.2px;

    text-decoration: none;

    border-radius: 20px;

    box-shadow:
        0 6px 0 rgba(0, 0, 0, 0.10);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}


/* Mouse hovering over button */

.chat-button:hover {

    background: #7da8c8;

    transform: translateY(-3px);

    box-shadow:
        0 9px 0 rgba(0, 0, 0, 0.10);
}


/* When clicked */

.chat-button:active {

    transform: translateY(3px);

    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.10);
}