:root {
    --active: #f652c3;
    --active-light: #ff7ab1;
    --active-dark: #ff61be;
    --bg-white: #dddddd;
    --bg-light: #65706c;
    --bg-dark: #262f2c;
}

* {
    box-sizing: border-box;
}
html {
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
}

body {
    color: #fff;

    /*max-width: 960px;*/

    margin-left: auto;
    margin-right: auto;

    margin-left: 44px;
    margin-right: 44px;
    margin-top: 55px;
    margin-bottom: 3rem;

    background: radial-gradient(at 50% 100%, #7c8c8a, #394443);
}
@media (max-width: 960px) {
    body {
        margin-left: 8px;
        margin-right: 8px;
        margin-top: 8px;
    }
}

header {
    margin-left: 24px;
    margin-bottom: 25px;
}
@media (max-width: 960px) {
    header {
        margin-left: 16px;
        margin-top: 32px;
    }
}

#details {
    overflow-x: scroll;
    display: flex;
    flex-wrap: nowrap;
    column-gap: 16px;
    row-gap: 1rem;

    padding-bottom: 1rem;
}

#details > section {
    width: 410px;
    flex-grow: 0;
    flex-shrink: 0;
}
@media (max-width: 960px) {
    /* two columns */
    #details {
        overflow: auto;
        touch-action: auto;
        cursor: auto;

        flex-wrap: wrap;
        justify-content: center;
    }
    #details > section {
        width: 350px;
    }
}
@media (max-width: 730px) {
    /* one column */
    #details > section {
        max-width: 100%;
    }
}


section.main {
    box-shadow: 3px 3px 3px #555;
}
section.main img {
    width: 410px;
    height: 468px;
    display: block;
}
section.main div {
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
    padding: 4px 8px;
    font-size: 1rem;
    font-weight: bold;
}
section.main h1 {
    margin: 0px;
    font-size: 1rem;
    font-weight: inherit;
    padding-bottom: 2px;
}
@media (max-width: 960px) {
    #details section.main {
        width: 350px;
        max-width: 100%;
    }
    section.main img {
        max-width: 100%;
        height: auto;
    }
}

section.info {
    background-color: var(--bg-dark);
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
    padding: 14px;
    font-weight: bold;
    font-size: 1rem;
    height: 516px;

    display: flex;
    flex-direction: column;
}

section.info p.description {
    flex: 1;
    margin: 0px;
    overflow-y: scroll;
}
p.description .blocked {
    color: red;
}
section.info a {
    color: white;
}
section.info dl {
    margin-left: 20px;
    width: 100%;
    display: grid;
    grid-template-columns: 40% auto;
}
section.info dl dt {
    grid-column-start: 1;
    text-transform: uppercase;
}
section.info dl dd {
    grid-column-start: 2;
    white-space: nowrap;
}
@media (max-width: 960px) {
    #details section.info {
        max-width: 350px;
        height: auto;
    }
    section.info dl {
        margin-left: 0px;
    }
}

section.media figure {
    margin: 0px;
    width: 100%;
    box-shadow: 3px 3px 3px #555;
}
section.media figure + figure {
    margin-top: 20px;
}
section.media img, section.media video {
    width: 410px;
    height: 200px;
    display: block;
}
section.media figcaption {
    background-color: #262f2c;
    font-size: 1rem;
    font-weight: bold;
    padding: 14px;
}
section.media figure:hover figcaption {
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
@media (max-width: 960px) {
    /* two columns */
    section.media {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        column-gap: 1rem;
        row-gap: 1rem;
    }
    section.media figure, section.media img, section.media video {
        width: 350px;
        max-width: 100%;
        height: auto;
    }
    section.media img, section.media video {
        height: 160px;
    }
    section.media figure + figure {
        margin-top: 0px;
    }
}
@media (max-width: 730px) {
    /* one column */
    section.media img, section.media video {
        height: auto;
    }
}

#detailScroll {
    height: 0px;
}
.scrollArrow {
    background-color: var(--active);
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;

    display: block;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    line-height: 24px;

    position: relative;
    top: calc(-516px / 2);
    left: -48px;
}
.scrollArrow:hover {
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
#detailRight {
    top: calc(-516px / 2 - 2.5rem);
    left: calc(100vw - 44px - 2.5rem);
}
.scrollArrow.hidden {
    visibility: hidden;
}
@media (hover: none) {
    #details {
        touch-action: auto;
    }
    .scrollArrow {
        display: none;
    }
}

h2 {
    position: relative;
    margin-top: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
    background-color: var(--bg-white);
    color: var(--bg-dark);
    font-size: 1.3rem;
    padding: 1.3rem 2.6rem;
    text-transform: uppercase;
    text-align: center;
    width: 17rem;
}
h2:after {
    content:"";
    position: absolute;
    left: calc(50% - 1.3rem);
    bottom: -1rem;
    width: 0%;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-top: 1rem solid var(--bg-white);
}
@media (max-width: 960px) {
    h2 {
        width: 350px;
        max-width: 100%;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}

#achievementlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, 12rem);
    grid-gap: 1rem;
    justify-content: start;
}
#achievementlist .achievement {
    display: flex;
    flex-direction: column;
}
#achievementlist figure {
    margin: 0px;
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
}
#achievementlist img {
    display: block;
}
#achievementlist figcaption {
    flex-grow: 1;
    background-color: var(--bg-dark);
    font-size: 1rem;
    font-weight: normal;
    padding: 14px;
}
#achievementlist figcaption strong {
    display: block;
    padding-bottom: 0.5em;
}
#achievementlist figure:hover figcaption {
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
@media (max-width: 960px) {
    #achievementlist {
        justify-content: center;
    }
}

#downloadinfo {
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 15rem;
}
#downloadinfo h3 {
    font-size: 1rem;
    text-align: center;
    padding: 14px;
    margin: 0px;
}
#downloadinfo p {
    background-color: var(--bg-dark);
    padding: 0.5rem 14px;
    margin: 0px;
}
#downloadinfo h3 + p {
    padding-top: 14px;
}
#downloadinfo a {
    display: block;
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
    color: white;
    padding: 14px;

    font-weight: bold;
}
@media (max-width: 960px) {
    #downloadinfo {
        margin-left: auto;
        margin-right: auto;
    }
}

#productlist {
    display: grid;
    grid-template-columns: repeat(auto-fill, 12rem);
    grid-gap: 1rem;
    justify-content: start;
}
#productlist .product {
    background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
    min-width: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#productlist h3 {
    flex-grow: 0;
    margin: 0px;
    font-size: 1rem;
    padding: 14px;
    text-align: center;
}
#productlist p {
    margin: 0px;
    padding: 0.5rem 14px;
    padding-bottom: 0.5rem;
}
#productlist .description {
    flex-grow: 2;
}
#productlist .details {
    flex-grow: 0;
    background-color: var(--bg-dark);

    display: flex;
    justify-content: space-between;
}
#productlist .type span {
    cursor: help;
}
#productlist .price {
    text-align: right;
}
#productlist .product:hover .details {
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
@media (max-width: 960px) {
    #productlist {
        justify-content: center;
    }
}

#companion-app figure {
    margin: 0px;
    display: flex;
    flex-direction: column;
    max-width: 480px;
}
#companion-app figcaption {
    margin: 0px;
    background-color: #262f2c;
    font-size: 1rem;
    font-weight: bold;
    padding: 14px;
}
#companion-app figure:hover figcaption {
    background-color: var(--active);
    background: linear-gradient(to right, var(--active-light), var(--active-dark));
}
@media (max-width: 960px) {
    #companion-app p {
        text-align: center;
    }
    #companion-app figure {
        margin-left: auto;
        margin-right: auto;
    }
    #companion-app figure img {
        max-width: 100%;
        height: auto;
    }
}
