:root {
    /* Page background */
    --background:#f5f5f5;
    
    /* Universal text and link colors */
    --color:#303030;
    --link:#303030;
    
    /* Font family  */
    --bodyfont: 'Courier New', Courier, monospace;

    /* List background colors */
    --color1: #f5f5f5;
    
    /* Borders for each background color */
    --color1border:#303030;
    
    /* Header background and border */
    --header: #f5f5f5;
    --headerborder:#303030;
    
    /* Scrollbars */
    --scrollbg:#303030;
    --scrollcolor:#f5f5f5;

}

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

body {
    background: var(--background);
    background-image: url(../img/b.jpg);
    font: 1.15rem var(--bodyfont);
    color: var(--color);
    line-height:1.5;
}

h1 a {
    text-decoration: none;
}
h1 a:hover {
    text-decoration: underline;
}

/* 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 {
    text-decoration:none;
}

/* Main header */

header#top {
    width: 80%;
    max-width:1000px;
    box-shadow: rgba(0,0,0,0.1) -3px 3px 3px;
    background: var(--header);
    border: 1px solid var(--headerborder);
    margin: 25px auto;
    border-radius: 5px; 
}

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

/* Header text */

#infocontainer {
    padding:20px;
    min-height: 8em;
    display: grid;
    grid-template-columns: 50% 50%;
}

/* Header icon */

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

/* Header menu */

nav {
    margin-top:10px;
    border-top: 1px solid var(--headerborder); 
    font-size:1rem;
    display: flex;
    align-items: center;
}

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

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

nav a {
    text-decoration:none;
}

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

/* header search bar */
.search {
    margin-left: 100px;
    width: 30%;
    border: 1px solid var(--headerborder); 
    padding: 5px;
    height: 10px;
    cursor: text;
}
.search p {
    font-size:0.7rem;
    margin: 0px;
    color: #636262;
}

/* header bookmarks */
.bookmarks {
    border-left: 1px solid var(--headerborder);
    padding-left: 15px;
}
.bookmarks li {
    list-style-type: none;
}
.mark {
    display: grid;
    grid-template-columns: 50% 50%;
}

/* Main content */

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

/* Lists */

section {
    margin:20px;
    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);
    }
}

/* List titles */

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

h2 {
    font-size:1.1em;
}

h2 .subtitle {
    font-weight:normal;
}

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

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

/* List icons */

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

/* List content */

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

/* List footers */

.foot {
    font-size: 0.9em;
    padding: 10px;
    text-align: right; 
}

.foot p {
    margin:0;
}

/* 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:250px;
    }

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

    h2 {
        font-size:1.2em;
    }

    footer#bottom {
        width:75%;
    }
    #infocontainer {
        display: block;
    }
    .search {
        display: none;
    }
    nav ul li {
        width: 105px;
    }
}