@import url('site-theme.css');

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
}

#viewToggle {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    transition: opacity 0.3s ease;
}

#viewToggle.hidden {
    opacity: 0;
    pointer-events: none;
}

#viewToggle button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#viewToggle button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

#text_view {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    font-family: 'Arial', sans-serif;
    line-height: 2;
    font-size: 22px;
    color: orangered;
    font-weight: bold;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 20px auto;
    max-height: 80vh;
}

#text_view img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
    margin: 0 auto 20px;
}

#text_view p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 18px;
    text-align: justify;
    color: orangered;
}

@media (max-width: 768px) {
    #text_view {
        font-size: 18px;
        font-weight: bold;
    }
}

@media (max-width: 480px) {
    #text_view {
        font-size: 14px;
        font-weight: bold;
    }
}

.centered-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.word {
    transition: background-color 0.3s ease;
}

.highlight {
    background-color: yellow;
}
