.main {
    position: relative;
}

.centered-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--grid-item-size), 1fr));
    justify-content: center;
    gap: 1rem;
}

.bg-gradient-primary {
    background: #53197b !important;
    background: linear-gradient(45deg, #53197b, #7a3cc3) !important;
    border-color: #53197b !important;
    color: #ffffff;
}

.bg-gradient-dark {
    background: #314a80 !important;
    background: linear-gradient(45deg, #4b6cb7, #314a80, #182848) !important;
    border-color: #314a80 !important;
    color: #ffffff;
}

.bg-gradient-primary-hover:hover,
.bg-gradient-primary-hover:active {
    background: linear-gradient(45deg, #321fdb 0%, #1f1498 100%) !important;
    border-color: #1f1498 !important;
}

.bg-gradient-primary .close {
    color: #d5d0d0;
}

.bg-gradient-primary .close:hover,
.bg-gradient-primary .close:focus {
    color: #ffffff;
}

.bg-tosthost {
    background-color: #1155c5 !important;
}

.top-panel-alert {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-radius: 0;
    margin-bottom: 0;
    text-align: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Markdown */

.markdown-content {
    word-wrap: break-word;
}

.markdown-content pre {
    border-radius: 0.35rem;
    background-color: #1a1625;
    color: #ebe9ef;
    padding: 0.5rem;
}

.markdown-content pre:has(> code) {
    padding: 0;
}

.markdown-content ul li p, .markdown-content ol li p {
    margin: 0;
}

.markdown-content blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 16px;
    border-left: 5px solid rgba(0, 0, 0, 0.25);
    background-color: rgba(0, 0, 0, 0.10);
    border-radius: 0.2rem;
}

body.color-scheme-dark .markdown-content blockquote {
    border-left: 5px solid rgba(255, 255, 255, 0.25);
}

.markdown-content blockquote p:last-child,
.markdown-content blockquote ul:last-child,
.markdown-content blockquote ol:last-child {
    margin-bottom: 0;
}

.markdown-content p:last-child,
.markdown-content ul:last-child,
.markdown-content ol:last-child,
.markdown-content pre:last-child,
.markdown-content blockquote:last-child {
    margin-bottom: 0;
}

/* Colored toasts */

.swal-colored-toast.swal2-icon-success {
    background-color: #2eb85c !important;
}

.swal-colored-toast.swal2-icon-error {
    background-color: #e55353 !important;
}

.swal-colored-toast.swal2-icon-warning {
    background-color: #f9b115 !important;
}

.swal-colored-toast.swal2-icon-info {
    background-color: #3fc3ee !important;
}

.swal-colored-toast.swal2-icon-question {
    background-color: #87adbd !important;
}

.swal-colored-toast .swal2-title {
    color: white;
}

.swal-colored-toast .swal2-close {
    color: white;
}

.swal-colored-toast .swal2-html-container {
    color: white;
}

.swal2-popup.swal2-toast .swal2-title {
    font-weight: normal;
}

.swal2-popup.swal2-toast {
    padding: 0 1em;
    min-height: 4.4em;
    align-content: center;
    /* offset for progress bar that is positioned absolutely */
    padding-bottom: 0.25em;
}

/*
 * Toast animations
 * Animations taken from animate.css - https://animate.style/
 * Licensed under the MIT license - http://opensource.org/licenses/MIT
 * Copyright (c) 2020 Animate.css
 */
.swal-animation {
    animation-duration: 0.35s;
    animation-fill-mode: both;
}

.swal-animation-fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.swal-animation-fadeOutUp {
    animation-name: fadeOutUp;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
}

.offer-ribbon {
    position: absolute;
    clip-path: inset(0 -100%);
    top: 0;
    right: 0;
    transform-origin: 0 0;
    transform: translate(29.3%) rotate(45deg);
    color: #ffffff;
    background: #1659c6;
    box-shadow: 0 0 0 999px #1659c6;
}

.offer-ribbon.offer-ribbon-danger {
    background: #dc3545;
    box-shadow: 0 0 0 999px #dc3545;
}

.affiliate-link-alert {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    color: #323841;
    background-color: white;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.5rem;
    box-shadow: 0px 0px 5px 0px #00000066;
    transition: transform 0.5s ease-in;
}

.affiliate-link-alert.closing {
    transform: translateY(150%);
}

.affiliate-link-alert > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.affiliate-link-alert-close {
    border: none;
    border-radius: 9999px;
    background-color: rgba(22, 89, 198, 0.2);
    color: #1659c6;
    font-size: 1.1rem;
    line-height: 1;
    width: 1.5rem;
    height: 1.5rem;
    transition: background-color 0.25s;
}

.affiliate-link-alert-close:hover, .affiliate-link-alert-close:focus-visible {
    background-color: rgba(22, 89, 198, 0.3);
}

@media (min-width: 550px) {
    .affiliate-link-alert {
        left: 1rem;
        bottom: 1rem;
        right: auto;
        color: #ffffff;
        background-color: #1659c6;
        border: 1px solid #035ded;
        padding: 0.75rem 1.25rem;
        border-radius: 0.75rem;
        max-width: min(460px, calc(100% - 2rem));
    }

    .affiliate-link-alert-close {
        background-color: #dce7fa;
    }

    .affiliate-link-alert-close:hover, .affiliate-link-alert-close:focus-visible {
        background-color: rgba(220, 231, 250, 0.8);
    }

    .affiliate-link-alert.is-scrolled-down {
        position: absolute;
    }

    .affiliate-link-alert.closing {
        transform: translateX(-150%);
    }
}

.vps-hosting-pricing-table .subtitle {
    font-size: 14px;
    color: #757575;
    font-weight: 400;
}

@media (min-width: 992px) {
    .vps-hosting-pricing-table .subtitle {
        display: block;
        margin-top: 4px;
    }
}
