.poem-generator-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 10px 20px;
    font-size: 22px;
}

.poem-generator {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.poem-field {
    width: 100%;
    position: relative;
}

.poem-generator label {
    position: absolute;
    background-color: white;
    line-height: 1;
    padding: 0px 3px 0px 3px;
    top: -10px;
    left: 10px;
    font-size: 16px;
}

.poem-generator input {
    color: black;
    background-color: white;
    border: 1px solid lightgray;
    border-radius: 10px;
    padding: 5px 10px !important;
    font-size: 25px;
    width: 100%;
    text-align: center;
}

.poem-generator input:focus {
    border: 1px solid black;
}

.poem-generator button {
    border-radius: 10px;
    padding: 15px;
    font-size: 22px;
}

.poem-generator button:disabled {
    background-color: gray;
}

.poem-generator-result {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
}

.an-item {
    width: calc(33.33% - 10px);
    border: 1px solid lightgray;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
}

.an-item .poem-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.an-item .poem-text {
    font-size: 20px;
    font-style: italic;
    white-space: pre-line;
}

.an-item .author {
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: darkblue;
    margin-top: 10px;
    border-top: 1px solid lightgray;
    width: fit-content;
}

.an-item-template {
    display: none;
}

.partner-recommendation {
    font-size: 14px;
    font-style: italic;
    font-weight: 500;
    line-height: 1;
    margin-top: 30px;
    /* flex: 1;
    display: flex;
    align-items: flex-end; */
}

.partner-recommendation a {
    color: #d62b00;
    text-decoration: none !important;
}

.partner-recommendation a:hover {
    color: red;
}

.other-site-recommendation-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 70px;
    margin-bottom: 50px;
}

.other-site-recommendation {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    border: 1px solid rgb(117, 0, 128);
    padding: 5px 10px;
    border-radius: 5px;
    background-color: white;
    text-align: center;
}

.other-site-recommendation a {
    color: rgb(117, 0, 128);
    text-decoration: none !important;
}

.spinner {
    display: block;
    width: 30px;
    height: 30px;
    border: 4px solid lightgray;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 768px) {
    .an-item {
        width: 100%;
    }
}