
:root {
    --skills-accent: hsl(43, 100%, 42%);
    --article-accent: hsl(0, 62%, 10%);
    --section-accent: hsl(215, 50%, 5%);
}

::selection {
    color: white;
    background-color: hsl(180, 80%, 35%);
}

body {
    background: black;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#title-ticker {
    position: absolute;
    background: hsl(43, 74%, 49%);
    border: 2px solid black;
    box-sizing: border-box;
    padding: 1rem 0;
    top: -1.3rem;
    width: 100%;
    font-size: 2rem;
    font-style: italic;
    font-weight: bold;
    border-radius: 10px;
    z-index: 4;
    text-align: center;
}

#title-ticker > * {
    position: relative;
}

#title-words {
    display: inline-block;
    position: relative;
    width: 15rem;
    height: 2.8rem;
    top: 0.8rem;
    overflow: hidden;
}

#title-words > span {
    position: absolute;
    display: block;
    top: 3rem;
    animation-timing-function: linear;
    animation-name: title-words-roll;
    animation-duration: 16s;
    animation-iteration-count: infinite;
}

@keyframes title-words-roll {
    0% {
        top: 3rem;
    }

    5%, 20% {
        top: 0;
    }

    25%, 100% {
        top: -3rem;
    }
}

#title-words > span:nth-child(2) {
    animation-delay: 4s;
}

#title-words > span:nth-child(3) {
    animation-delay: 8s;
}

#title-words > span:nth-child(4) {
    animation-delay: 12s;
}

#self-development-content {
    position: fixed;
    width: 100%;
    height: 100%;
}

#self-development-content > * {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scrollbar-width: none;
    position: absolute;
    box-sizing: border-box;
    padding-top: 3.8rem;
    border-radius: 2rem;
}
/* 
    golden-ratio widths: 19.1%, 30.9%, 50%

    (
        where a + phi*a + phi*phi*a = 100%
        , a = lowest width
        , phi = (1 + sqrt(5)) / 2
    )
*/

label {
    cursor: pointer;
}

/*
    left panel
*/

#skills-list {
    background: hsl(43, 100%, 30%);
    z-index: 3;
}
#skills-list > * {
    background-color: var(--skills-accent);
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    display: block;
}
#back-links {
    display: flex;
}
#back-links > * {
    display: block;
    width: 50%;
    background-color: var(--skills-accent);
    margin: 2px;
    padding: 2px;
    border-radius: 1rem;
    border: 3px outset black;
    text-align: center;
    word-break: break-word;
}
#back-links > *:hover {
    background-color: limegreen;
}
#back-links > *:active {
    border: 3px inset black;
}
#skills-list > .skills-list-divider {
    padding: 2px; 
    background-color: hsl(43, 100%, 20%); 
    margin: 0; 
    border: none; 
    border-top: 1px solid black;
}
#skills-list > label {
    background-color: var(--skills-accent);
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    margin-top: -1px;
    border-radius: 0 15px 15px 0;
    text-decoration: underline;
}
#skills-list > label:hover {
    background-color: gold;
}
#skills-list > label[for=old-skills] {
    background-color: grey;
}

/*
    middle panel
*/

#skill-sublist {
    background: var(--article-accent);
    z-index: 2;
}
#skill-sublist > input[type=radio],
#skill-sublist > input[type=radio] + .skill-overview,
#skill-praxis > input[type=radio],
#skill-praxis > input[type=radio] + .praxis-exhibit {
    display: none;
}
#skill-sublist > input[type=radio]:checked + .skill-overview,
#skill-praxis > input[type=radio]:checked + .praxis-exhibit {
    display: block;
}
.skill-overview {
    padding: 1.3rem 0;
    border-radius: 0 15px 15px 15px;
    color: white;
    background-color: hsl(0, 100%, 25%);
}
.skill-overview > h1:first-child,
.praxis-exhibit > h1:first-child {
    margin-top: 0;
    text-align: center;
}
.skill-overview > label {
    width: 100%;
    padding: 0.5rem;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
    margin-top: 1rem;
    border-radius: 0 24px 24px 0;
    box-sizing: border-box;
    display: block;
    background-color: hsl(0, 100%, 35%);
}
.skill-overview > label > p {
    text-decoration: underline;
}
.skill-overview > label:hover {
    background-color: red;
}
.skill-overview > *:last-child {
    margin-bottom: 1rem;
}

/*
    right panel
*/

#skill-praxis {
    background: var(--section-accent);
    z-index: 1;
}
.praxis-exhibit {
    padding: 1.3rem 1rem 0.3rem 1rem;
    border-radius: 24px;
    color: white;
    background-color: hsl(220, 80%, 35%);
}
.praxis-exhibit a {
    color: orange;
}

.two-column-flex {
    display: flex;
    flex-wrap: wrap;
}
.two-column-flex > * {
    display: block;
    width: 50%;
}
.two-column-flex > * > * {
    max-width: 100%;
}

#current-work {
    font-weight: bold;
    color: lime;
}
.checkbox-tracker input[type=checkbox]:checked + span {
    text-decoration: line-through;
}

figure {
    text-align: center;
}

/*
    mobile footer
*/
footer {
    position: fixed;
    width: 20vw;
    height: 20vw;
    background-color: hsl(43, 74%, 49%);
    bottom: 0;
    box-sizing: border-box;
    border-right: 1px solid black;
    border-top: 1px solid black;
    border-radius: 0 10px 10px 0;
    opacity: 0.4;
}

/* 

desktop css overrides 

*/
@media only screen and (min-width: 768px) {
    #title-ticker {
        padding: 1rem 3rem;
        transform: perspective(5px) rotateX(-1deg);
        left: -2.3rem;
        top: -1.3rem;
        width: unset;
        border-radius: 15px;
    }

    #title-ticker > * {
        transform: perspective(5px) rotateX(1deg);
    }

    #skills-list {
        width: 19.1%;
    }

    #skill-sublist {
        left: 19.1%;
        width: 30.9%;
    }

    #skill-praxis {
        left: 50%;
        width: 50%;
    }
}
