* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

@font-face {
  font-family: 'iA Writer Duo S';
  src: url('/iAWriterDuoS-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'iA Writer Duo S';
  src: url('/iAWriterDuoS-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'iA Writer Duo S';
  src: url('/iAWriterDuoS-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'iA Writer Duo S';
  src: url('/iAWriterDuoS-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body {
    margin: 0;
    font-family: 'iA Writer Duo S', 'SF Mono', monospace;
    background: linear-gradient(to bottom, #f9f9f9, #e9e9e9);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 8px;
    line-height: 1.6;
    transition: filter 10ms ease;
    overscroll-behavior: none;
    font-size: 16px;    
}

.con {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: minmax(80px, auto);
    text-align: left;
}

.con div {
    padding: 4px 4px;
}

.con a {
    padding: 4px 4px;
    text-decoration: none;
    color: #2563eb;
}

.con a:has(img) {
    text-align: center;
    margin: 0 auto;
}

.con a.important {
    background-color: black;
    color: white;
    text-decoration: underline;
    font-weight: bold;
}

.con a:hover {
    background-color: #2563eb;
    color: white;
    /* transform: translateY(-1px); */
}

.con .text {
    display: inline-block;
    margin: 4px 4px;
    padding: 4px 2px;
    color: black;
    font-size: 16px;
    font-style: italic;
}

.con .bigtext {
    font-size: 32px;
    font-family: times, serif;
    text-align: center;
    margin: 4px;
    transform: scaleY(1.25);
}

.con .bigtext img {
    transform: scaleY(0.8);
    vertical-align: -10px
}

.box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 3px solid black;
    padding: 10px 30px;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0px;
    width: 13em;
    text-align: center;
    z-index: 10;
    box-shadow: 8px 8px 0px black;
    transition: all 0.5s ease;
}

.box img {
    height: 80px;
    width: auto;
    border-radius: 50%;
}

.box.moved {
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .box {
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 18px;
        padding: 15px 25px;
    }
    
    .box img { height: 60px; }
}
