.gif {
    width: 60px;
    height: 60px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 32px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.gif.bg {
    width: 60px;
    height: 60px;

    background-color: white;

    padding: 3px;

    margin-bottom: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 32px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.gif-small {
    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 5px;

    font-size: 32px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.gif-Xsmall {
    width: 15px;
    height: 15px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 5px;

    font-size: 32px;

    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.button-section {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 10px 2%;
    box-sizing: border-box;
}

.button-container {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;

    width: min(85%, 1100px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: clamp(10px, 2vw, 30px);

    z-index: 3;
}

.alt-container {
    position: relative;

    bottom: 15px;

    align-items: center;
    justify-content: center;

    width: 50%;

    max-width: 50%;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(1, 1fr);

    z-index: 300;

    gap: 30px;
}

.alt-container.wide {
    position: relative;

    bottom: 10px;

    align-items: center;
    justify-content: center;

    width: 75%;

    max-width: 75%;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(1, 1fr);

    z-index: 300;

    gap: 10px;
}

.small-container {
    position: relative;

    bottom: 5px;

    align-items: center;
    justify-content: center;

    width: 50%;

    max-width: 50%;

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    z-index: 300;
}

.base-button {
    min-height: auto;
    min-width: auto;

    padding: 15px 10px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    list-style: none;
    text-decoration: none;

    border-radius: 20px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    text-align: center;

    background: var(--main-button);

    color: var(--dark-text);

    font-size: var(--button-text-size);

    font-weight: 700;

    letter-spacing: 0.5px;

    z-index: 300;

    cursor: pointer;
}

.small-button {
    font-size: calc(var(--button-text-size) - 2px);
    border-radius: 10px;

    min-height: auto;
    min-width: auto;

    padding: 5px 5px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    list-style: none;
    text-decoration: none;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    text-align: center;

    background: var(--main-button);

    color: var(--dark-text);

    font-weight: 700;

    letter-spacing: 0.5px;

    z-index: 300;

    cursor: pointer;
}

.invert-button {
    min-height: auto;
    min-width: auto;

    padding: 15px 10px;

    display: flex;

    flex-direction: row;

    align-items: center;
    justify-content: center;

    list-style: none;
    text-decoration: none;

    border: 3px solid var(--accent-text);

    border-radius: 20px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;

    text-align: center;

    background: var(--dark-button);

    color: var(--accent-text);

    font-size: var(--button-text-size);

    font-weight: 700;

    letter-spacing: 0.5px;

    z-index: 300;

    cursor: pointer;
}

.invert-button:hover {
    background: var(--dark-hover);

    transform:
        scale(1.05);
}

.invert-button:active {
    transform:
        scale(0.96);
}

.base-button:hover {
    background: var(--main-hover);

    transform:
        scale(1.05);
}

.base-button:active {
    transform:
        scale(0.96);
}

.small-button:hover {
    background: var(--main-hover);

    transform:
        scale(1.05);
}

.small-button:active {
    transform:
        scale(0.96);
}

.non-button {
    min-height: auto;
    min-width: auto;

    padding: 5px 5px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    list-style: none;
    text-decoration: none;

    border: 2px solid #202020;

    border-radius: 20px;

    text-align: center;

    background: var(--info-card-bg);

    color: var(--light-text);

    font-size: calc(var(--card-par-size) + 2px);

    font-weight: 700;

    letter-spacing: 0.5px;

    z-index: 300;

    cursor: pointer;
}


.non-button:hover {
    transform:
        scale(1.05);

    background: var(--non-button-hover);
}

.non-button:active {
    transform:
        scale(0.96);
}

.non-button p {
    color: var(--muted-text);
    font-size: calc(var(--card-par-size) + 2px);
}

.non-button h3 {
    color: var(--light-text);
    font-size: calc(var(--card-par-size) + 2px);
}

.button-icon {
    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--info-icon-bg);

    font-size: 25px;

    flex-shrink: 0;

    margin-bottom: 2px;
}

.toggle-container {
    display: inline-flex;
    border-radius: 999px;
    border: 1px solid #ccc;
    overflow: hidden;
    background: #f5f5f5;
    font-family: sans-serif;
    cursor: pointer;
    position: relative;
}

.toggle-option {
    padding: 8px 20px;
    position: relative;
    z-index: 2;
    font-size: 14px;
    color: var(--muted-text);
    user-select: none;
    transition: color 0.25s ease;
}

.toggle-container.active-left .toggle-option.left,
.toggle-container.active-right .toggle-option.right {
    color: #fff;
}

.toggle-highlight {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: var(--dark-accent-text);
    border-radius: 999px;
    z-index: 1;
    transition: transform 0.25s ease;
}

.toggle-container.active-left .toggle-highlight {
    transform: translateX(0%);
}

.toggle-container.active-right .toggle-highlight {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .button-container {
        width: 85%;

        grid-template-columns: 1fr;

        gap: 7px;
    }
}

@media (max-width: 650px) {

    .toggle-option {
        font-size: 12px;
    }
}

@media (max-width: 450px) {
    .base-button {
        font-size: 13px;
    }

    .toggle-option {
        font-size: 10px;
    }

    .non-button {
        font-size: calc(var(--card-par-size) - 2px);
    }

    .non-button p {
        color: var(--muted-text);
        font-size: calc(var(--card-par-size) - 2px);
    }

    .non-button h3 {
        color: var(--light-text);
        font-size: calc(var(--card-par-size) - 2px);
    }

    .gif-small {
        width: 15px;
        height: 15px;
    }

    .button-icon {
        width: 25px;
        height: 25px;
        border-radius: 5px;
    }
}

@media (max-width: 400px) {
    .gif-Xsmall {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 335px) {
    .non-button {
        font-size: calc(var(--card-par-size) - 4px);
    }

    .non-button p {
        color: var(--muted-text);
        font-size: calc(var(--card-par-size) - 4px);
    }

    .non-button h3 {
        color: var(--light-text);
        font-size: calc(var(--card-par-size) - 4px);
    }
}