body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.marquee-link {
    text-decoration: none;
    color: inherit;
}

.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.marquee {
    font-family: Arial, sans-serif;
    font-size: 400%;
    font-weight: bold;
    font-style: italic;
    color: #000;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    animation: marquee 12s linear infinite;
    padding: 60px 60px;
}

hr.divider {
    border: none;
    height: 1px;
    background-color: #f1f1f1;
    width: 80%;
    margin: 8px auto;
}

.poem-name {
    font-size: 400%;
    font-style: italic;
    font-weight: bold;
    color: #000;
    width: 100%;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    position: relative;
    z-index: 5; 
}

@keyframes marquee {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-60%);
    }
}

.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 100px;
    padding: 200px;
    margin-top: -180px;
    margin-bottom: -120px;
}

.poem-block {
    background-color: #fff;
    border-radius: 9px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    height: 600px;
    overflow: hidden;
}

.poem-block:hover {
    background-color: #f1f1f1;
}

.poem-title {
    font-size: 150%;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.poem-content {
    font-size: 100%;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(100% - 38px);
}

.poem-title-t {
    font-size: 200%;
    font-weight: bold;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 10px;
}

.poem-content-c {
    font-size: 150%;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    margin-bottom: 30px;
}

.error-container {
    font-size: 400%;
    font-weight: bold;
    text-align: center;
    min-height: calc(45vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#custom-image {
    width: 120px;
    height: 120px;
    position: absolute;
    cursor: grab;
    z-index: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .marquee {
        font-size: 200%;
        padding: 30px 0;
    }

    .poem-name {
        font-size: 200%;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .poem-block {
        height: auto;
    }

    .poem-title {
        font-size: 120%;
        text-align: center;
    }

    .poem-content {
        font-size: 90%;
        text-align: center;
        height: auto;
        overflow: visible;
    }

    .poem-title-t {
        font-size: 150%;
    }

    .poem-content-c {
        font-size: 100%;
    }

    .error-container {
        font-size: 200%;
        min-height: calc(28vh);
    }

    .footer {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.footer {
    font-size: 100%;
    font-weight: bold;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
    color: #000;
}

.footer a {
    color: #000;
    text-decoration: none;
    margin: 135px;
}

footer {
    font-size: 100%;
    font-weight: bold;
    text-align: center;
    padding: 30px 0;
    color: #000;
}
