@font-face {
    font-family: "quicksand";
    src: url("../css/fonts/quicksand.ttf");
}
@font-face {
    font-family: "atkinson";
    src: url("../css/fonts/atkinson.ttf");
}
@supports (display: flex) {
html {
    background-color: rgb(50, 43, 65);
    color: rgb(209, 202, 231);
    font-family: "atkinson", sans-serif;
    font-size: 17.5px;
}
body {
    background-size: 100% 300px, auto;
    background: linear-gradient(
    to bottom,
      rgb(50, 43, 65) 0px,
      rgb(40, 40, 57) 150px
    ) no-repeat, rgb(40, 40, 57);
    margin: 0;
}
body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 300px;
    background: rgb(40, 40, 57);
    z-index: -1;
}
.navbar {
    animation: fade 0.3s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
    padding: 24px;
    font-family: "quicksand";
    font-size: 1rem;
    text-transform: lowercase;
}
.logo {
    display: inline-block;
    transition: 0.2s;
}
#logo-img {
    background: url('../img/logo.svg') no-repeat center center;
    background-size: contain;
    width: 195px;
    height: 71px;
    padding-bottom: 1%;
}
.head,
.section {
    display: flex;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
}
.device,
.device .section {
    display: block;
}
.head .button {
    padding-top: 16px;
    padding-bottom: 16px;
}
.content {
    animation: fade 0.3s ease-in-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
h1, #title {
    font-weight: bold;
    font-size: 34px;
    font-family: "quicksand";
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 24px;
}
h2, .section {
    font-weight: bold;
    font-family: "quicksand";
}
h3, h4, h5, h6 {
    font-family: "quicksand";
}
a,
.navbar #link,
#postlink {
    color: rgb(209, 202, 231);
}
#postlink {
    font-weight: bold;
    font-size: 30px;
    font-family: "quicksand";
}
#link,
#postlink {
    position: relative;
    transition: 0.2s;
}
#link,
#link:hover,
#link:focus,
#postlink,
#postlink:hover,
#postlink:focus {
    text-decoration: none;
}
#link::after,
#postlink::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    will-change: transform;
}
#link:hover::after,
#postlink:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.list.nobullet {
    list-style-type: none;
    margin-top: 3px;
    margin-bottom: 3px;
}
.list li {
    padding-top: 3px;
    padding-bottom: 3px;
}
a.button, button.button {
    background-color: rgb(72, 70, 95);
    color: rgb(209, 202, 231);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-inline: 2px;
    border-radius: 15px 15px 15px 15px;
    text-decoration: none !important;
    transition: 0.2s;
}
a.button:hover, .navbtn:hover, .tag:hover, button.button:hover {
    background-color: rgb(58, 58, 75);
}
button.button:disabled {
    background-color: rgb(72, 70, 95);
    opacity: 0.5;
    cursor: not-allowed;
}
details, .box {
    border-radius: 15px 15px 15px 15px;
    border: 2px solid rgb(209, 202, 231);
    margin: 10px;
    padding: 15px;
}
details > *:not(summary) {
    padding-top: 10px;
}
summary {
    display: flex;
    list-style: none;
    cursor: pointer;
    flex-grow: 1;
    user-select: none;
}
summary::before {
    content: "▶";
    transform: translateX(3px) translateY(0px) rotate(0); /* me when unicode arrow has padding on the right */
    margin-right: 10px;
    margin-top: 2px;
    transition: 0.2s;
}
summary .section {
    padding: 0;
}
details[open] summary::before {
    transform: translateX(0px) translateY(-2px) rotate(90deg);
}
summary::-webkit-details-marker,
summary::marker,
.mof--hidden {
    display: none;
}
.rf--hidden {
    display: block;
}
#webring {
    margin-block: 5px;
}
@media (min-width: 768px) {
    .navbar #link {
        font-size: 25px;
    }
    .content {
        margin-left: 100px;
        margin-right: 100px;
        padding: 16px;
    }
    .blogpost img {
        max-width: 80%;
    }
}
@media (min-width: 1024px) {
    html {
        font-size: 19.5px;
    }
    .content {
        margin-left: 200px;
        margin-right: 200px;
        padding: 16px;
    }
    .grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .blogpost img {
        max-width: 65%;
    }
    .device {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 30px;
    }
    .device.reverse {
       flex-direction: row-reverse;
    }
    .device #device-specs {
       flex: 1 0;
    }
    .device.reverse #device-specs {
       flex: 0 0 auto;
       margin-left: auto;
    }
    .device #device-img {
       width: 30%;
       height: auto;
    }
@keyframes slide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fade {
    from {top: -25px; opacity: 0;}
    to {top: 0px; opacity: 1;}
}
@keyframes star {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5px, 3px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}
}
@supports (gap: 0.5em) {
.tag {
    display: inline-block;
    background-color: rgb(72, 70, 95);
    color: rgb(209, 202, 231);
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 3px;
    padding-right: 3px;
    border-radius: 5px 5px 5px 5px;
    border: 5px 5px 5px 5px white;
    text-decoration: none !important;
    font-style: normal;
    transition: 0.2s;
}
.stars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s linear;
    animation: fadein 0.3s;
}
.star {
    position: fixed;
    background: url('../img/star.png') no-repeat center;
    background-size: contain;
    pointer-events: none;
    animation: star 60s linear infinite;
    animation-delay: 0.9s
}
.star1 { width: 30px; height: 30px; top: 5vh; left: 10vw; }
.star3 { width: 35px; height: 35px; top: 10vh; left: 50vw; }
.star5 { width: 32px; height: 32px; top: 12vh; left: 85vw; }

@media (min-width: 768px) {
.star2 { width: 25px; height: 25px; top: 8vh; left: 30vw; }
.star4 { width: 28px; height: 28px; top: 6vh; left: 70vw; }
}
}
}