:root {
    --primary: #7697D8;
    --secondary: #7697D8;
    --bs-primary: #774fe8;
    --bs-secondary: #c0cce6;
    --bs-success: #FF9F1C;
    --bs-info: #95a5d4;
    --bs-warning: #FFC107;
    --bs-danger: #D7263D;
    --bs-light: #FFF2E2;
    --bs-dark: #2C1A1D;
    --bs-btn-border-color: #FF6B35;
    --btn-animation: 0.45s all;
    --transform: scale(1.05);
}
.overlay {
  background: linear-gradient(45deg, #0000006e, transparent);
  border-radius:20px;
}

.btn:hover {
    transition: var(--btn-animation);
    transform: var(--transform);
}
.bg-primary {
    background:var(--bs-primary) !important;
}

.btn-primary {
    background: var(--bs-info) !important;
    outline-color: var(--bs-primary) !important;
    border-color: var(--bs-btn-border-color) !important;
}

.btn-secondary {
    background: var(--bs-secondary) !important;
    outline-color: var(--bs-secondary) !important;
    border-color: var(--bs-btn-border-color) !important;
}

.text-bg-dark {
    background:var(--bs-secondary) !important;
}

/* ---- ePage design (Figma "ePage" page). The template CSS loads after this file, so these need !important ---- */

/* Taller ePage logo in the white ellipse */
.site-navbar .site-navbar-brand {
    padding-bottom: 45px !important;
}

.site-navbar .logo-img {
    width: 168px !important;
}

@media (max-width: 991.98px) {
    .site-navbar .site-navbar-brand {
        padding-bottom: 31px !important;
    }

    .site-navbar .logo-img {
        width: 116px !important;
    }
}

/* The design writes the service name in capitals: EPAGE */
.hero-title-service {
    text-transform: uppercase;
}

/* Home: the photo at 40% over the blue-grey */
.hero-media::before {
    opacity: 0.4 !important;
}

/* Third feature circle shows the top of the book cover */
.section-two-item:nth-child(3) .section-two-img {
    object-position: 50% 0% !important;
}

/*
 * Fourth feature circle: Figma shows a zoomed-in crop of the ink bottle. An <img> cannot zoom its own picture
 * in every browser, so its picture is moved out of view and the crop is drawn as its background instead.
 */
.section-two-item:nth-child(4) .section-two-img {
    object-position: -9999px 0 !important;
    background: url('../img/slide_2.jpg') 14% 99.2% / 240.7% auto no-repeat;
}

/* Signup, login and cancel: the same photo at 40%, with no dark tint over it */
.signup-section::before,
.login-section::before,
.cancel-section::before {
    background-image: url('../img/slide_2.jpg') !important;
    opacity: 0.4 !important;
}

.signup-section::after,
.login-section::after,
.cancel-section::after {
    background-color: transparent !important;
}

/* Login and cancel show the photo less zoomed in than signup does */
.login-section::before,
.cancel-section::before {
    height: calc(100% + 28px) !important;
}

@media (min-width: 992px) {
    .hero-subtitle {
        margin-bottom: 3px !important;
    }

    .section-one-img {
        min-height: 582px !important;
    }

    .section-two {
        padding-top: 59px !important;
    }

    /* The third paragraph is one line here (two in the other designs), so the gap below it is bigger */
    .section-one-text + .section-one-text-last {
        margin-bottom: 55px !important;
    }
}
