/*
 *  base
 */

::selection {
    background: rgba(255, 145, 74, 0.1);
}

::-moz-selection {
    background: rgba(255, 145, 74, 0.1);
}

html {
    height: 100%;
    background-color: white;
    font-size: 14px;
    font-family: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(216,216,216,0.1);
}

h1, h2, h3 {
    color: #313131;
}

h1 {
    font-size: 3em;
    margin: 0.7em 0;
}

p, li {
    font-size: 1.5em;
    line-height: 1.5;
    color: #383838;
}

p em {
    font-style: normal;
    padding: 0 0.1em;
}

a {
    text-decoration: none;
    position: relative;
    color: rgb(255, 122, 46);
    font-weight: 400;
    padding: 0 0.2em;
    letter-spacing: 0.05em;
    transition: text-shadow 0.3s ease-out, text-underline-offset 0.2s ease, text-decoration-color 0.2s ease;
}

a.--hoverable {
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(255, 255, 255, 0);
}

a.--hoverable:hover {
    text-underline-offset: 6px;
    text-decoration-color: rgb(255, 145, 74);
}

a:active {
    text-shadow: -1px 1px 0 rgba(56,56,56, 0.8);
}

a:focus-visible {
    outline-offset: 0;
    outline: 2px outset rgba(255, 145, 74, 0.3);
    background-color: rgba(255, 145, 74, 0.1);
}

@keyframes arrow-idle {
    0% { transform: translateY(0.1em); }
    50% {transform: translateY(-0.3em);}
    100% { transform: translateY(0.1em); }
}

a.arrow {
    display: none;
    padding: 0.3em;
    font-size: 3rem;
    user-select: none;
    text-shadow: 1px 1px 1px rgba(56,56,56, 0.55),
        2px 2px 3px rgba(0,0,0,0.2);

    animation: arrow-idle 3s infinite;
    animation-timing-function: ease-in-out;
}

a.arrow:hover {
    text-shadow: 1px 1px 0 rgba(56,56,56, 0.8),
        3px 5px 5px rgba(0,0,0,0.3);
}

a.arrow:active {
    text-shadow: 1px 1px 0 rgba(56,56,56, 0.8);
}

@media (max-width: 1520px) /* small desktop */
{
}

@media (max-width: 1220px) /* tablet */
{
    a.arrow {
        display: none;
    }
}

@media (max-width: 1020px) /* small table/landscape */
{
    p {
        font-size: 1.2em;
    }
}

@media (max-width: 820px) /* mobile */
{
}

/*
 *  paging
 */

main {
    height: 100%;
    overflow: hidden;
}

main section {
    position: relative;
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.8s cubic-bezier(.79,.14,.15,.86);;
}

main.--scrolled section {
    transform: translateY(-100%);
}

main section .content {
    margin: auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1520px) /* small desktop */
{
}

@media (max-width: 1220px) /* tablet */
{
    body {
        height: auto;
    }

    main {
        max-height: initial;
        height: auto;
    }

    main section {
        max-height: initial;
        min-height: calc(100vh - 65px);
        visibility: visible !important;
        overflow: initial;
    }

    main.--scrolled section {
        transform: none;
    }
}

@media (max-width: 1020px) /* small table/landscape */
{
}

@media (max-width: 820px) /* mobile */
{
}

/*
 *  landpage
 */

canvas {
    position: relative;
    z-index: -10;
}

.landpage-info {
    padding-right: 30rem;
}

.hints {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 2rem;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.hints.--hidden {
    opacity: 0;
}

.hints img {
    max-height: 4rem;
    height: 100%;
    width: auto;
    opacity: 0.5;
}

@media (max-width: 1520px) /* small desktop */
{
    .landpage-info {
        padding-right: 10rem;
    }
}

@media (max-width: 1220px) /* tablet */
{
    .hints {
        display: none;
    }
}

@media (max-width: 1020px) /* small table/landscape */
{
    .landpage-info {
        padding: 0 4em;
    }
}

@media (max-width: 820px) /* mobile */
{
}

/*
 *  projects
 */

/* tabs */

main section.projects .content {
    flex-direction: column;
    align-items: stretch;
    overflow-x: hidden;
}

/* prevents shifting content to left with scrollbars */
main section.projects .content > * {
    min-width: 100vw;
}

.tabs {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 4em 0 1.5em;
    padding: 0;
    list-style-type: none;
}

.tabs .arrow {
    margin-left: 5rem;
}

.tab-selector {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.3em;
    border-radius: 1em;
    background-color: rgb(255, 145, 74);
    transition: width 0.3s ease, left 0.3s ease;
}

.tab {
    cursor: pointer;
    margin: 0.1em 2em 0 0;
    padding: 0.6em 1em;
    background-color: transparent;
    border: none;
    text-align: left;
    white-space: nowrap;
}

.tab:focus, .tab:active {
    outline: none;
}

.tab:focus-visible {
    outline-offset: 0;
    outline: 2px outset rgba(255, 145, 74, 0.3);
    background-color: rgba(255, 145, 74, 0.1);
}

.tab-title, .slider-item-title {
    color: #686868;
    margin-bottom: 0.2em;
    transition: text-shadow 0.3s ease-out;
}

.slider-item-title {
    display: none;
}

.tab.--active .tab-title, .tab:hover .tab-title {
    color: #282828;
}

.tab-type, .slider-item-type {
    font-size: 0.7em;
    color: #989898;
}

.tab-note {
    font-size: 0.6em;
    color: rgb(255, 100, 0);
    position: relative;
    left: -1em;
    top: 1em;
    border: 1px solid rgb(255, 145, 74);
    display: inline-block;
    border-radius: .4em;
    padding: .3em .6em;
}

.slider-item-type {
    display: none;
}

.tab.--active .tab-type, .tab:hover .tab-type {
    color: #686868;
}

.tab-title, .tab-type {
    transition: color 0.2s ease;
}

@media (max-width: 1620px) { /*special just for this */
    .tab {
        margin: 0.1em 2em 0 0;
        padding: 0.6em 0.6em;
    }
}

@media (max-width: 1520px) /* small desktop */
{
    .tabs .arrow {
        margin-left: 1rem;
    }

    .tab {
        margin: 0.1em 1em 0 0;
        padding: 0.6em 0.6em;
    }

    .tab-title {
        font-size: 0.9em;
    }
}

@media (max-width: 1220px) /* tablet */
{
    .tabs {
        display: none;
    }
}

@media (max-width: 1020px) /* small table/landscape */
{
}

@media (max-width: 820px) /* mobile */
{
}

/* slider */

.slider {
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.slider-item {
    flex-basis: 100vw;
    flex-shrink: 0;

    padding: 2em 4em;
    max-width: 100vw;
    box-sizing: border-box;

    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.slider-item .image {
    box-shadow: 4px 4px 14px rgba(220, 220, 220, 0.8);
}

.slider-item .image img {
    vertical-align: top;
    width: 100%;
}

.slider-item .info {
    color: #383838;
    margin-left: 4em;
    max-width: 20vw;
}

.slider-item .info.--full-width {
    max-width: initial;
}

.slider-item .info > div {
    padding-bottom: 1em;
}

.slider-item .info > .inline {
    display: flex;
    justify-content: space-around;
}

.slider-item .info > .inline > div {
    min-width: 20vw;
    margin-right: 4em;
}

.slider-item p, .slider-item li {
    font-size: 1.1em;
}

.slider-item a {
    padding: 0.1em 0 0 0;
    color: #0366d6;
    font-size: 0.9em;
    text-shadow: none;
    letter-spacing: initial;
}

.slider-item a:hover {
    text-shadow: none;
    text-decoration: underline;
}

.slider-item a:focus {
    text-shadow: none;
}

.slider-item a:focus-visible {
    background-color: rgba(3, 102, 214, 0.1);
    outline-color: rgba(3, 102, 214, 0.3);
}

.slider-item h3 {
    display: flex;
}

.slider-item li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
}

.slider-item li .icon {
    max-width: 1.4rem;
}

.icon, svg {
    flex-shrink: 0;
    display: inline-block;
    fill: #868686;
}

.icon {
    max-width: 1.1em;
    margin-right: 0.6em;
}

@media (max-width: 1520px) /* small desktop */
{
    .slider-item {
        align-items: flex-start;
        max-width: 100%;
    }

    .slider-item .info {
        color: #383838;
        min-width: 25vw;
        max-width: 40vw;
        box-sizing: border-box;
    }

    .slider-item {
        font-size: 0.9em;
    }

    .slider-item a {
        font-size: 0.9em;
    }

    .slider-item ul {
        padding: 0;
    }
}

@media (max-width: 1220px) /* tablet */
{
    .slider {
        margin-top: 65px;
        flex-direction: column;
        align-items: stretch;
        transform: none !important;
    }

    .slider-item {
        visibility: visible !important;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        margin: 36px;
        border-radius: 8px;

        box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    }

    .slider-item .image {
        margin: -36px;
        align-self: center;
    }

    .slider-item-title {
        letter-spacing: -0.02em;
        color: #282828;
        display: block;
        text-align: center;
        font-size: 1.6em;
        font-weight: 700;
        margin: 1em 0 0.2em;
    }

    .slider-item-type {
        display: block;
        text-align: center;
        font-size: 1.3em;
        margin: 0 0 calc(36px + 1em);
    }

    .slider-item .info {
        min-width: initial;
        max-width: initial;
        margin: calc(36px + 1em) 2em 0;
    }

    .slider-item .info > .inline {
        flex-direction: column;
    }

    .slider-item .info > .inline > div {
        min-width: initial;
        max-width: initial;
        margin: 0;
    }
}

@media (min-width: 820px) and (max-width: 1220px) /* small table/landscape */
{
    h1 {
        font-size: 3em;
    }

    p, li {
        font-size: 1.4em;
    }

    .slider-item p, .slider-item li {
        font-size: 1.3em;
    }

    .slider-item h2 {
        font-size: 1.8em;
    }

    .slider-item h3 {
        font-size: 1.5em;
    }

    .slider-item h3 a {
        font-size: 0.9em;
    }

    .slider-item .slider-item-title {
        font-size: 2em;
    }

    .slider-item .slider-item-type {
        font-size: 1.6em;
    }
}

@media (max-width: 820px) /* mobile */
{
}

/*
 *  wave
 */

canvas {
    transform: rotate(180deg);
}