/* Bangers */
@font-face {
  font-family: 'Bangers';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/bangers-v25-latin-regular.woff2') format('woff2');
  font-display: swap;
}

/* Permanent Marker */
@font-face {
  font-family: 'Permanent Marker';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/permanent-marker-v16-latin-regular.woff2') format('woff2');
  font-display: swap;
}

/* Comic Neue */
@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/comic-neue-v9-latin-regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/comic-neue-v9-latin-700.woff2') format('woff2');
  font-display: swap;
}

:root {
    --brown: #8B4513;
    --gold: #FFD700;
    --cream: #FFF8DC;
}

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

body {
  font-family: 'Comic Neue';
  background: var(--cream);
  color: #333;
  text-align: center;
  padding: 0.5rem 1rem 1rem 1rem;
  position: relative; /* Needed for ::before */
  min-height: 100vh;
}

/* Toilet paper overlay — behind content, no opacity on text
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/tpRollBackGround.png');
  background-repeat: no-repeat;
  background-position: 15% 10%;     
  background-attachment: fixed;
  background-size: 220px auto;
  opacity: 0.17;                    
  pointer-events: none;
  z-index: -1;
  background-blend-mode: overlay;
}

@media screen and (max-width: 576px) {
  body:before {
    background-position: -34px -40px; 
    background-size: 140px auto; 
  }
}

@media screen and (min-width: 576.1px) {
    body:before {
    background-position: 15% 10%; 
  }
}

@media screen and (min-width: 1800px) {
  body:before {
    background-position: 20% 10%; 
  }
} */


h1 {
   color: var(--brown);
   font-size: 3rem;
   margin-bottom: 0.35rem;
   font-family: 'bangers'; 
   font-size: 4.5rem; 
   letter-spacing: 0.29rem; 
   text-shadow: 3px 3px 0px #654321; 
   line-height: 1; 
}

.heroToilet1, .heroToilet2 {
    width: 100px; 
    height: auto; 
}

.heroToiletAboveTitle {
    width: 110px; 
    height: auto;
}

p.tagline {
    font-family: 'Permanent Marker';
     font-size: 1.6rem;
     color: #555;
     margin: 0rem 0rem 1.5rem 0rem;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.7);
}

.upload-box {
    background: var(--gold);
    padding: 1.5rem;
    border-radius: 1rem;
    display: inline-block;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
}

input[type="file"] {
    display: block;
    margin: 1rem auto;
    font-size: 1.1rem;
}

button {
    background: var(--brown);
    color: white;
    border: none;
    padding: .75rem 1.5rem;
    font-size: 1.2rem;
    border-radius: .5rem;
    cursor: pointer;
    transition: .2s;
    font-family: 'Bangers';
    letter-spacing: 0.1rem; 
}

button:hover {
    background: #654321;
}

#status {
    margin-top: 1rem;
    font-weight: bold;
    min-height: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);   
  gap: 1.5rem;
  justify-content: center;          
  margin: 3rem auto;
  padding: 0 1rem;
  max-width: 1400px;
}

.log-card {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border: 6px solid var(--brown);
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.log-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(139,69,19,0.3);
}

.log-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;                
  object-position: center;          
  display: block;
  transition: transform 0.4s ease;
}

.log-card:hover img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--brown);
  padding: 6px 10px;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

footer {
    margin-top: 4rem;
    font-size: .8rem;
    color: #666;
    padding-bottom: 4rem;
}

footer a {
    color: #8B4513;
    text-decoration: underline;
}



@media (max-width: 600px) {
    .heroToilet1, .heroToilet2 {
        display: none;
    }

    h1 {
        font-size: 3.75rem;
    }

    .epicLogsTitle {
        margin-top: -0.5rem;
    }
}

@media screen and (min-width: 600.1px) {
    .heroToiletAboveTitle {
        display: none; 
    }
}

/* Smooth fade-in for modal */
#entryModal {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


