/* Working with absolute sizes only in pixels,
but usually better to use relative units like rem or % */

@font-face {
    font-family: "1942";
    src: url("/assets/fonts/1942.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "ByteBounce";
    src: url("/assets/fonts/ByteBounce.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Kyiv Machine";
    src: url("/assets/fonts/KyivMachine-nR0aM.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}

body {
    background: linear-gradient(to right, #9d0c0c, #0b3289, #026403);
}

h1, h2, h3 {
    margin: 0;
}

/* Styling and animating the header */
.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0;
}

.title {
    display: flex;
    flex-direction: row;
    margin-top: 30px;
}

.title h1 {
    font-family: "1942", sans-serif;
    color: white;
    font-size: 2.5rem;
    z-index: 1;
    white-space: nowrap;
}

.title .left-star {
    padding: 0;
    margin: 0;
    width: 80px;
    transform: translateX(50%) translateY(-30%);
}

.title .right-star {
    padding: 0;
    margin: 0;
    width: 80px;
    transform: translateX(-50%) translateY(-50%);
}

.title .small-left-star {
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    transform: translateX(20%) translateY(-30%);
}

.title .small-right-star {
    padding: 0;
    margin: 0;
    width: 40px;
    height: 40px;
    transform: translateX(10%) translateY(-50%);
}

@keyframes left_star_float {
    0% {
        transform: translateX(50%) translateY(-30%) scale(1) rotate(0deg);
    }
    50% {
        transform: translateX(60%) translateY(-60%) scale(1.2) rotate(10deg);
    }
    100% {
        transform: translateX(50%) translateY(-30%) scale(1) rotate(0deg);
    }
}

@keyframes right_star_float {
    0% {
        transform: translateX(-50%) translateY(-50%) scale(1) rotate(0deg);
    }
    50% {
        transform: translateX(-60%) translateY(-20%) scale(1.2) rotate(-10deg);
    }
    100% {
        transform: translateX(-50%) translateY(-50%) scale(1) rotate(0deg);
    }
}

@media (prefers-reduced-motion: no-preference) {

    .left-star {
        animation: left_star_float 3s ease-in-out infinite;
    }

    .right-star {
        animation: right_star_float 3s ease-in-out infinite;
    }

    .small-left-star {
        animation: left_star_float 3s ease-in-out infinite;
    }

    .small-right-star {
        animation: right_star_float 3s ease-in-out infinite;
    }

}

/* Horizontally Rotating Stickers */
.blinkies {
    overflow: hidden;
    margin-left: 10px;
    margin-right: 20px;
}

.blinkies-scroll {
    display: flex;
    width: max-content;
}

.horizontal-rotation {
    display: flex;
    flex-shrink: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blinkies .blinkies-scroll .horizontal-rotation li {
    padding: 5px;
}

@keyframes horizontal_scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .blinkies-scroll {
        animation: horizontal_scroll 10s linear infinite;
    }
}

/* About Me Section */
.about-me {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.about-me .me-stamps {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
}

.about-me .me-stamps h4 {
    font-family: "ByteBounce", sans-serif;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 999px;   
    padding: 6px 12px;
    margin: 2px;
    width: 80px;     
    text-align: center;
}

@keyframes way_cooler_pulse {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.2);
    }
}

.about-me .way_cooler {
    height: 60px;
    animation: way_cooler_pulse 3s ease-in-out infinite;
    transform-origin: center;
    padding: 0;
    margin: 0;
}

.about-me .me-spiel {
    flex: 8;
    display: flex;
    align-items: center; 
}

.about-me .me-spiel p {
    font-family: "Kyiv Machine", sans-serif;
    color: white;
    margin: 0;
}

/* First row */
.first-row {
    display: flex;
    flex-direction: row;
}

/* Favorites box */
.favs {
    flex: 1;
    background: rgba(0, 0, 0, 0.25); 
    padding: 10px;
    border-radius: 10px; 
    margin: 10px;
}

.favs a {
    font-family: "ByteBounce", sans-serif;
    color: white;
}

.favs h2, h3 {
    font-family: "ByteBounce", sans-serif;
    color: white;
}

.favs h2 {
    padding: 10px;
}

.favs .music {
    display: flex;
    flex-direction: row;
    padding: 10px; 
    align-items: center;
}

.favs .music img {
    width: 65px;
    padding-right: 15px;
}

.favs .watching {
    display: flex;
    flex-direction: row;
    padding: 10px; 
    align-items: center;
}

.favs .watching img {
    width: 75px;
    padding-right: 5px;
}

.favs .reading {
    display: flex;
    flex-direction: row;
    padding: 10px; 
    align-items: center;
}

.favs .reading img {
    width: 50px;
    padding-right: 30px;
}

.favorites_log {
    display: inline-block;
    font-style: italic;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* My Work */
.first-row .my-work {
    flex: 3;
}

.first-row .my-work h2 {
    font-family: "ByteBounce", sans-serif;
    color: white;
    padding: 10px;
}

/* Socials and Kofi */
.first-row .socials {
    flex: 1;
}

.first-row .socials h2 {
    font-family: "ByteBounce", sans-serif;
    color: white;
    padding: 10px;
}

.first-row .socials .instagram, .first-row .socials .substack, .first-row .socials .youtube, .first-row .socials .tiktok {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
}

.first-row .socials .instagram img, .first-row .socials .substack img, .first-row .socials .youtube img, .first-row .socials .tiktok img {
    width: 40px;
    padding-right: 10px;
}

.first-row .socials .instagram a, .first-row .socials .substack a, .first-row .socials .youtube a, .first-row .socials .tiktok a {
    font-family: "ByteBounce", sans-serif;
    color: white;
    text-decoration: underline;
}

/* Second Row */
.second-row {
    display: flex;
    flex-direction: row;
}

.second-row .videos, .second-row .essays, .second-row .blog {
    flex: 1;
}

.second-row .videos h2, .second-row .essays h2 {
    font-family: "ByteBounce", sans-serif;
    color: white;
    padding: 10px;
}

/* Blog */
.second-row .blog a {
    text-decoration: none;
}

.second-row .blog h2 {
    font-family: "ByteBounce", sans-serif;
    color: white;
    padding: 5px;
    margin-left: 2%;
}

.second-row .sample-blog {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding: 5px;
    margin: 5px;
}

.second-row .sample-blog h3 {
    font-family: "1942", sans-serif;
    color: white;
    font-size: 0.8rem;
}

.second-row .sample-blog p {
    font-family: "Kyiv Machine", sans-serif;
    color: white;
    font-size: 0.8rem;
}

.second-row .blog-header, .second-row .videos-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.second-row .blog-header a, .second-row .videos-header a {
    font-family: "ByteBounce", sans-serif;
    color: white;
    font-style: italic;
    margin-right: 5%;
    font-size: 1.2rem;
    padding: 5px;
    text-decoration: underline;
}

/* Video */
.second-row .videos a {
    color: white;
    text-decoration: underline;
    max-width: 220px;
}

.second-row .videos .video-item {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.second-row .videos .video-item img {
    width: 120px;
    padding-right: 10px;
    padding-bottom: 5px;
}

.second-row .videos .video-item a h3 {
    font-family: "Kyiv Machine", sans-serif;
    color: white;
    text-decoration: underline;
    font-size: 0.8rem;
    max-width: 220px;
}