:root {
  --main-bg-color: black;
  --accent-color: white;
  --border-color: white;
  --font-family: "Times New Roman", serif;
}

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

body {
  background-color: var(--main-bg-color);
  color: var(--accent-color);
  font-family: var(--font-family);
  text-align: center;
}

/* Header with ASCII */
header {
  width: 100%;
  padding: 20px;
  border-bottom: 1px dashed var(--border-color);
}

.ascii-art {
  font-family: 'Courier New', Courier, monospace;
  white-space: pre;
  overflow-x: auto;
}

.ascii-art a:hover { text-decoration: none; }

/* Desktop vs Mobile ASCII */
#ascii-art-desktop { display: block; }
#ascii-art-mobile { display: none; }

@media (max-width: 600px) {
  #ascii-art-desktop { display: none; font-size: 14px; }
  #ascii-art-mobile { display: block; font-size: 5.3px; }
}

.blog-section {
  max-width: 650px;
  width: 90%;
  margin: 40px auto;
}


.gif-square {
  max-width: 480px;  
  margin: 0 auto 24px;
  text-align: center;
}

.gif-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-color);
}

.gif-caption {
  font-style: italic;
  font-size: 18px;
  margin-top: 10px;
  text-align: center;
}


.collapsible-section {
  max-width: 600px;
  margin: 40px auto;
  font-family: "Times New Roman", serif;
  color: var(--accent-color);
  text-align: left;
}

details {
  margin-bottom: 12px; 
}

summary {
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 4px;
}

ul {
  list-style-type: none;
  margin: 2px 0 6px 18px; 
  padding: 0;
}

li {
  margin: 2px 0; 
}

.highlight {
  background-color: #2a2a2a; 
  padding: 4px 8px;
  margin-top: 4px;
  margin-left: 20px; 
  border-radius: 3px;
  font-style: none;
  display: block; 
}

a {
  color: var(--accent-color);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}


/* Footer */
.footer {
  width: fit-content;
  margin: 20px auto;
  padding: 15px 30px;
  border: 2px solid var(--border-color);
  font-size: 15px;
}

/* Links */
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Fixed Logo */
.fixed-logo {
  position: fixed;
  bottom: 20px;
  left: 40px;
  width: 120px;
  height: auto;
  z-index: 1000;
}

@media (max-width: 600px) {
  .fixed-logo {
    width: 50px;
    left: auto;
    right: 20px;
    bottom: 10px;
  }
}

.footer2 {
    display: grid;
    grid-template-columns: repeat(3, 88px);  
    gap: 5px;                                
    justify-content: center;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.footer2 img {
    width: 88px;
    height: 31px;
    margin: 0;           
    padding: 1;
    display: block;      
    animation: bumperGlow 1.5s ease-in-out infinite;
}

@media (max-width: 600px) {
    .footer2 {
        grid-template-columns: repeat(3, 88px);  
        gap: 2px;  
    }
}


@keyframes bumperGlow {
    0%, 100% { box-shadow: 0 0 20px; }
    50% { box-shadow: 0 0 30px; }
}

  .entry-section {
    padding: 1em;
    max-width: 600px;
    margin: auto;
  }

  .blog-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid var(--border-color);
  }

  .img-caption {
    font-style: italic;
    text-align: center;
    font-size: 16px;
    margin-top: 0.5em;
 }
 .nav-links {
  text-align: center;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid #ccc;
  line-height: 1.6;
 }
 
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;       
    padding: 8px;   
    justify-items: center; 
}

.gallery-image {
    width: 100%;
    aspect-ratio: 3 / 4; 
    object-fit: cover;     
    border: 1px solid #ccc;
    transition: transform 0.2s;
    display: block;
}

@media only screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); 
        gap: 6px;
    }
    .gallery-image {
        width: 100%;
        aspect-ratio: 3 / 4; 
    }
}


.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;  
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    display: flex;
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    box-sizing: border-box;
}

.modal-content {
    max-width: 90vw;  
    max-height: 90vh; 
    aspect-ratio: 3 / 4; 
    object-fit: contain; 
    border: 3px solid #ccc;
    display: block;
    
}/* 4:3 modal content */
#myModal4_3 .modal-content {
    max-width: 90vw;   
    max-height: 90vh;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border: 3px solid #ccc;
    display: block;
}

}


.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #f1f1f1;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1100;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}


.pagination-links {
    display: flex;
    justify-content: center;
    padding: 10px 0; 
    margin: 20px 0; 
    
    font-size: 18px; 
}
.pagination-links a {
    color: white; 
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s, text-decoration 0.3s; 
}
.pagination-links a:hover,
.pagination-links a:visited {
    text-decoration: underline; 
    color: white;

}
/* 4:3 Gallery */
.gallery-4-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    padding: 8px;
    justify-items: center;
}

.gallery-image-4-3 {
    width: 100%;
    aspect-ratio: 4 / 3;  
    border: 1px solid #ccc;
    transition: transform 0.2s;
    display: block;
}

@media only screen and (max-width: 768px) {
    .gallery-4-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .gallery-image-4-3 {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
}
