body { background: linear-gradient(to bottom, #FAB1C3, #FEC1B3); background-size: cover; background-attachment: fixed; margin: 2em 1em; } header { text-align: center; color: white; } #splash { position: relative; max-width: 70%; margin: 0 auto; transition: 0.4s; } #splash img { max-width: 100%; } #splashmain { position: absolute; top: 0; left: 0; animation: floatmain 2s ease-in-out infinite alternate; } #splashbg { animation: floatbg 3s ease-in-out infinite alternate; filter: drop-shadow(-0.33vw 0.63vw var(--pink)); } header h1 { font-size: 2.5em; transition: 0.3s; rotate: 1deg; color: var(--deadwhite); text-shadow: -2px 2px var(--pink); margin-top: -0.5em; } header p { margin-top: -1em; font-style: italic; color: var(--dark); letter-spacing: 1px; } header i { color: inherit; margin: 0 2px; } footer { border-radius: 5px; text-align: center; } footer a { border-radius: 5px; text-decoration: none; background-color: #FEF0ED; padding: 0.5em 3em; } /*** the actual body area ***/ #full { margin: 1em; display: flex; justify-content: space-between; } .col { background-color: var(--deadwhite); border: 1px solid var(--pink); padding: 1em; border-radius: 10px; } #left, #right { width: calc(20% - 1em); } #middle { width: calc(60% - 1em); padding: 2em; } h1 { text-align: center; } h2 { font-size: 1.5rem; font-style: italic; } h3 { border-bottom: 2px solid var(--silhouette); font-size: 1.3rem; margin-top: 1.5em; } h4 { background-color: var(--bgpink); margin-bottom: 5px; margin-top: 1.5em; font-size: 1.2em; } h5 { font-size: 1em; margin: 1em; border-bottom: 1px dotted var(--pink); } blockquote { background-color: var(--pale); margin: 1em 0; padding: 0.5em 1em; border-left: 2px solid palevioletred; } /** navigation **/ nav .subtitle, #left nav ul { margin-top: -0.5em; color: palevioletred; } #left nav ul { margin-left: -2.5em; } #right ul { margin-left: -1.25em; } .toc ul { list-style-type: "↳ "; } #left nav li { list-style-type: none; margin-bottom: 2px; padding: 0 5px; background-color: var(--bgpink); &:hover { background-color: var(--dark); } } #left nav a { text-decoration: none; &:hover { color: var(--bgpink); } } #left nav a.active { color: white; } #left nav a.active li { background-color: palevioletred; } main h3 a, main h4 a, main h5 a, main h6 a { text-decoration: none; cursor: inherit; color: inherit; &:hover { color: palevioletred; } } .callout { padding: 1em; background-color: var(--bgpink); color: var(--darker); border: var(--silhouette) 1px solid; } .twocol { display: flex; column-gap: 1em; } details { border: 1px var(--pink) dashed; } summary { background-color: var(--bgpink); padding: 5px; } /** gallery **/ .gallery { margin: 1em; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 5px; column-gap: 10px; } .gallery a { text-decoration: none; } .gallery img { height: 120px; width: 120px; object-fit: cover; border-radius: 5px; &:hover { opacity: 0.9; } } img.fancybox-image[alt] { border: none; } .fancybox__caption { font-size: 1.1em; } .fancybox__caption a { color: var(--deadwhite); } /** animation **/ @keyframes floatmain { from {transform: translateY(0.2em);} } @keyframes floatbg { from {transform: translateY(-0.2em);} } @media only screen and (max-width: 800px) { #splash { max-width: 100%; } header h1 { margin-top: -0.2em; } h3 { margin-top: 1.5em; } #full { flex-wrap: wrap; margin: 1em auto; } #left, #middle, #right { width: 100%; margin-bottom: 1em; } #left nav ul { text-align: center; } #left nav li { display: inline-block; font-size: 1.1em; margin: 4px; } .twocol { flex-wrap: wrap; } }