nav {
    grid-area: b;
    display: inline;
    align-self: end;
    margin-left: 3vw;
    z-index: 1;
}

nav ul {
    list-style: none;
    padding-left: 0;
}

nav li {
    display: inline;
}

nav li+li::before {
    content: ' | ';
}


@font-face {
    font-family: base-font;
    src: url(BTFR_LCBB.otf)
}

body {
    display: grid;
    grid-template-columns: 13.35fr 63.33fr 23.32fr;
    grid-template-rows: 7.87fr 79fr 13.13fr;
    grid-template-areas:
        "a b c"
        "d e f"
        "g h i";
    min-height: 100%;
    min-width: 100%;

    /* Set up proportionate scaling */
    width: 100%;
    height: auto;
    font-family: base-font;

    background-image: url(./img/wood_texture.png);
    background-repeat: repeat;

    flex-wrap: wrap;
    cursor: url(./img/pencil.cur), default;
}

button {
    cursor: pointer;
}

main {
    grid-area: e;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 4fr 5fr;
    grid-template-areas:
        "ea ea"
        "eb ec";
    align-items: start;
}

img.background {
    grid-column-start: a;
    grid-column-end: c;
    grid-row-start: a;
    grid-row-end: g;
}



img.background,
img.notebook {
    width: 100%;
}

img.notebook {
    grid-column-start: 1;
    grid-column-end: -1;
    grid-row-start: 1;
    grid-row-end: -1;
    z-index: 1;
}

.news {
    grid-row: 1;
    grid-column-start: 1;
    grid-column-end: -1;
    width: 80%;
    z-index: 2;
    align-self: center;
    justify-self: center;
    margin-top: 2rem;
    text-align: center;
    font-size: 70px;
}

.logo {
    grid-column-start: 1;
    grid-column-end: -1;
    grid-row: 1;
    width: 15%;
    z-index: 1;
    align-self: top;
    justify-self: center;
    margin-top: 2rem;
    text-align: center;
    z-index: 3;
}

img.netting {
    grid-column-start: 1;
    grid-column-end: -1;
    grid-row-start: 2;
    grid-row-end: -1;
    width: 100%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}

.bsky {
    grid-column: 1;
    grid-row: 1;
    width: 20%;
    align-self: end;
    justify-self: start;
    text-align: center;
    z-index: 3;

    background-color: rgb(247, 246, 195);
    border-color: black;
    border-width: .1em;
    border-style: solid;
    box-shadow: 5px 5px 7px rgba(33, 33, 33, .7);
    padding: 1em;
    rotate: -30deg;
    margin: 1rem;
}

.comic-links {
    grid-column: 2;
    grid-row: 1;
    display: inline;
    align-self: end;
    justify-self: end;
    margin-right: 3em;
    z-index: 3;
}

.comic-links ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2%
}

.comic-links li {
    display: inline;
}

.mp3 {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    z-index: 2;
}


.phone {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    z-index: 2;
}

.phone img {
    width: 100%;
}

.phone:focus,
.mp3:focus,
.phone:hover,
.mp3:hover {
    z-index: 10;
}

.mp3 img {
    width: 100%;
}

.bsky img {
    width: 100%;
}


button {
    background-color: transparent;
    border: transparent;
}

.logo img {
    width: 100%;
    z-index: 3;
}

.logo a {
    height: 100%;
}

nav li+li::before {
    content: '';
}

.tab {
    position: relative;
    padding: .1rem .5rem 2rem;
    margin-right: 0.2rem;
    background: #90CAF9;
    font-weight: bold;
    border-left: solid black 2px;
    border-right: solid black 2px;
    border-top: solid black 2px;
    font-size: 2.5vw;
}

.ads {
    grid-area: h;
    background-image: url(./img/ads.png);
    background-size: cover;
    display: flex;
}

.ads img {
    width: 50%;
    height: auto;
}

.ads a,
.ads a:visited {
    color: white;
}


a.spacebar,
a.spacebar:visited {
    grid-area: g;
    background-image: url(./img/spacebar-sticker.png);
    background-size: cover;
    rotate: 5deg;
    width: 90%;
    color: white;
    text-align: center;
}

.spacebar p {
    background-color: black;
}

.ads div {
    width: 80%;
    margin-left: auto;
    margin-top: 0;
    margin-bottom: 0;
}

*:focus {
    /* inner indicator */
    outline: 2px #F9F9F9 solid;
    outline-offset: 0;
    /* outer indicator */
    box-shadow: 0 0 0 4px #193146;
}

audio {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 20;
}


#music-modal {
    position: fixed;
    /* Stay in place */
    z-index: 15;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */

}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    /* Could be more or less, depending on screen size */


    .radiogroup {
        display: flex;
        flex-direction: column;
    }
}

.checkbtn {
    font-size: 30px;
    color: black;
    cursor: pointer;
    display: none;
    background: #90CAF9;
    border-left: solid black 1px;
    border-right: solid black 1px;
    border-top: solid black 1px;
}

#check {
    display: none;
}


@media (max-width: 1000px) {
    .tab {
        position: relative;
        padding: 0rem .1rem .1rem;
        margin: 0;
        background: #90CAF9;
        border-left: solid black 1px;
        border-right: solid black 1px;
        border-top: solid black 1px;
        border-bottom: solid black 1px;
        font-size: 1em;
    }

    .comic-links {
        margin-right: 0;
    }

    .checkbtn {
        display: block;
        order: 1;
        margin-right: 20px;
    }

    nav {
        align-self: end;
        margin-left: 2vw;
        z-index: 20;
    }

    nav ul {
        position: fixed;
        right: -100%;
        background-color: rgb(0, 109, 128);
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        z-index: 20;
    }


    nav ul li a {
        font-size: 40px;
    }

    #check:checked~ul {
        right: 0;
    }

    .bsky {
        font-size: 11px;
        width: 30%;
        margin: 0;
    }

    .news {
        margin-top: 1rem;
        font-size: 30px
    }

    nav ul {
        margin: 0;
        margin-bottom: 1%;
    }

    .logo {
        margin-top: 1rem;

    }

    a.spacebar,
    a.spacebar:visited {
        font-size: 12px;
    }
}