* {
    box-sizing: border-box;
}
:any-link {
	text-decoration: none;
}
html {
	padding: 1vh 1vw;
	overflow-y: auto;
	background-repeat: no-repeat;
	background-color: #FFF000;
	background-image: linear-gradient(#000FFF, #FFF000);
}
body {
	font-family: verdana, arial;
	min-height: 98vh;
	background: #FFFFFF;
}
header {
	text-align: center;
	background-color: gold;
}
h1 {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}
img {
    max-width: 100vmax;
    width: 100%;
    display: block;
    height: auto;
    aspect-ratio: attr(width)/attr(height);
}
nav {
	background-color: #CFCFFF;
    margin: 0;
    padding: 0.5em;
}
nav li {
    text-align: center;
    border-bottom: 1px solid gold;
}
nav ul{
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 1.2em;
}
main {
	padding: 2em;
}
a, a:visited {
	color: #000FFF;
}
footer {
    font-size: 75%;
    font-style: italic;
    text-align: center;
    vertical-align: bottom;
    padding: 2em;
}
details {
    padding-left: 2em;
    border: 1px solid #CFCFFF;
}
details[open] {
    background-color: #CFCFFF;
    background-size: cover;
}
.question {
    list-style: none;
}
.answer i, .question i {
    font-weight: bold;
    color: #000FFF;
    position: relative;
}
.question i::before {
    position: absolute;
    right: 1em;
    display: block;
    content: 'Q';
}
.answer i::before {
    position: absolute;
    right: 1em;
    display: block;
    content: 'A';
}
.image_frame, .video_frame {
    height: auto;
    display: block;
    align-content: stretch;
    margin: 0;
    padding: 0;
    padding-bottom: 2em;
    position: relative;
    width: 100%;
}
.image_frame .caption, .video_frame .caption{
    min-height: 2em;
    display: block;
    height: auto;
    position: absolute;
    bottom: 0;
    padding: 0.5em 1em;
    margin: 0;
    left: 0;
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    opacity: 0.9;
    background-color: #AAAAAA;
    transition: opacity 2s;
}
.image_frame:hover .caption, .video_frame:hover .caption, .image_frame:focus-within .caption, .video_frame:focus-within .caption {
    transition: 1s opacity 2s;
    opacity: 0;
}
.image_frame:not(:hover) .caption, .video_frame:not(:hover) .caption, .image_frame:not(:focus-within) .caption, .video_frame:not(:focus-within) .caption {
    animation: fade;
    transition: 1s opacity 2s;
    opacity: 0.9;
}
video, embed, image {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 100vw;
    max-height: 100vh;
    height: 100%;
    width: 100%;
    margin: auto;
    aspect-ratio: attr(width)/attr(height);
}
@media screen and (min-width: 600px) {
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: space-between;
        justify-content: space-around;
    }
    nav li {
        display: block;
        border-bottom: none;
    }
    .perkins, .tsbvi {
        width: 50%;
        padding: 1em;
    }
}
@media screen and (min-width: 1024px) {
    .perkins, .tsbvi {
        width: 100%;
    }
    body {
	    display: grid;
	    width: 80%;
	    margin: auto;
    	grid-template-rows: auto 1fr auto;
    	grid-template-columns: 160px 1fr;
    }
    header {
        grid-row: auto;
        grid-column: 1/3;
    }
    nav {
        grid-row: 2/4;
        grid-column: 1/2;
        padding-left: 1em;
    }
    nav ul {
        flex-direction: column;
    }
    nav li {
        text-align: left;
    }
    main {
        grid-row: auto;
        grid-column: 2/3;
    }
    main section {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.5em 1em;
    }
    main section h3 {
        grid-row: 1/2;
        grid-column: 1/3;
    }
    main section div.tsbvi {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.5em 1em;
        grid-row: auto;
        grid-column: 1/2;
    }
    main section div.perkins {
        display: grid;
        grid-template-rows: auto;
        grid-template-columns: 1fr 1fr;
        grid-gap: 0.5em 1em;
        grid-row: auto;
        grid-column: 2/3;
    }
    main section div.tsbvi.image_frame, main section div.perkins.image_frame {
        grid-row: auto;
        grid-column: auto;
    }
    main section div.tsbvi p, main section div.tsbvi ul, main section div.perkins p, main section div.perkins ul {
        grid-row: auto;
        grid-column: 1/3;
    }
    footer {
        grid-row: auto;
        grid-column: 2/3; 
    }
}