span {
    display: flex;
    font-size: larger;
}

body {
    background-color: #090223;
    background-image: url(/assets/images/grime.png);
    background-attachment: fixed;
    position: static;
    color: #181716;
    margin: 0px;
    font-family: "Ubuntu", monospace;
    /* prevent horizontal scrolling when using 100vw */
    overflow-x: hidden;
    overflow-y: scroll;
}

p {
    font-size: larger;
    color: #181716;
}

img {
    margin-right: 10px;
}

header {
    background-color: #1d1916;
    position: sticky;
    display: flex;
    top: 0;
    color: #f3f0e0;
    max-width: 100%;
    padding: 5px 45px 5px 45px;
    z-index: 1;
}

h1 {
    margin-top: 0px;
}

nav {
    height: 50%;
    display: flex;
    margin-top: auto;
    margin-bottom: auto;
    margin-right: 0;
    margin-left: auto;
}

main {
    background-color: #f3f0e0;
    position: relative;
    width: 50%;
    margin-top: 10px;
    margin-left: auto;
    padding-bottom: 10px;
    height: 1000px;
    border-radius: 1px;
    transition: height 1s;
}

footer {
    background-color: #312923;
    color: white;
    padding: 20px;
    text-align: right;
    margin-top: 10px;
    bottom: 0px;
}

ul {
    margin: 0px;
}

.sidebar {
    position: relative;
    margin-top: 10px;
    height: 100%;
    width: 25%;
    margin-left: 10px;
    margin-right: auto;
}

.sideelement {
    background-color: #f3f0e0;
    width: 100%;
    height: fit-content;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 1px;
}

.navlink {
    display: flex;
    color: white;
    margin: 10px;
    padding: 1px 10px 1px 10px;
    transition: color 0.25s;
    user-select: none;
    border-radius: 1px;
}

.innernavlink {
    display: flex;
    color: #f3f0e0;
    margin: 0px;
    padding: 0px;
    user-select: none;
    cursor: pointer;
    border-radius: 1px;
}

.innernavlink:hover {
    color: grey;
}

.livingroom {
    background-color: #2a2727;
    width: 100vw;
    height: 480px;
    overflow: hidden;
}

.overlay {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
}

.vhsvideo {
    position: absolute;
    height: 325px;
    max-width: 460px;
    top: 20px;
}

.tv {
    position: relative;
    bottom: -10px;
    height: 460px;
    width: 460px;
    left: 50%;
    /* center by offsetting half of length to the left */
    transform: translate(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.eject {
    position: absolute;
    background-color: #b1b7c5;
    border-radius: 1px;
    height: 25px;
    top: 0;
    left: 0;
    cursor: pointer;
    transform: translate(37px, 392px);
}

.tape {
    background-color: #1d1d1d;
    background-image: url("/assets/images/vhsspine.jpg");
    background-size: 100% 100%;
    /* prevent mousing over text */
    user-select: none;
    position: absolute;
    bottom: 20px;
    width: 70px;
    height: 380px;
    user-select: none;
    cursor: pointer;
    transition: bottom 0.5s, opacity 1s, filter 0.5s;
    filter: drop-shadow(0px 1px 1px rgba(0, 0, 0, 0.5));
}

.tape:hover {
    bottom: 35px;
    filter: drop-shadow(0px 15px 3px rgba(0, 0, 0, 0.5));
}

.tapelabelcontainer {
    position: absolute;
    height: 70%;
    width: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    writing-mode: vertical-rl;
    text-orientation: sideways;
}

.tapelabeltext {
    color: #181716;
    font-family: "Permanent Marker", serif;
    rotate: 180deg;
    font-size: 22pt;
}

.visible {
    position: absolute;
    margin: 25px;
    top: 0px;
    left: 0px;
    right: 0px;
    visibility: visible;
    opacity: 1;
    /* I don't know where the extra y padding comes from, but this should offset it. */
    transform: translateY(-10px);
    transition: all 0.75s, font-size 0s;
}

.hidden {
    position: absolute;
    margin: 25px;
    left: 0px;
    right: 0px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.75s, font-size 0s;
}
