:root {
    /* Page background */
    --background:#4a7a68;
    
    /* Universal text and link colors */
    --color:#000000;
    --link:#58a4eb;
    
    /* Font family (can include fallbacks) */
    --bodyfont: helvetica;

    /* List background colors */
    --color1: #ffffff;
    --color2: #d4c56c;
    --color3: #e8b86e;
    --color4: #a5c7a7;
    --color5: #c39374;
    
    /* Borders for each background color */
    --color1border:#0000005b;
    --color2border:#624a04;
    --color3border:#5a3702;
    --color4border:#2f5131;
    --color5border:#522508;
    
    /* Header background and border */
    --header: #ffffff;
    --headerborder:#00000065;
    
    /* Scrollbars */
    --scrollbg:#B5ADD2;
    --scrollcolor:#4b2f66;

}

* { margin:0; padding:0; scrollbar-color: var(--scrollcolor) var(--scrollbg);}

body {
    background: url(https://peachyvoid.com/graphics/backgrounds/starspurple2.png);
    font: 1.15rem var(--bodyfont);
    color: var(--color);
    line-height:1.5;
}

/* Body text styles */

main ul {
    list-style-position:outside;
    margin-left:20px;
    line-height:1.5;
}

p {
    line-height:1.5;
    margin:10px 0 10px 0;
}

a {
    color: var(--link);
}

a:hover,
a:focus {
    color: #b484e0;
    text-decoration: none;
}

/* Main header */

header#top {
  width: 80%;
  max-width: 620px;
  background: var(--header);
  border: 1px solid var(--headerBorder);
  margin: 25px auto;
  border-radius: 5px;
}

header#top h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Header text */

#infocontainer {
    padding:20px;
    min-height:5.5em;
    max-height: 55px;
    font-size: 0.75rem;
}

/* Header icon */

.header-icon {
    margin-right: 25px;
    border-radius: 5px;
    height: 75px;
    width: 75px;
    float:left;
}

/* Menu */

nav {
    margin-top: 55px;
    border-top: 1px solid var(--headerborder); 
    font-size:1rem;
}

nav ul {
    list-style:none;
    display:inline;
}

nav ul li {
    display: inline-block;
    width:100px;
    text-align:center;
    padding: 6px 0;
    border-left: 1px solid var(--headerborder); 
}

nav ul li:first-child {
    border: 0px; 
}

nav a {
    text-decoration:none;
}

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

/* Main content */

main {
    margin: 40px 5px 0 5px;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
}

/* Lists */

section {
    margin:10px;
    box-shadow: rgba(0,0,0,0.1) -3px 3px 3px;
    border: 1px solid;
    border-radius: 5px; 
    padding:15px;
}





/* List colors */

.color1 {
    background:var(--color1);
    border-color:var(--color1border);
    
    & .listheader {
        border-color:var(--color1border);
    }
    
    & .handle {
        color:var(--color1border);
    }
}

.color2 {
    background:var(--color2);
    border-color:var(--color2border);
    
    & .listheader {
        border-color:var(--color2border);
    }
    
    & .handle {
        color:var(--color2border);
    }
}

.color3 {
    background:var(--color3);
    border-color:var(--color3border);
    
    & .listheader {
        border-color:var(--color3border);
    }
    
    & .handle {
        color:var(--color3border);
    }
}

.color4 {
    background:var(--color4);
    border-color:var(--color4border);
    
    & .listheader {
        border-color:var(--color4border);
    }
    
    & .handle {
        color:var(--color4border);
    }
}

.color5 {
    background:var(--color5);
    border-color:var(--color5border);
    
    & .listheader {
        border-color:var(--color5border);
    }
    
    & .handle {
        color:var(--color5border);
    }
}

/* List titles */

header.listheader {
    display:flex;
    justify-content: space-between;
    border-bottom: 0.5px solid; 
    padding-bottom:5px;
    margin-bottom:10px;
}

h2 {
    font-size:0.83em;
}

h2 .subtitle {
    font-weight:normal;
}

h2 a {
    text-decoration:none;
    color: var(--color);
}

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

/* Drag handle */

.handle {
    font-size:1rem;
    cursor:grab;
    font-weight:bold;
}

/* List icons */

.listicon {
    float: right;
    margin: 0 0 5px 10px;
    width:80px;
    height:80px;
    border-radius:5px;
}

/* List content */

.listtext {
  overflow: hidden;
  max-height: 300px;
  padding: 3px;
  font-size: 0.76rem;
}

.listtext.expanded {
  max-height: none;
  overflow: visible;
}

.more-content .listtext {
    max-height: 400px;
}

.more-chars .listtext {
    max-height: 400px;
}


.view-more {
  display: block;
  font-size: 0.8125rem;
  text-align: center;
  padding-top: 10px;
  cursor: pointer;
  color: var(--link);
  text-decoration: none;
}

.view-more:hover,
.view-more:focus {
  text-decoration: underline;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.image {
    text-align: center;
    font-size: 0.75rem;
    position: relative;
}

.image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 4px;
    border-radius: 3px;
}

.image span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image:hover span {
    opacity: 1;
}

/* List footers */

.foot {
  font-size: 0.6875rem;
  padding: 10px 10px 0 10px;
  text-align: right;
  opacity: 0.6;
}

.foot p {
  margin: 0;
}

footer#bottom {
  background: var(--header);
  border: 1px solid var(--headerBorder);
  padding: 5px;
  font-size: 0.8rem;
  margin: 25px auto;
  max-width: 700px;
  width: 70%;
  text-align: center;
  border-radius: 5px;
}

/* Phone stuff */

@media screen and (max-width: 899px) {
    header#top {
        width:calc(100% - 40px);
        margin-top:20px;
    }

    header#top h1 {
        font-size:1.4em;
    }

    main {
        display:inline;
        margin: auto;
        width:calc(100% - 40px);
    }

    .listtext {
        height:auto;
        max-height:300px;
    }

    .more-chars .listtext {
    max-height: 400px;
    }

    .handle {
        display:none;
    }
    
    .foot {
        font-size:0.85em;
    }

    h2 {
        font-size:1.2em;
    }

    footer#bottom {
        width:75%;
    }
}
