.prompt-info {
    background-color: var(--card-color);
    border: 1px solid var(--line-color);
    border-bottom: none;
    border-left: none;
    border-top: none;
    font-size: 1.0625rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px 7% 100px;
}

.prompt-info h1 {
    color: white;
    font-size: calc(1.5rem + 0.3vw);
    margin-top: 10px;
    margin-bottom: 10px;
}

.prompt-description {
    color: white;
    font-size: 1.125rem;
    margin-top: 10px;
    margin-bottom: 0;
}

.prompt-text-container {
    margin-top: 18px;
}

.prompt-text {
    color: white;
    font-size: 1.125rem;
    margin-bottom: 10px;
    padding: 35px 10px 10px;
    background-color: #1a183a;
    position: relative;
}

.copy-button {
    position: absolute;
    right: 0;
    top: 0;
    background-color: inherit;
    border: 1px solid #1a183a;
    /*border: 1px solid #1a174d;*/
    border-radius: 8px;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 10px;
}

.copy-button img {
    width: 30px;
    aspect-ratio: 1/1;
}

.copy-button:hover {
    background-color: #2a183a;
    transition: 0.3s ease-in-out;
}

.prompt-text ul, .prompt-text ol {
    padding-left: 20px;
}

.prompt-text pre {
    width: 100%;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
}

.author-container {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line-color);
}

.author-container img {
    width: 50px;
    border-radius: 50%;
    margin-right: 10px;
    aspect-ratio: 1/1;
}

.author-container div {
    display: flex;
    flex-direction: column;
    align-self: start;
    color: white;
}

.author-container div p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.author-container a {
    color: white;
    font-size: 1.0625rem;
    text-decoration: none;
}

.author-container a:hover {
    color: #f1e739;
    transition: 0.3s ease-in-out;
}

.field-type {
    color: white;
    font-size: 1.125rem;
    align-self: center;
}

.task-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 12px;
    margin-top: 20px;
}

.first-task-container {
    margin-top: 5px;
}

.task {
    color: white;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: 1px solid #3a0ca3;
    border-radius: 12px;
    padding: 8px 16px;
    margin: 0;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.2);
}

.task:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 201, 240, 0.4);
    background: linear-gradient(135deg, #4cc9f0, #4361ee);
    transition: 0.3s ease-in-out;
}

.prompt-rec-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 15px;
}

.prompt-rec-link-img {
    width: 100%;
    height: 200px;
    display: flex;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
}

.post-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 5px;
    padding-bottom: 5px;
}

.post-feature {
    display: flex;
    justify-content: end;
    align-items: center;
}

.post-feature img {
    width: 30px;
}

.feature {
    color: white;
    font-size: 1.0625rem;
    position: relative;
}

.prompt-rec-link-img.gradient-1 {
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
}
.prompt-rec-link-img.gradient-2 {
    background: linear-gradient(135deg, #3494e6, #ec6ead);
}
.prompt-rec-link-img.gradient-3 {
    background: linear-gradient(135deg, #5f4d93, #47cdda);
}
.prompt-rec-link-img.gradient-4 {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
}

.prompt-rec-link-img img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.prompt-rec-description-container {
    color: white;
    display: flex;
    flex-direction: column;
}

.prompt-rec-description-container h3 {
    color: white;
    font-size: 1.125rem;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.prompt-rec-description-container h3 a {
    color: white;
    text-decoration: none;
    transition: 0.5s ease-in-out;
}

.prompt-rec-description-container h3 a:hover {
    color: #f1e739;
}

.prompt-rec-similar-description {
    margin: 0;
    font-size: 1.0625rem;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.prompt-language {
    color: white;
    font-size: 1.125rem;
    margin-top: 5px;
    margin-bottom: 5px;
}

@media screen and (max-width: 1023px) {
    .prompt-info {
        grid-column: 2;
        width: 100%;
        display: block;
        padding-bottom: 0;
        border-right: none;
        border-bottom: none;
        grid-area: main;
        margin-bottom: 20px;
    }
    .rec-container {
        border-bottom: 1px solid var(--line-color);
    }
    .prompt-rec-container {
        width: 100%;
        flex-direction: row;
        gap: 10px;
        justify-content: center;
    }
    .prompt-rec-link-img {
        width: 35%;
        height: 150px;
    }
    .prompt-rec-description-container {
        align-self: start;
        width: 60%;
    }

}

@media screen and (max-width: 768px) {
    .prompt-info {
        grid-area: main;
        padding-left: 3%;
        padding-right: 3%;
    }
    .prompt-info h1 {
        font-size: 1.375rem;
    }
    .prompt-text, .prompt-description {
        font-size: 1rem;
    }
}

@media screen and (max-width: 650px) {
    .prompt-rec-container {
        flex-direction: column;
    }
    .prompt-rec-link-img {
        width: 100%;
        height: 150px;
        max-width: 320px;
    }
    .prompt-rec-description-container {
        align-self: center;
        width: 100%;
    }
    .author-container img {
        width: 40px;
    }
    .author-container a, .author-container p {
        font-size: 1rem;
    }
    .feature {
        font-size: 1rem;
    }
}