/* =========================================================
   KILIAN'S WEBSITE!!!
   Retro 2000s Orange Internet Theme
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    color: #3a1a07;

    font-family:
        Verdana,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 13px;
    line-height: 1.5;

    background-color: #e8751b;

    background-image:
        radial-gradient(
            circle at 20% 20%,
            rgba(255,255,255,0.18) 0,
            rgba(255,255,255,0.18) 2px,
            transparent 3px
        ),
        linear-gradient(
            135deg,
            #ffb347 0%,
            #f18424 35%,
            #d95b12 70%,
            #f39a28 100%
        );

    background-attachment: fixed;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
    color: #a83d00;
    font-weight: bold;
    text-decoration: underline;
}

a:visited {
    color: #7d3100;
}

a:hover {
    color: #ff3d00;
    background: #ffd36b;
    text-decoration: none;
}

a:active {
    color: #ff0000;
}


/* =========================================================
   MAIN PAGE CONTAINER
   ========================================================= */

#page {
    width: 920px;
    max-width: calc(100% - 20px);

    margin: 25px auto 40px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;
    overflow: hidden;

    padding: 28px 25px 24px;

    border: 3px solid #702900;
    border-radius: 12px;

    background:
        linear-gradient(
            to bottom,
            #ffd77d 0%,
            #ffb13e 34%,
            #e56b16 35%,
            #bd4707 100%
        );

    color: white;

    box-shadow:
        0 4px 0 #702900,
        0 8px 18px rgba(60,20,0,0.45);
}


/* Shiny old-school website header */

.site-header::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 45%;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0.45),
            rgba(255,255,255,0)
        );

    pointer-events: none;
}


.site-header h1 {
    position: relative;

    margin: 0;

    color: #fff9df;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 44px;
    line-height: 1.1;

    text-shadow:
        3px 3px 0 #713000,
        0 0 8px rgba(255,255,255,0.6);
}


.site-header p {
    position: relative;

    margin: 8px 0 0;

    color: #fff0c8;

    font-size: 14px;
    font-weight: bold;

    text-shadow:
        1px 1px #713000;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.navbar {
    margin: 15px 0;
    padding: 6px;

    text-align: center;

    background:
        linear-gradient(
            to bottom,
            #63300f,
            #351505
        );

    border: 2px solid #260d02;
    border-radius: 8px;

    box-shadow:
        0 3px 0 #210b02,
        0 5px 10px rgba(60,20,0,0.3);
}


.navbar a {
    display: inline-block;

    margin: 2px;
    padding: 6px 14px;

    border: 1px solid #d16a22;
    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #b95817,
            #783008
        );

    color: #fff2d1;

    font-size: 12px;

    text-decoration: none;

    text-shadow:
        1px 1px #542000;

    box-shadow:
        inset 0 1px rgba(255,255,255,0.25);
}


.navbar a:hover {
    background:
        linear-gradient(
            to bottom,
            #f19a42,
            #b84c0b
        );

    color: white;

    transform: translateY(-1px);
}


/* Current page */

.navbar a.current-page {
    background:
        linear-gradient(
            to bottom,
            #ffad4f,
            #d85c0d
        );

    color: #fff;

    border-color: #ffd38c;

    box-shadow:
        inset 0 0 8px rgba(255,255,255,0.3),
        0 0 5px rgba(255,150,50,0.5);
}


/* =========================================================
   TWO-COLUMN LAYOUT
   ========================================================= */

.site-layout {
    display: grid;

    grid-template-columns:
        210px minmax(0, 1fr);

    gap: 15px;

    align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    padding: 10px;

    background: #fff7e5;

    border: 2px solid #8b3b09;
    border-radius: 8px;

    box-shadow:
        0 4px 10px rgba(70,25,0,0.3);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

main {
    min-width: 0;

    padding: 15px;

    background: #fff8e9;

    border: 2px solid #8b3b09;
    border-radius: 8px;

    box-shadow:
        0 4px 10px rgba(70,25,0,0.3);
}


.single-page {
    margin-top: 15px;
}


/* =========================================================
   GENERAL BOX
   ========================================================= */

.box {
    margin: 0 0 14px;

    overflow: hidden;

    background: #fffdf7;

    border: 2px solid #a94b0d;
    border-radius: 6px;

    box-shadow:
        1px 2px 0 rgba(100,40,0,0.15);
}


.box h2 {
    margin: 0;
    padding: 7px 10px;

    background:
        linear-gradient(
            to bottom,
            #df731f,
            #a94308
        );

    border-bottom: 1px solid #7b2c05;

    color: white;

    font-family:
        Verdana,
        Arial,
        sans-serif;

    font-size: 14px;

    text-shadow:
        1px 1px #702900;
}


.box-content {
    padding: 11px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome {
    margin-bottom: 14px;
    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #fff7d8,
            #ffe5ae
        );

    border: 2px dashed #d56a13;

    text-align: center;
}


.welcome h2 {
    margin: 0 0 8px;

    color: #a23d00;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;
}


/* =========================================================
   WEBSITE NEWS
   ========================================================= */

.notice {
    margin: 0 0 14px;
    padding: 9px;

    background: #ffd75c;

    border: 2px solid #b84b00;

    color: #5b2500;

    font-weight: bold;

    text-align: center;

    box-shadow:
        inset 0 1px rgba(255,255,255,0.5);
}


/* =========================================================
   SIDEBAR NAVIGATION
   ========================================================= */

.sidebar .box-content a {
    display: block;

    margin: 0 0 7px;
    padding: 3px 5px;
}


.sidebar .box-content a:hover {
    padding-left: 9px;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
    padding: 7px;

    background: #fff0c7;

    border: 1px solid #d6a04e;

    font-family:
        "Courier New",
        monospace;

    font-size: 11px;
}


.online {
    color: #087b14;

    font-weight: bold;
}


/* =========================================================
   VISITOR COUNTER
   ========================================================= */

.counter {
    margin-top: 6px;
    padding: 6px;

    background: #17110d;

    border: 2px inset #888;

    color: #ff982b;

    font-family:
        "Courier New",
        monospace;

    font-size: 16px;

    letter-spacing: 3px;

    text-align: center;

    text-shadow:
        0 0 4px #ff7b00;
}


/* =========================================================
   PROFILE / ABOUT
   ========================================================= */

.profile {
    display: flex;

    gap: 16px;

    align-items: flex-start;
}


.avatar {
    width: 120px;
    height: 120px;

    flex: 0 0 120px;

    overflow: hidden;

    background: #f4a03d;

    border: 3px solid #843100;

    box-shadow:
        3px 3px 0 #c96816;
}


.avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   HOME COMPUTER
   ========================================================= */

.home-computer {
    float: right;

    width: 150px;
    max-width: 40%;

    margin: 0 0 10px 15px;
}


/* =========================================================
   PROJECT CARDS
   ========================================================= */

.project-card {
    margin: 0 0 15px;
    padding: 15px;

    background:
        linear-gradient(
            135deg,
            #fff9e3,
            #ffe6b3
        );

    border: 2px solid #b9570c;

    border-left: 7px solid #df7218;

    box-shadow:
        2px 3px 0 #8b3c0b;
}


.project-card h2 {
    margin: 0 0 8px;

    color: #9d3b00;

    font-size: 18px;
}


/* =========================================================
   MUSIC PLAYER
   ========================================================= */

.music-computer {
    display: block;

    width: 140px;
    max-width: 100%;

    margin: 0 auto 15px;
}


.music-player {
    padding: 14px;

    background: #1d130d;

    border: 3px inset #777;

    color: #ff9d32;

    font-family:
        "Courier New",
        monospace;

    text-align: center;

    box-shadow:
        inset 0 0 15px rgba(255,100,0,0.1);
}


.music-title {
    margin-bottom: 10px;

    color: #ffb34d;
}


#music-status {
    color: #ff7f00;

    font-weight: bold;
}


.music-player button {
    margin: 3px;
}


#music-volume {
    width: 150px;
    max-width: 100%;

    vertical-align: middle;
}


/* =========================================================
   BUTTONS
   ========================================================= */

button {
    padding: 7px 13px;

    background:
        linear-gradient(
            to bottom,
            #e98229,
            #a94007
        );

    border: 1px solid #702b05;
    border-radius: 4px;

    color: white;

    cursor: pointer;

    font-family:
        Verdana,
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: bold;

    text-shadow:
        1px 1px #672400;
}


button:hover {
    background:
        linear-gradient(
            to bottom,
            #ffab4d,
            #c9530b
        );
}


button:active {
    transform: translateY(1px);
}


/* =========================================================
   FORMS
   ========================================================= */

label {
    display: block;

    margin-top: 7px;

    color: #6b2900;

    font-weight: bold;
}


input,
textarea {
    width: 100%;

    padding: 8px;

    margin: 4px 0 10px;

    background: #fffefa;

    border: 1px solid #a85216;
    border-radius: 2px;

    color: #3b1b08;

    font-family:
        Verdana,
        Arial,
        sans-serif;

    font-size: 12px;
}


textarea {
    min-height: 90px;

    resize: vertical;
}


input:focus,
textarea:focus {
    outline: 2px solid #f19a32;

    background: #fff9df;
}


/* =========================================================
   GUESTBOOK
   ========================================================= */

.guestbook-entry {
    margin: 0 0 10px;
    padding: 10px;

    background: #fff2d2;

    border: 1px solid #e0b26b;

    border-left: 5px solid #df7218;
}


.guest-name {
    color: #963600;

    font-size: 14px;

    font-weight: bold;
}


.guest-message {
    margin-top: 3px;

    color: #3b1b08;

    white-space: pre-wrap;

    overflow-wrap: anywhere;
}


.guest-date {
    margin-top: 6px;

    color: #9b6c3b;

    font-family:
        "Courier New",
        monospace;

    font-size: 10px;
}


#guestbook-status {
    color: #8b4b1c;

    font-size: 11px;

    font-style: italic;
}


/* =========================================================
   LINKS / WEBRING
   ========================================================= */

.webring {
    padding: 10px;

    background: #4a210d;

    border: 2px inset #888;

    color: #ffd99a;

    font-family:
        "Courier New",
        monospace;

    text-align: center;
}


/* =========================================================
   CONSTRUCTION ZONE
   ========================================================= */

.construction {
    margin: 15px 0;
    padding: 10px;

    background:
        repeating-linear-gradient(
            135deg,
            #ffd83d 0,
            #ffd83d 12px,
            #292929 12px,
            #292929 24px
        );

    border: 2px solid #703000;

    text-align: center;
}


.construction img {
    max-width: 100%;

    vertical-align: middle;
}


.construction span {
    display: inline-block;

    margin-top: 7px;
    padding: 4px 8px;

    background: #743000;

    color: white;

    font-weight: bold;

    text-shadow:
        1px 1px black;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    margin-top: 15px;
    padding: 15px;

    background:
        linear-gradient(
            to bottom,
            #5b2a0e,
            #321306
        );

    border: 2px solid #240c02;
    border-radius: 8px;

    color: #ffe7b2;

    text-align: center;

    box-shadow:
        0 4px 10px rgba(60,20,0,0.35);
}


footer a {
    color: #ffd58c;
}


/* =========================================================
   HORIZONTAL RULE
   ========================================================= */

hr {
    height: 3px;

    margin: 15px 0;

    border: 0;

    background:
        repeating-linear-gradient(
            90deg,
            #e26f19 0,
            #e26f19 8px,
            transparent 8px,
            transparent 14px
        );
}


/* =========================================================
   LISTS
   ========================================================= */

ul {
    padding-left: 25px;
}


li {
    margin-bottom: 5px;
}


/* =========================================================
   IMAGES
   ========================================================= */

img {
    max-width: 100%;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
    background: #ff8c22;

    color: white;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 14px;
}


::-webkit-scrollbar-track {
    background: #6b2b0b;
}


::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            #ff9a32,
            #a84208
        );

    border: 2px solid #6b2b0b;
}


::-webkit-scrollbar-thumb:hover {
    background: #ffb34d;
}


/* =========================================================
   PAGE LOAD ANIMATION
   ========================================================= */

.page-loaded #page {
    animation:
        pageAppear 0.25s ease-out;
}


@keyframes pageAppear {

    from {
        opacity: 0;

        transform:
            translateY(4px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   OPTIONAL OLD-WEB BLINK
   ========================================================= */

.blink {
    animation:
        blink 1s steps(2, start) infinite;
}


@keyframes blink {

    50% {
        opacity: 0;
    }

}


/* =========================================================
   OPTIONAL PIXEL / MONOSPACE STUFF
   ========================================================= */

.pixel-text {
    font-family:
        "Courier New",
        monospace;

    letter-spacing: 1px;
}


.retro-box {
    padding: 10px;

    background: #22150d;

    border: 3px ridge #d98737;

    color: #ffb34d;

    font-family:
        "Courier New",
        monospace;
}


/* =========================================================
   CURRENT YEAR / LAST UPDATED
   ========================================================= */

.current-year {
    font-weight: bold;
}


#last-updated {
    color: #ffd18b;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    #page {
        width: auto;

        max-width:
            calc(100% - 10px);

        margin:
            10px auto 25px;
    }


    .site-header h1 {
        font-size: 30px;
    }


    .site-layout {
        grid-template-columns: 1fr;
    }


    .profile {
        flex-direction: column;
    }


    .avatar {
        width: 100px;
        height: 100px;

        flex-basis: 100px;
    }


    .home-computer {
        float: none;

        display: block;

        width: 130px;
        max-width: 100%;

        margin:
            0 auto 15px;
    }


    .navbar a {
        padding: 6px 9px;
    }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {

    body {
        font-size: 12px;
    }


    .site-header {
        padding:
            20px 15px;
    }


    .site-header h1 {
        font-size: 25px;
    }


    main {
        padding: 10px;
    }


    .navbar a {
        display: block;

        margin: 3px 0;
    }


    .project-card {
        padding: 11px;
    }


    .music-player {
        padding: 10px;
    }

}
