@font-face{
  font-family: "Open Sans";
  src: url("/font/OpenSans.ttf");
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Open Sans", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
}

a{
    font-weight: bold;
    color: #f80;
    text-decoration: none;
}

a:hover,
a:active,
a:hover h2,
a:active h2{
    color: #c60;
}

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

.icon{
    height: 20px;
}

button{
    border: 2px solid #666;
    border-radius: 12px;
    padding: 8px;
    color: #fff;
    background-color: #f80;
}

main{
    /*max-width: 70ch;*/
    /*margin: 0 auto;*/
    margin-top: calc(24vw - 64px);
    padding: 64px 3vw 3vw;
    text-align: justify;
    overflow-wrap: anywhere;
    font-size: 20px;
    line-height: 1.4;
}

main h1{
    text-align: center;
    color: #f80;
    clear: both;
}

main h2{
    text-align: center;
    color: #c44;
    clear: both;
}

main a h2{
    color: #f80;
}

main img,
.image{
    margin: 16px;
    border-radius: 16px;
    max-width: calc(94vw - 32px);
    width: 480px;
    object-fit: cover;
    transition: transform .2s;
}

main img:hover:not(.big){
    transform: scale(1.05);
}

main img.horizontal,
.image.horizontal{
    height: 270px;
    width: 480px;
    max-height: calc((94vw - 32px) * 9 / 16 );
}

main img.vertical,
.image.vertical{
    height: 480px;
    width: 270px;
    max-height: calc((94vw - 32px) * 16 / 9 );
}

main .side{
    margin: 16px;
    max-width: calc(94vw - 32px);
}

.right{
    float: right;
    margin-right: 0;
}

.left{
    float: left;
    margin-left: 0;
}

main img.big,
.image.big{
    display: block;
    margin: auto;
    width: 94vw;
    height: auto;
}

section{
    margin-top: -64px;
    padding-top: 64px;
}

.citation{
    border-radius: 20px;
    background: #c8e8f8;
    padding: 20px;
    text-align: center;
    font-size: 25px;
    font-style: italic;
    font-weight: bold;
}

.rhyme{
    border-radius: 5vw;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2vw;
    background: #cef;
}

.rhyme p{
    text-align: center;
    font-size: 20px;
    font-style: italic;
    line-height: 2;
}

.citation::before,
.rhyme p::before{
    content: "“";
}

.citation::after,
.rhyme p::after{
    content: "”";
}

.frame-div{
    margin: 0 7vw;
    border-radius: 3vw;
    width: 80vw;
    height: 90vh;
}

.icon{
    height: 24px;
    width: 24px;
    vertical-align: text-bottom;
    fill: #fff;
    transition: 0.25s;
}

header{
    margin: 0;
    background-color: #000;
    color: #fff;
    padding: 2vw; /*edit*/
    position: fixed;
    width: 100%;
    box-sizing: border-box;
    top: 0;
    z-index: 64;
}

#jump-to-main{
    display: block;
    position: absolute;
    top: 32px;
    left: 32px;
    width: 192px;
    height: 64px;
    line-height: 64px;
    border-radius: 8px;
    border: 1px #666 solid;
    background-color: #fff;
    text-align: center;
    color: #000 !important;
    transition: 0.5s;
}

#jump-to-main:not(:focus){
    top: -96px;
}

#navlogo{
    height: 20vw; /*edit*/
    max-width: 100%;
    float: left;
}

#navtitle{
    padding-left: 2vw;
    float: left;
    font-size: 8vw;
    font-weight: bold;
    /*width: 74vw; undo?*/
}

#navlinks{
    position: absolute;
    bottom: 6px;
    right: calc(39vw - 252px); /*edit*/
    height: 52px;
}

header a{
    text-decoration: none !important;
    color: #fff !important; 
    display: block;
}

.navitem{
    display: block;
    background-color: transparent;
    border-color: transparent;
    border-width: 0;
    float: left;
    padding: 8px;
    text-decoration: none;
    font-size: 16px;
    border-radius: 16px;
    transition: 0.5s;
}

.navitem:hover,
.navitem:focus-within{
    background-color: #aaa;
    color: #000;
}

.navlink:hover{
    font-weight: bold;
}

.navlink{
    display: block;
    width: 136px;
    text-align: center;
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    transition: 0.5s;
}

.navsublink{
    display: none;
    width: 136px;
    text-align: left;
    color: #000;
    padding: 8px;
    border-radius: 8px;
    transition: 0.5s;
}

.navitem:hover .navlink + a,
.navitem:focus-within .navlink + a{
    margin-top: 16px;
}

.navitem:hover .navsublink,
.navitem:focus-within .navsublink{
    display: block;
}

.navsublink:hover{
    background-color: #666;
    color: #fff;
}

.navsublink.current,
.navitem:not(:hover):not(:focus-within) .navlink.current{
    background-color: #fff;
    color: #000;
}

.navitem:not(:hover):not(:focus-within) .navlink.current .icon{
    fill: #000;
}

footer{
    clear: both;
    margin: 0;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    padding: 12px 0;
    text-align: center;
    width: 100%;
    z-index: 32;
}

#outer-links{
    height: 28px;
}

footer a:hover .icon{
    width: 28px;
    height: 28px;
}

.popup{
    display: none;
    position: fixed;
    bottom: 150px;
    left: 10vw;
    width: calc(80vw - 48px);
    padding: 16px;
    text-align: center;
    border-radius: 20px;
    border: 8px solid #888;
    background: #fff;
    z-index: 128;
}

.banners{
    display: flex;
    clear: both;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.banners .banner{
    width: calc(40vw - 48px);
}

.banner{
    box-sizing: border-box;
    margin: 32px 2vw;
    border-radius: 20px;
    border: 8px solid #000;
    padding: 1.5em;
    background-color: #f80;
    width: calc(90vw - 48px);
    text-align: center;
    color: #fff;
}

a.banner{
    font-size: 1.5em;
}

a.banner:hover{
    color: #fff;
    background-color: #e70;
}

.banner.ok{
    background: #8f8;
    border-color: #484;
    color: #000;
}

.banner.no{
    background: #f44;
    border-color: #822;
    color: #000;
}

@media screen and (max-width: 1280px){
    #navlinks{
        right: calc(39vw - 84px); /*edit*/
    }
    .navlink{
        width: 24px;
        white-space: nowrap;
        text-overflow: clip;
        overflow: hidden;
    }
    .navitem:hover .navlink,
    .navitem:focus-within .navlink{
        width: 136px;
    }

    .banners .banner{
        width: calc(90vw - 48px);
    }

    .image.right{
        float: none;
        margin: 16px auto;
    }
}

@media screen and (max-width: 768px){
    main{
        margin-top: calc(44vw - 64px);
    }
    #navlogo{
        height: 40vw;
    }
    #navtitle{
        font-size: 11vw;
        /*width: 54vw; undo?*/
    }
    #navlinks{
        right: calc(29vw - 84px);
    }
    
    main img.vertical:not(.big),
    main img.horizontal:not(.big){
        float: none !important;
        display: block;
        margin: 16px auto;
    }
}

@media screen and (max-width: 512px){
    #navtitle{
        position: absolute;
        left: 44vw; /*edit*/
        bottom: calc(2vw + 56px); /*edit*/
    }
    
    main .side{
        float: none;
    }
    
    /*main img:not(.vertical):not(.big),
    .image:not(.vertical):not(.big){
        margin-right: 16px;
        margin-left: 16px;
    }*/
}