.main-theme-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    width: 100%;
    margin: 15px auto;
    font-size: 1.125rem;
    align-items: flex-start;
    color: var(--text-color);
}

.themes-by-class-container {
    width: 60%;
    padding: 30px;
    background-color: var(--second-color);
    border-radius: 15px;
    border: 2px solid var(--base-border-color);
    min-width: 310px;
}

.themes-by-class-container h1 {
    color: white;
    font-size: 1.75rem;
    margin-top: 0;
}

.theme-wrapper {
    padding-left: 10px;
    margin-top: 80px;
    list-style: none;
}


.theme-little-wrapper {
    margin-bottom: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
}

.theme-little-wrapper span {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--base-border-color);
}

.theme-little-wrapper:hover .theme-little-wrapper span {
    transition: 0.3s ease-in-out;
    border-bottom: 2px solid var(--button-color);
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tooltip-text {
    animation: moving 1.5s ease-out infinite;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: #fff;
    color: #000;
    font-size: 1rem!important;
    border-radius: 4px;
    /*white-space: nowrap;*/
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 1;
    visibility: visible;
    cursor: initial;
}

@keyframes moving {
    0% { transform: translateY(-2px); }
    50% { transform: translateY(0px); }
    100% { transform: translateY(2px); }
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}


.theme-wrapper {
    padding-left: 0;
    margin-top: 80px;
    list-style: none;
}

.theme-card-wrapper {
    margin-bottom: 15px;
}

.theme-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--second-color);
    border: 2px solid var(--base-border-color);
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
}

.theme-card:hover {
    background-color: #2a2a2a;
    border-color: var(--button-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-text {
    font-size: 1.25rem;
    flex: 1;
    padding-right: 15px;
    margin: 0;
}

.theme-arrow {
    font-size: 1.5rem;
    color: var(--button-color);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.theme-card:hover .theme-arrow {
    transform: translateX(4px);
}



.theme-hover-tooltip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background-color: #fff;
    color: #000;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
    pointer-events: none;
}

.theme-hover-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

.theme-card:hover .theme-hover-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-120%);
}



/* Адаптивность */
@media screen and (max-width: 768px) {
    .theme-card {
        padding: 12px 15px;
    }

    .theme-text {
        font-size: 1.125rem;
    }

    .theme-arrow {
        font-size: 1.375rem;
    }
}

@media screen and (max-width: 500px) {
    .theme-text {
        font-size: 1rem;
    }

    .theme-arrow {
        font-size: 1.25rem;
    }
}



.aside-theme-container {
    display: flex;
    width: 25%;
    min-width: 330px;
    max-width: 350px;
    flex-direction: column;
    align-items: center;
    row-gap: 20px;
    position: sticky;
    top: 10px;
}

.generation-offer-container {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.generation-offer-container h2, .generation-offer-container-mobile h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    margin-top: 0;
    text-align: center;
}

.generation-offer-container p {
    margin: 5px auto;
    margin-bottom: 20px;
}

.features-full {
    list-style: none;
    padding-left: 0;
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.features-full li {
    margin-bottom: 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
}

.features-full li img {
    width: 25px;
    aspect-ratio: auto 1 / 1;
}

.create-button {
    text-decoration: none;
    text-align: center;
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    background-color: var(--button-color);
    padding: 12px 25px;
    border-radius: 12px;
    display: block;
    width: 100%;
}

.pulse {
    animation: pulse 3s infinite;
}

.create-button:hover {
    background-color: #a7fffa;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); box-shadow: 0 0 15px rgba(167, 255, 250, 0.7); }
    100% { transform: scale(1); }
}

.generation-offer-container-mobile {
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    padding: 10px;
    width: 100%;
    display: none;
}

.features-full-mobile {
    list-style: none;
    padding-left: 0;
    font-size: 1.125rem;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    column-gap: 10px;
}

.features-full-mobile li {
    margin-bottom: 15px;
    display: flex;
    justify-content: start;
    align-items: center;
    column-gap: 10px;
    width: 45%;
}

.features-full-mobile li img {
    width: 25px;
    aspect-ratio: auto 1 / 1;
}



@media screen and (max-width: 1023px) {
    .themes-by-class-container {
        width: 90%;
    }
    .aside-theme-container {
        width: 90%;
        max-width: none;
        margin-top: 15px;
    }
    .generation-offer-container-mobile {
        display: block;
    }
    .generator-offer {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .themes-by-class-container {
        width: 95%;
        padding: 15px;
    }
    .themes-by-class-container h1 {
        font-size: 1.5rem;
    }
    .aside-theme-container {
        min-width: 310px;
        width: 95%;
    }
    .generation-offer-container {
        padding: 10px;
    }
}

@media screen and (max-width: 500px) {
    .themes-by-class-container h1 {
        font-size: 1.25rem;
    }
    .features-full-mobile {
        flex-direction: column;
    }
    .features-full-mobile li {
        width: 100%;
    }
    .theme-little-wrapper span {
        font-size: 1.0625rem;
    }
    .generation-offer-container-mobile h2 {
        font-size: 1.125rem;
    }
    .generation-offer-container h2 {
        font-size: 1.125rem;
    }
    .generation-offer-container p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .features-full-mobile {
        font-size: 1.0625rem;
        margin-bottom: 10px;
    }
    .features-full-mobile li img {
        width: 20px;
    }
    .create-button {
        font-size: 1.125rem;
        padding: 10px 20px;
    }
}