
html {
    scroll-behavior: smooth;
}

body {
    color: #fff;
    background-color: #222222;
    font-family: "Jetbrains Mono", monospace;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


header, main, footer {

    max-width: 60ch;
    padding: 2rem 0;
}

@media (min-width: 768px) {
    header, main, footer {
        max-width: 60vw;
    }
}

@media (min-width: 768px) {
    main{
        max-width: 100ch;
    }
}

header {
    border-bottom: 1px dashed #9200FF;
    text-align: center;
}

article {
    border: #9200FF;
    border-radius: 5px;
}

h1 {
    font-family: "Lora";
    line-height: 1.2;
    margin-top: 2rem; 
    font-size: 4rem;   
    color: #c8f;
}


h2, h3, h4 {
    font-family: "Lora";
    line-height: 1.2;
    margin-top: 2rem;
    color: #c8f;
}

nav a {
    font-family: "Jetbrains Mono";
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    background-color: rgb(146, 0, 255);
    padding:5px;
}

nav a:hover {
    text-decoration: underline;
}


img {
    max-width: 40%;
    height: auto;
    margin: 1rem auto;
    border-radius: 2px;

}

@media (min-width: 768px) {
    img {
        max-width: 30%;
    }
}

figcaption {
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: #666;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

footer {
    border-top: 1px dashed #9200FF;
    font-size: 0.8rem;
    text-align: center;
    margin-top: 4rem;
    color: #888;
}


a {
    color: #c8f;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.button {
  background-color: #9200FF;
  border: none;
  color: #fff;
  padding: 2px 2px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 0px;
  margin-top:7px;
  margin-bottom:25px;
}

.termhead{
    background-color: #9200FF;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Consolas', monospace;
    width: 100%;
    height: 2ch;
    padding-left: 5%;
    padding-right: 5%;
}

.termhead > * {
    width: 33.33%; 
    padding:2ch;
}

.termhead > *:nth-child(1) { text-align: left; } 
.termhead > *:nth-child(2) { text-align: center; } 
.termhead > *:nth-child(3) { text-align: right; }

.ascii{
    color: #c8f;
    text-align: center;
    font-size:1.7vh;
}

.grid-container {
    display: grid;
    /* Defaults to 2 columns on small screens/mobile */
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
    margin-top: 1.5rem;
}

.grid-container img {
    max-width: 100% !important;
    width: 100%;
    height: auto; /* Keeps original aspect ratio, or use '250px' + 'object-fit: cover' for uniform boxes */
    margin: 0; 
}

/* the graveyard */

/*

.button {
  background-color: #9200FF;
  border: none;
  color: white;
  padding: 5px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 5px;
  margin-top:10px;
  margin-bottom:25px;
}

*/