@import url('https://fonts.googleapis.com/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    box-sizing: border-box;
}
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    font: normal 1em 'Anonymous Pro', 'Ubuntu Mono', Courier, monospace;
}
.curtain {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    will-change: opacity, height;
    animation: 1s curtain ease-out forwards; 
}
@keyframes curtain {
    from { opacity: .8; }
    to { opacity: 0; height: 0; }
}

a:link {
    color: grey;
}
header {
    display: flex;
    flex-direction: column;
    flex: 0 0;
    min-height: 8vh;
    background: linear-gradient(grey, grey 40px, black 50px, silver 51px, white);  
    /* font-family: Jura; */
    font-size: 1.05rem;
    padding: 1em;
    justify-content: space-around;
    align-items: center;
    font-variant: small-caps;
}
h1 {
    font-size: 3em;
    position: relative;
}
h1::after {
    content: attr(title);
    position: absolute;
    top: 0;
    overflow: hidden;
    height: 60%;
    color: white;
    display:block;
}
h5 {
    font: normal italic 1.5rem Times;
}

nav {
    flex: 0 0;
    display: flex;
    justify-content: center;
    min-height: 8vh; 
    /* border-bottom: thin groove silver; */
}
.menu {
    list-style-type: none;
    /* font: normal 2em Forum; */
    font: bold 2rem 'Ubuntu Mono', Courier, monospace;
    padding: 0 .5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.menu li {
    text-align: center;
    margin: .3em;
    position: relative;
}
.menu li::after {
    content: '';
    position: absolute;
    left: .5em;
    top: -.1em;
    display: block;
    height: 1.3em;
    width: 80%;
    background: yellow;
    z-index: -1;
    transform: rotate(-1deg);
    transition: all .2s;
}
.menu li:first-letter {
    color: black;
}
.menu li:hover:first-letter {
    color: greenyellow;
}
.menu a {
    white-space: nowrap;
    text-decoration: none;
    color: grey;
    padding: 1em 1.5em;
    border-radius: .1em;
    transition: all .4s;
}
.menu a:hover {
    color: white;
    /* background: linear-gradient(silver, grey 100%); */
    /* box-shadow: 0 0 15px 4px silver; */
    text-shadow: 1px 1px 5px grey;  
}
.menu li:hover::after {
    background: cornflowerblue;
    transform: rotate(2deg);
    opacity: .5;
}

main {
    flex: 1 0;
    display: flex;
    justify-content: center;
    min-height: 75vh;
    overflow: auto;
    /* background: linear-gradient(silver, #FDFDFD 3%, white, #FDFDFD 97%, silver); */
}
main *::selection {
    background: black;
    color: yellow;
}
main a:hover {
    color: cornflowerblue;
}
.main {
    width: 100%;
    max-width: 1000px;
    height: 70vh;
    margin: .5em;
    padding: .5em;
    border: thin double #ddd;
    border-width: 0 thin 0;
    background: white;
    font-size: 1.05rem;
    overflow-y: auto;
    display: none;
    transition: all .5s ease-in-out;
}
.main.cv iframe {
    transform: scale(.8, .8) translate(-13%, -11%);
    position: absolute;
    max-width: 96%;
    max-height: 70vh;
}
.main.works ul {
    width: 95%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style-type: none;
    margin: 0 auto;
    padding: .5em;
}

.main.works li {
    margin: .5em 0;
    padding: .5em;
    height: 6em;
}
.main.works li.description {
    width: 69%;
}
.main.works li.img {
    width: 30%;
    padding: 0;
    border: thin solid silver;
    position: relative;
    overflow: hidden;
    transition: transform .4s;
}
.main.works img {
    width: 8em;
}

.main.works li.img::after {
    content: attr(title);
    position: absolute;
    top: 0;
    left: 0;
    height: 6em;
    width: 8em;
    display: block;
    background: rgba(0, 0, 0, .7);
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.main.works li.img:hover {
    /* animation: works 1s ease-in-out infinite; */
    transform: scale(1.25);
}
.main.works li.img:hover::after {
    color: transparent;
    background: transparent;
}

.main > * {
    font-size: 2em;
}
.main > p {
    padding: 1em;
    /* font: normal 2em Caveat; */
}
.main > ul {
    margin: 0 2em;
}

.main:target {
    display: block;
    min-height: 50vh;
    /* box-shadow: 1px 1px 20px 5px #ddd; */
    animation: main .5s ease-in-out forwards;

}
.pre {
    white-space: pre;

}
.pre > strong {
    color: grey;
}