/* General */

html {
    scroll-behavior: smooth;
    scrollbar-width: auto;
    scrollbar-color: dark;
}

body {
    background-color: #000000;
    font-family: Inconsolata, monospace;
    color: rgb(200, 200, 200);
}

.invis {
    color: transparent;

}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

.icon {
    width: 16px;
    height: 16px;
    margin-top: 5px;
}

.flag {
    width: 16px;
    height: 16px;
}

.seperation {
    background-color: #202020;
    border-radius: 10px;
}

/* Desktop menu*/

#menu_desktop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background-color: #202020;
    height: 75px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 20;
}

#menu_desktop ul {
    white-space: nowrap;
    overflow: hidden;
    list-style: none;
    margin-right: 10px;
    padding-block: 5px;
    margin-top: 7.5px;
}

#menu_desktop li {
    text-decoration: none;
    outline-color: #7CB242;
    outline-width: 1px;
    outline-style: solid;
    border-radius: 10px;
    float: right;
    margin-right: 10px;
    transition: ease-out 250ms;
}

#menu_desktop a {
    text-decoration: none;
    display: block;
    padding: 14px;
}

#menu_desktop li:hover {
    background-color: #285C00;
    transition: ease-in 250ms;
}

/* Mobile menu */

#menu_container_mobile {
    position: fixed;
    right: 0;
}

#menuToggle_mobile {
    display: block;
    position: relative;
    top: 10px;
    right: 10px;
    z-index: 23;
    -webkit-user-select: none;
    user-select: none;
}

#menuToggle_mobile a {
    text-decoration: none;
    color: rgb(200, 200, 200);
    transition: ease-out 250ms;
}

#menuToggle_mobile a:hover {
    color: #7CB242;
    transition: ease-in 250ms;
}

#menuToggle_mobile input {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -8px;
    right: -6.5px;
    cursor: pointer;
    opacity: 0;
    z-index: 22;
    -webkit-touch-callout: none;
}

#menuToggle_mobile span {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: rgb(200, 200, 200);
    border-radius: 3px;
    z-index: 21;
    transform-origin: 4px 0px;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
        background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
        opacity 0.55s ease;
}

#menuToggle_mobile span:first-child {
    transform-origin: 0% 0%;
}

#menuToggle_mobile span:nth-last-child(2) {
    transform-origin: 0% 100%;
}

#menuToggle_mobile input:checked~span {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: rgb(200, 200, 200);
}

#menuToggle_mobile input:checked~span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
}

#menuToggle_mobile input:checked~span:nth-last-child(2) {
    transform: rotate(-45deg) translate(0, -1px);
}

#menuToggle_mobile input:checked~ul {
    transform: none;
}

#menu_mobile {
    position: absolute;
    min-width: 300px;
    width: 30%;
    margin: -100px 0 0 50px;
    padding: 50px;
    padding-top: 125px;
    background: #202020;
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    right: -30%;
    transform: translate(100%, 0);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    border-bottom-left-radius: 10px;
}

#menu_mobile li {
    padding: 10px 0;
    font-size: 22px;
}

/* Page sections */

#home {
    padding-top: 100px;
}

article {
    line-height: 200%;
}

#advices,
#projects,
#links,
#donate,
#about {
    padding-top: 60px;
    padding-bottom: 60px;
}

#links,
#projects {
    line-height: 200%;
}

footer {
    line-height: 75%;
    padding-top: 25px;
    padding-bottom: 50px;
}

#links li {
    list-style: none;
}

#donate ul {
    line-height: 160%;
}

/* Headers */

h1 {
    font-size: 60px;
    text-decoration: underline;
    line-height: 110%;
}

#main_header,
#legal_header,
#privacy_header,
#error_header {
    text-align: center;
    line-height: 150%;
    margin-top: 110px;
    padding-bottom: 100px;
}

/* Profile picture */

#profile-picture {
    position: relative;
    top: 50px;
    z-index: -1;
}

#profile-picture img {
    margin: auto;
    border-radius: 50px;
    width: 150px;
    height: 157px;
}

#picture-description {
    text-align: center;
}

/* GitHub stats */

#gh-stats {
    width: 495px;
    height: 195px;
}

#gh-streak {
    width: 495px;
    height: 195px;
}

#gh-graph {
    width: 900px;
    height: 315px;
}

/* Fediring*/

#fediring_container {
    text-align: center;
    font-size: 25px;
    text-decoration: none;
    font-weight: bold;
    font-style: oblique;
    line-height: 200%;
}

#fediring_container p {
    margin-left: auto;
    margin-right: auto;
    background-color: #202020;
    width: max-content;
    border-radius: 10px;
    outline-color: #7CB242;
    outline-style: solid;
    outline-width: 2px;
}

#fediring_container a {
    padding: 5px;
    border-radius: 10px;
    transition: ease-out 250ms;
    margin: 10px;
}

#fediring_container p :hover {
    color: #7CB242;
    text-decoration: none;
    background-color: #444444;
    transition: ease-in 250ms;
}

#fediring_header,
#fediring_header :hover {
    text-decoration: underline !important;
    font-size: 27px;
}

/* Language switcher desktop */

#ls_desktop {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.ls_parent_desktop {
    position: relative;
    background-color: transparent;
    color: black;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    width: max-content;
    background-color: #202020;
    border-radius: 10px;
    outline-color: #7CB242;
    outline-style: solid;
    outline-width: 1px;
    transition: ease-in 250ms !important;
}

.ls_parent_desktop span {
    color: white;
}

.ls_parent_desktop:hover {
    outline: none !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transition: ease-out 250ms !important;
}

.ls_content_desktop {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(-2em);
    z-index: -1;
    transition: all 0.3s ease-in-out 0s, visibility 0s linear 0.3s,
        z-index 0s linear 0.01s;
    line-height: 110%;
    position: absolute;
    background-color: #202020;
    overflow: auto;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.ls_parent_desktop:focus .ls_content_desktop,
.ls_parent_desktop:focus-within .ls_content_desktop,
.ls_parent_desktop:hover .ls_content_desktop {
    visibility: visible;
    opacity: 1;
    z-index: 1;
    transform: translateY(0%);
    transition-delay: 0s, 0s, 0.3s;
}

#active {
    background-color: #444444;
    text-decoration: none;
}

.ls_content_desktop a {
    padding: 12px 16px;
    display: block;
    transition: ease-out 250ms;
    border-radius: 10px;
    margin: 5px;
}

.ls_content_desktop a:hover {
    background-color: #444444;
    text-decoration: none;
    color: #7CB242 !important;
    transition: ease-in 250ms;
}


/* Language switcher mobile */

#ls_mobile_container {
    padding: 10px 0;
    font-size: 20px;
}

#ls_mobile_container a {
    padding: 5px;
    border-radius: 10px;
    line-height: 150%;
}

.active_ls_mobile,
#ls_mobile_container a:hover {
    background-color: #444444 !important;
}

/* Banners */

#website_hoster_banner {
    width: 470px;
    height: 60px;
    border-radius: 5px;
}

.ad_partner_disclaimer {
    font-size: small;
}

.hosted-codeberg {
    width: 200px;
    height: 59.5667px;
}

#website_hoster {
    width: 200px;
    height: 38px;
    border-radius: 5px;
}

/* Programmer quotes */

#prgqt {
    display: flex;
    margin: auto;
    width: 800px;
    height: 200px;
}

#prgqt img {
    display: flex;
    margin: auto;
    width: auto;
    height: auto;
}

/* Legal */

#legal,
#error {
    text-align: center;
    font-size: 15px;
}

#privacy {
    /*text-align: center;*/
    font-size: 15px;
}

#last-updated {
    text-align: right;
}

/* xkcd */

#xkcd-sandwich {
    width: 360px;
    height: 299px;
    border-radius: 10px;
}

#xkcd-404 {
    width: 500px;
    height: 489.4px;
    margin-top: 7.5%;
    border-radius: 10px;
}

/* Links */

a:link,
footer a:visited {
    color: rgb(255, 100, 100);
    background-color: transparent;
    text-decoration: none;
}

a:hover,
footer a:hover {
    color: rgb(100, 100, 255);
    background-color: transparent;
    text-decoration: underline;
}

#menu_desktop a:link,
#menu_desktop a:visited,
#ls_desktop a:link,
#ls_desktop a:visited {
    color: white;
}

#content a:visited {
    color: rgb(0, 180, 0);
    background-color: transparent;
    text-decoration: none;
}

#legal_links {
    text-align: right;
}

#privacy_links {
    text-align: right;
}

/* Webkit scrollbar */

html::-webkit-scrollbar {
    width: 15px;
}

html::-webkit-scrollbar-track {
    background: black;
}

html::-webkit-scrollbar-thumb {
    background: #2b2a2a;
    border-radius: 25px;
}

/* Selection */

::-moz-selection {
    background-color: #7CB242;
    color: #000000;
}

::selection {
    background-color: #7CB242;
    color: #000000;
}

.var-highlight {
    color: #C0AD60;
}

.string-highlight {
    color: rgba(253, 149, 90, 0.8);
}

/* Responsive */

@media only screen and (max-width: 985px) {

    #menu_desktop,
    #ls_desktop {
        display: none;
    }
}

@media only screen and (min-width: 985px) {
    #menu_container_mobile {
        display: none;
    }
}

@media only screen and (max-width: 999px) {
    #gh-stats-container {
        display: none;
    }
}

@media only screen and (max-width: 540px) and (min-width: 300px) {
    #website_hoster_banner {
        width: 90%;
        height: 90%;
    }
}

@media only screen and (max-width: 300px) {
    #website_hoster_banner {
        width: 219.6px;
        height: 28.0333px;
    }
}

@media only screen and (max-width: 420px) and (min-width: 300px) {
    #xkcd-sandwich {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 300px) {
    #xkcd-sandwich {
        width: 244px;
        height: 202.65px;
    }
}

@media only screen and (max-width: 800px) and (min-width: 500px) {
    #prgqt {
        width: 90%;
        height: 90%;
    }

    #prgqt img {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 500px) {
    #prgqt {
        display: none;
    }
}

@media only screen and (min-width: 300px) and (max-width: 500px) {
    #xkcd-404 {
        width: 100%;
        height: 100%;
    }
}

@media only screen and (max-width: 300px) {
    #xkcd-404 {
        width: 284px;
        height: 277.983px;
    }
}