/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

body {
  background-color: white;
  color: black;
  font-family: 'Coral Pixels', 'VT323', sans-serif;
}

h1, h2, h3 {
    font-family: 'Coral Pixels', sans-serif;
}

p {
    font-family: 'VT323', sans-serif;
    margin: 0;
}
body {
    margin: 0;
    overflow-y: auto; /* allow vertical scrolling */
}
#static-overlay {
    position: fixed;
    inset: 0;
    background: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.1s;
}

#password-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 250px;
}

#password-input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    text-align: center;
} 
    #dream-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-box {
    background: #111;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 320px;
    font-family: Arial, sans-serif;
}

#dream-next {
    margin-top: 15px;
    padding: 10px 15px;
    cursor: pointer;
}

.ad-header {
    background: #c0c0c0;
    margin: -15px -15px 15px -15px;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 12px;
    border-bottom: 1px solid black;
}

.ad-header button {
    border: 1px solid black;
    background: white;
    cursor: pointer;
}
#startup-modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
}

#startup-modal .modal-box {
    width: 250px;
    background: white;
    border: 2px solid black;
    padding: 15px;
    box-shadow: 4px 4px 0 black;
    text-align: center;
}
.items-gallery,
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-gallery p {
    margin-bottom: 10px;
}

.storylink {
    text-align: center;
}
.storylink img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.storylink p {
    margin: 0 0 10px;
}