/* THis is the global style */
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #405664;
    padding: 30px;
} 
h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #05456a;
}
/* style for "block" 
they are used to divide sections
they can be expanded upon clicks
*/

/* auto-apply when user has dark mode enabled */
@media (prefers-color-scheme: dark) {
    html {
        filter: invert(1) hue-rotate(180deg);
    }
}

.block {
    margin-bottom: 30px;
}
.block:hover {
    background-color: #fff;
    box-shadow: 0 0 5px 0 rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}

.hidden {
    display: none;
    }


.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    left: 0;
    bottom: -100%;
    background-color: black;
    color: white;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 0.6rem;
}

.tooltip-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.censored {
    position: relative;
    color: transparent;          /* Hide the text initially */
  }
  
.censored::after {
content: "";
position: absolute;
inset: 0;                    /* cover entire text */
background: black;           /* black bar */
transition: opacity 0.3s ease;
}

.censored:hover::after {
opacity: 0;                  /* reveal text on hover */
}

.censored:hover {
color: inherit;              /* show the text's real color */
}

/* modify the prompt box */
/* Modal background overlay */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box */
.lang-modal {
    background: #ffffffdd;
    padding: 25px 30px;
    border-radius: 14px;
    max-width: 340px;
    text-align: center;
    font-family: "Lato", sans-serif;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: fadeIn 0.25s ease;
}
/* Modal text */
.lang-modal h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.lang-modal p {
    margin: 0 0 20px 0;
    font-size: 15px;
    color: #666;
}

/* Buttons */
.lang-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin: 0 6px;
    font-family: inherit;
}

.lang-yes {
    background: #5a788a;
    color: white;
}

.lang-no {
    background: #e5e5e5;
    color: #333;
}

.lang-btn:hover {
    opacity: 0.85;
}

/* Fade animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}