/* FONT SIZE STYLES */
.font-size-small  { font-size: 14px; }
.font-size-medium { font-size: 16px; }
.font-size-large  { font-size: 18px; }

/* Constrain article width for readability */
.container.is-article {
    max-width: 800px;
}

/* FADE-IN ANIMATION */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.7s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* VIDEO HERO */
.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.video-container video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.video-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-family: serif;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-size: 7vw;
    opacity: 0;
    animation: fadeInText 3s ease-out forwards;
}
@keyframes fadeInText {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* BACK TO TOP BUTTON */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    border: none;
    background-color: #485fc7;
    color: white;
    transition: background-color 0.2s;
}
#back-to-top:hover {
    background-color: #3a4fb0;
}
