.scroll_article {
    height: 100vh;
    display: flex;
}

.scroll {
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-height: 100em;
    width: 70em; /* Default width for larger screens */
    border-radius: 20px;
}


.contents {
    max-height: 180vh;
    overflow-y: scroll;
    padding: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: space-evenly;
    gap: 1em;
}

.contents .desc1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.desc1 p {
    text-align: justify;
    font-size: 1rem;

}

iframe {
    margin: auto;
    padding: auto;
}

.contents img {
    width: 90%;
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 20px;
    position: relative;
    left: 50%;
    transform: translate(-50%);
    border: black solid 0.5px;
    padding: 0;
}

/* Custom scrollbar styling */
.contents::-webkit-scrollbar {
    width: 10px;
}

.contents::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.contents::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Mobile styles */
@media (max-width: 768px) {
    .scroll {
        width: 90%; /* Make the scroll box wider on smaller screens */
        margin: 10px auto; /* Reduce margin on mobile */
    }

    .contents {
        flex-direction: column; /* Stack content vertically on mobile */
        padding: 10px; /* Reduce padding for better fit on small screens */
        gap: 0.5em; /* Reduce gap between content blocks */
    }

    .contents img {
        width: 100%; /* Images take full width on mobile */
        height: auto; /* Maintain aspect ratio */
        margin-bottom: 10px;
    }

    .desc1 p {
        font-size: 0.9rem; /* Slightly smaller font size for mobile */
    }
}

/* Extra small screens (max-width: 480px) */
@media (max-width: 480px) {
    .scroll {
        width: 100%; /* Full width for very small screens */
        margin: 5px auto;
    }

    .contents {
        padding: 5px; /* Further reduced padding */
    }

    .desc1 p {
        font-size: 0.85rem; /* Smaller font size for readability on very small screens */
    }

    .contents img {
        width: 100%;
        height: auto;
    }
}
