@font-face {
    font-family: 'DroidSerif-Regular';
    src: url('fonts/DroidSerif-Regular.woff2') format('woff2'),
         url('fonts/DroidSerif-Regular.woff') format('woff'),
         url('fonts/DroidSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Optimizes font loading behavior */
}

*, :after, :before {
    box-sizing: border-box;
}

:root {
    --white: #fff;
    --black: #313131;
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: initial;
}

html {
    font-size: 100%;
    background-color: var(--white);
    scroll-behavior: smooth;
    /* https://css-tricks.com/fixing-smooth-scrolling-with-find-on-page/ */
    /* I figured it out why. I disabled in the control-panel/system/advanced-system-setting/performance */
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    /* overflow: hidden; */
    color: var(--black);
    font-family: 'DroidSerif-Regular', 'Trebuchet MS', 'Helvetica Neue', Verdana, Geneva, Tahoma, sans-serif;
    line-height: 1.5;
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: white;
    z-index: -1;
    /* overflow: hidden; */
}

.gradient-1,
.gradient-2,
.gradient-3 {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(80px);
    opacity: 0.8;
    mix-blend-mode: multiply;
}

.gradient-1 {
    background: radial-gradient(circle at center, #ffd700, transparent 70%);
    animation: moveGradient1 25s infinite;
}

.gradient-2 {
    background: radial-gradient(circle at center, #90EE90, transparent 70%);
    animation: moveGradient2 30s infinite;
}

.gradient-3 {
    background: radial-gradient(circle at center, #ffa011, transparent 70%);
    animation: moveGradient3 35s infinite;
}

@keyframes moveGradient1 {
    0% { transform: translate(-25%, -25%) rotate(0deg); }
    50% { transform: translate(25%, 25%) rotate(180deg); }
    100% { transform: translate(-25%, -25%) rotate(360deg); }
}

@keyframes moveGradient2 {
    0% { transform: translate(25%, -25%) rotate(0deg); }
    50% { transform: translate(-25%, 25%) rotate(180deg); }
    100% { transform: translate(25%, -25%) rotate(360deg); }
}

@keyframes moveGradient3 {
    0% { transform: translate(0%, 25%) rotate(0deg); }
    50% { transform: translate(25%, -25%) rotate(180deg); }
    100% { transform: translate(0%, 25%) rotate(360deg); }
}

.main {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

.main__title {
    color: var(--black);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: var(--border-radius);

    background: rgba(255, 255, 255, 0.25);
    /* box-shadow: var(--box-shadow); */
    backdrop-filter: blur(8.1px);
    -webkit-backdrop-filter: blur(8.1px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.gallery__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* box-shadow: var(--box-shadow); */
    margin-bottom: 20px;
}
