:root {
    --bg-primary: #b041fa;
    --bg-secondary: #b041fa;
    --bg-window: #d5d1e0;
    --border-dark: #808080;
    --border-light: #ffffff;
    --text-primary: #50394c;
    --text-secondary: #333333;
    --text-link: #0000ee;
    --text-visited: #551a8b;
    --accent-teal: #008080;
    --accent-pink: #ffb6c1;
    --button-face: #e0e0e0;
    --highlight: #316ac5;
    --shadow: rgba(0, 0, 0, 0.3);
}

/*Fonts*/

@font-face {
    font-family: "tightwriter";
    src: url("static/WOFF Fonts/TightWriter.woff2");
}

.tightwriter {
    font-family: "tightwriter";
}

@font-face {
    font-family: "Thurston";
    src: url("static/WOFF Fonts/THURSTON.woff2");
}

.thurston {
    font-family: "Thurston";
}

@font-face {
    font-family: "Impact Label";
    /* set name */
    src: url("static/WOFF Fonts/ImpactLabel.woff2");
    /* url of the font */
}

.impact-label {
    font-family: "Impact Label";
}

@font-face {
    font-family: "kitchen";
    /* set name */
    src: url("static/WOFF Fonts/DJKitchen.woff2");
    /* url of the font */
}

.kitchen {
    font-family: "kitchen";
}

html,
body {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 44px,
            #8044ba 44px,
            #f8f8ff 45px
        ),
        repeating-linear-gradient(
            -90deg,
            transparent,
            transparent 44px,
            #8044ba 44px,
            #f8f8ff 45px
        ),
        linear-gradient(#b2b5f5, #9a59f5);
    margin: 0;
    cursor: url("static/Mouche1.cur"), default;
}

* {
    margin: 0;
    box-sizing: border-box;
    position: relative;
}

body {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.marquee {
    position: relative;
    grid-column: 1 / -1;
}
.marquee span {
    animation: marquee 50s linear infinite;
    font-size: 38px;
    text-wrap: nowrap;
    width: fit-content;
    display: inline-block;
    color: rebeccapurple;
    position: relative;
    left: 100vw;
    font-family: "Impact Label";
}

@keyframes marquee {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-100%);
        left: 0;
    }
}

#bookshelf {
    display: flex;
    flex-direction: column;
    /*gap: 1em;*/
    height: 100%;
    padding: 0.25em;
}

.shelf {
    /*overflow: hidden;*/
    border: 4px solid lightgreen;
    border-top: none;
    background: hsl(170deg, 50%, 20%);
    /*height: 100%;*/
    flex: 1;
    box-shadow: 4px 4px 4px purple;
    display: flex;
    align-items: flex-end;
    box-shadow: inset 15px 15px 2px 0px hsla(160deg, 100%, 0%, 0.25);
}
.shelf:first-child {
    border: 4px solid lightgreen;
    border-radius: 6px 6px 0 0;
}
.shelf:last-child {
    border-radius: 0 0 6px 6px;
}

.bookshelf-book {
    writing-mode: vertical-rl;
    background: linear-gradient(to left, hsl(200deg, 80%, 65%), hsl(200deg, 80%, 60%), hsl(200deg, 80%, 40%), hsl(200deg, 80%, 35%), hsl(200deg, 80%, 30%));
    padding: 2px;
    color: black;
    transform-origin: bottom;
    transition: transform 90ms;
    min-height: 80px;
    max-height: 120px;
    text-align: end;
    margin: 0 1px;
    /*min-height: 40%;
    max-height: 60%;*/
    /*flex-basis: 0;*/
}

.bookshelf-book a {
    text-decoration: none;
    color: #470512;
    font-size: 14px;
}

.bookshelf-book:hover {
    text-decoration: underline;
    transform: scale(1.3) rotate(-3deg);
    z-index: 10;
}
.bookshelf-book:hover a {
    color: white;
}

main {
    /*background: green;*/
}

.welcome-message {
    background-color: darkblue;
    color: limegreen;
    border-radius: 20px;
    font-size: 22px;
    width: 230px;
    top: 5%;
    left: 3%;
    padding: 15px;
    border: 3px limegreen solid;
    font-style: italic;
}

.welcome-message-title-font {
    font-family: "thurston";
    font-size: 4em;
    font-style: normal;
}
.site-updates {
     background-color: darkblue;
    color: limegreen;
    border-radius: 20px;
    font-size: 22px;
    width: 230px;
    top: 7%;
    left: 3%;
    height: 300px;
    overflow: scroll;
    padding: 15px;
    border: 3px limegreen solid;
}

.site-updates-title {
    font-size: 1em;
    padding: 2px;
    font-style: italic;
}
#sidebar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.fav-posts {
    background: seashell;
    border: 2px dashed magenta;
    border-radius: 10px;
    padding: 6px;
    margin: 0.25em;
    width: 200px;
}

.fav-posts .title {
    font-family: "thurston";
    font-size: 2.6em;
}

.fav-posts ul {
    padding: 0;
    list-style: none;
}

.fav-posts li {
    padding: 0 0 0.5em 0;
}

.tv {
    width: 200px;
    flex-basis: 27%;
    background: #12a;
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
    justify-content: center;
    border-radius: 6px;
    gap: 0.75em;
    padding: 0.75em;
}

.tv .screen {
    height: 100%;
    border-radius: 16px;
    background: green;
    box-shadow: inset 0 0 17px -10px black;
    display: flex;
    align-items: center;
    justify-content: center;

}

.tv .screen iframe {
    width: 100%;
    height: 100%;
}

.tv .controls {
    display: grid;
    grid-template-columns: 1.5em 1fr 1.5em;
    gap: 0.75em;
}

.tv .drive {
    grid-column: 2;
    border-radius: 3px;
    border: 1px solid black;
    /*box-shadow: 0 0 2px black, inset 0 0 2px black;*/
    font-size: 0.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv .button {
    width: 1.5em;
    height: 1em;
    border-radius: 100%;
    box-shadow: inset 0 0 2px black;
}

.tv img {
    position: absolute;
    /*object-fit: cover;*/
    top: -85%;
    left: -5%;
}

.fish-tank {
    flex: 1;
    border: 5px solid black;
    background: #1446d3f0;
}

.bubble-field {

}

.fish {

}

.second-fish {

}

a {
    /*cursor: url(/frame_0_delay-0.1s.png), pointer;*/
    animation: flycursor 4s infinite;
}

.homepage-item {
    position: absolute;
    /*max-width: 200px;*/
}

.homepage-item.rug {
    scale: 85%;
    left: 20%;
    top: 40%;
    transform: skewX(-10deg);
}

.homepage-item.ring {
    top: -40%;
    left: 25%;
    scale: 12%;
}

.homepage-item.easel {
    top: -8%;
    left: 75%;
    scale: 60%;
}

.homepage-item.draftingtable {
    top: 20%;
    left: 30%;
    scale: 65%;
}

.homepage-item.recipetable {
    top: 70%;
    left: 65%;
    scale: 80%;
}

.homepage-item.videotable {
    top: 80%;
    left: 30%;
    scale: 90%;
}

.videotable-items {
    position: relative;
}

.videotable-items > * {
    position: absolute;
}

.videotable-mic {
    top: -25px;
    left: 180px;
}
.videotable-camera {
    top: -20px;
    left: 50px;
}

@keyframes flycursor {
    0% {
        cursor: url(static/frame_0_delay-0.1s.png), pointer;
    }

    9% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }

    18% {
        cursor: url(static/frame_2_delay-0.1s.png), pointer;
    }

    27% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }

    36% {
        cursor: url(static/frame_0_delay-0.1s.png), pointer;
    }

    45% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }

    54% {
        cursor: url(static/frame_2_delay-0.1s.png), pointer;
    }

    63% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }

    72% {
        cursor: url(static/frame_0_delay-0.1s.png), pointer;
    }

    81% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }

    90% {
        cursor: url(static/frame_2_delay-0.1s.png), pointer;
    }

    100% {
        cursor: url(static/frame_1_delay-0.1s.png), pointer;
    }
}

@media (max-width: 900px) {
    body {
        display: inline-block;
    }
    main {
        background: tan;
    }
}
