@font-face {
    font-family: 'Aktiv-Grotesk';
    src: url('./fonts/aktivgrotesk-light.woff2') format('woff2'),url('./fonts/aktivgrotesk-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Aktiv-Grotesk';
    src: url('./fonts/aktivgrotesk-regular.woff2') format('woff2'),url('./fonts/aktivgrotesk-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap
}

@font-face {
    font-family: 'Aktiv-Grotesk';
    src: url('./fonts/aktivgrotesk-bold.woff2') format('woff2'),url('./fonts/aktivgrotesk-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap
}


/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #4A4A4A;
    font-size: 1em;
    line-height: 1.4;
}

/*
   * Remove text-shadow in selection highlight:
   * https://twitter.com/miketaylr/status/12228805301
   *
   * Vendor-prefixed and regular ::selection selectors cannot be combined:
   * https://stackoverflow.com/a/16982510/7133471
   *
   * Customize the background color to match your design.
   */

::-moz-selection {
    background: #7d7d7d;
    text-shadow: none;
}

::selection {
    background: #7d7d7d;
    text-shadow: none;
}

/*
   * A better looking default horizontal rule
   */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
   * Remove the gap between audio, canvas, iframes,
   * images, videos and the bottom of their containers:
   * https://github.com/h5bp/html5-boilerplate/issues/440
   */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
   * Remove default fieldset styles.
   */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
   * Allow only vertical resizing of textareas.
   */

textarea {
    resize: vertical;
}

/* ==========================================================================
     Author's custom styles
     ========================================================================== */

/* ==========================================================================
     Helper classes
     ========================================================================== */

/*
   * Hide visually and from screen readers
   */

.hidden,
[hidden] {
    display: none !important;
}

/*
   * Hide only visually, but have it available for screen readers:
   * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
   *
   * 1. For long content, line feeds are not interpreted as spaces and small width
   *    causes content to wrap 1 word per line:
   *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
   */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
   * Extends the .sr-only class to allow the element
   * to be focusable when navigated to via the keyboard:
   * https://www.drupal.org/node/897638
   */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
   * Hide visually and from screen readers, but maintain layout
   */

.invisible {
    visibility: hidden;
}

/*
   * Clearfix: contain floats
   *
   * For modern browsers
   * 1. The space content is one way to avoid an Opera bug when the
   *    `contenteditable` attribute is included anywhere else in the document.
   *    Otherwise it causes space to appear at the top and bottom of elements
   *    that receive the `clearfix` class.
   * 2. The use of `table` rather than `block` is only necessary if using
   *    `:before` to contain the top-margins of child elements.
   */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
     EXAMPLE Media Queries for Responsive Design.
     These examples override the primary ('mobile first') styles.
     Modify as content requires.
     ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
     Print styles.
     Inlined to avoid the additional HTTP request:
     https://www.phpied.com/delay-loading-your-print-css/
     ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #7d7d7d;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
   * What follows is the result of much research on cross-browser styling.
   * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
   * Kroc Camen, and the H5BP dev community and team.
   */

/* ==========================================================================
     Base styles: opinionated defaults
     ========================================================================== */

html {
    color: #4A4A4A;
    font-size: 1em;
    line-height: 1.4;
}

/*
     * Remove text-shadow in selection highlight:
     * https://twitter.com/miketaylr/status/12228805301
     *
     * Vendor-prefixed and regular ::selection selectors cannot be combined:
     * https://stackoverflow.com/a/16982510/7133471
     *
     * Customize the background color to match your design.
     */

::-moz-selection {
    background: #7d7d7d;
    text-shadow: none;
}

::selection {
    background: #7d7d7d;
    text-shadow: none;
}

/*
     * A better looking default horizontal rule
     */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
     * Remove the gap between audio, canvas, iframes,
     * images, videos and the bottom of their containers:
     * https://github.com/h5bp/html5-boilerplate/issues/440
     */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
     * Remove default fieldset styles.
     */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
     * Allow only vertical resizing of textareas.
     */

textarea {
    resize: vertical;
}

/* ==========================================================================
       Author's custom styles
       ========================================================================== */

/* ==========================================================================
       Helper classes
       ========================================================================== */

/*
     * Hide visually and from screen readers
     */

.hidden,
[hidden] {
    display: none !important;
}

/*
     * Hide only visually, but have it available for screen readers:
     * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
     *
     * 1. For long content, line feeds are not interpreted as spaces and small width
     *    causes content to wrap 1 word per line:
     *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
     */

.sr-only {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
    /* 1 */
}

/*
     * Extends the .sr-only class to allow the element
     * to be focusable when navigated to via the keyboard:
     * https://www.drupal.org/node/897638
     */

.sr-only.focusable:active,
.sr-only.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    white-space: inherit;
    width: auto;
}

/*
     * Hide visually and from screen readers, but maintain layout
     */

.invisible {
    visibility: hidden;
}

/*
     * Clearfix: contain floats
     *
     * For modern browsers
     * 1. The space content is one way to avoid an Opera bug when the
     *    `contenteditable` attribute is included anywhere else in the document.
     *    Otherwise it causes space to appear at the top and bottom of elements
     *    that receive the `clearfix` class.
     * 2. The use of `table` rather than `block` is only necessary if using
     *    `:before` to contain the top-margins of child elements.
     */

.clearfix::before,
.clearfix::after {
    content: " ";
    display: table;
}

.clearfix::after {
    clear: both;
}

/* ==========================================================================
       EXAMPLE Media Queries for Responsive Design.
       These examples override the primary ('mobile first') styles.
       Modify as content requires.
       ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
       Print styles.
       Inlined to avoid the additional HTTP request:
       https://www.phpied.com/delay-loading-your-print-css/
       ========================================================================== */

@media print {

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
       * Don't show links that are fragment identifiers,
       * or use the `javascript:` pseudo protocol
       */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #7d7d7d;
        page-break-inside: avoid;
    }

    /*
       * Printing Tables:
       * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
       */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}



body {
    overflow: hidden;
    margin: 0;
    background-color: #f8f8fa;
    color: #464855;
    font-family: 'Aktiv-Grotesk',sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1.42857143;
    font-size: 1rem;
}

#outercontainer {
    background-color: #f8f8fa;
}
#container::backdrop {
    background-color: #f8f8fa;
}

#controls {
    height: 92dvh;
    overflow-y: auto;
    padding: 1em 0.7em 4em 25px;
}

#model {
    height: 92dvh;
}


/* https://getcssscan.com/css-checkboxes-examples  */

.checkbox-wrapper {
    margin-top: 0.7em;
}

.checkbox-wrapper .tgl {
    display: none;
}

.checkbox-wrapper .tgl,
.checkbox-wrapper .tgl:after,
.checkbox-wrapper .tgl:before,
.checkbox-wrapper .tgl *,
.checkbox-wrapper .tgl *:after,
.checkbox-wrapper .tgl *:before,
.checkbox-wrapper .tgl+.tgl-btn {
    box-sizing: border-box;
}

.checkbox-wrapper .tgl::-moz-selection,
.checkbox-wrapper .tgl:after::-moz-selection,
.checkbox-wrapper .tgl:before::-moz-selection,
.checkbox-wrapper .tgl *::-moz-selection,
.checkbox-wrapper .tgl *:after::-moz-selection,
.checkbox-wrapper .tgl *:before::-moz-selection,
.checkbox-wrapper .tgl+.tgl-btn::-moz-selection,
.checkbox-wrapper .tgl::selection,
.checkbox-wrapper .tgl:after::selection,
.checkbox-wrapper .tgl:before::selection,
.checkbox-wrapper .tgl *::selection,
.checkbox-wrapper .tgl *:after::selection,
.checkbox-wrapper .tgl *:before::selection,
.checkbox-wrapper .tgl+.tgl-btn::selection {
    background: none;
}

.checkbox-wrapper .tgl+.tgl-btn {
    outline: 0;
    display: inline-block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-wrapper .tgl+.tgl-btn:after,
.checkbox-wrapper .tgl+.tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}

.checkbox-wrapper .tgl+.tgl-btn:after {
    left: 0;
}

.checkbox-wrapper .tgl+.tgl-btn:before {
    display: none;
}

.checkbox-wrapper .tgl:checked+.tgl-btn:after {
    left: 50%;
}

.checkbox-wrapper .tgl-ios+.tgl-btn {
    background: #fbfbfb;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
    border: 1px solid #e8eae9;
}

.checkbox-wrapper .tgl-ios+.tgl-btn:after {
    border-radius: 2em;
    background: #fbfbfb;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), padding 0.3s ease, margin 0.3s ease;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 4px 0 rgba(0, 0, 0, 0.08);
}

.checkbox-wrapper .tgl-ios+.tgl-btn:hover:after {
    will-change: padding;
}

.checkbox-wrapper .tgl-ios+.tgl-btn:active {
    box-shadow: inset 0 0 0 2em #e8eae9;
}

.checkbox-wrapper .tgl-ios+.tgl-btn:active:after {
    padding-right: 0.8em;
}

.checkbox-wrapper .tgl-ios:checked+.tgl-btn {
    background: #86d993;
}

.checkbox-wrapper .tgl-ios:checked+.tgl-btn:active {
    box-shadow: none;
}

.checkbox-wrapper .tgl-ios:checked+.tgl-btn:active:after {
    margin-left: -0.8em;
}

.checkbox-wrapper span {
    display: inline-block;
    margin-left: 1em;
    line-height: 2em;
    vertical-align: middle;
}

.checkbox-wrapper span {
    margin-bottom: 21px;
}

.toggles-wrapper {
    margin-top: 0.7em;
}

.toggles-wrapper select {
    display: inline-block;
    line-height: 2em;
    vertical-align: middle;
}


#selection pre {
    margin: 0 0 1em;
    padding: 0;
    font-size: 0.8em;
}

#selection h2 {
    margin: 3em 0 0.7em;
    padding: 0;
}

h2 {
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: #2d2d50;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 400;
    line-height: 1.42857143;
    font-size: 1rem;
}

#version {
    margin-bottom: 10px;
}

.patron_name {
    text-decoration: none;
}

#controls em {
    font-size: 0.8em;
}

.patron_name span, .checkbox-wrapper span {
    font-weight: 700;
    text-transform: uppercase;
    color: #2d2d50;
    text-decoration: none;
    margin-left: 14px;
}

.varianti {
    border-bottom: 1px solid #e2e2e2;
    padding: 1em 0;
    margin: 1em 0;
}

.variante p {
    display: inline-block;
    padding: 0;
    margin: 0;
    font-size: 0.8em;
    margin-left: 14px;
}

.variante .btn {
    display: inline;
    margin: 0 0 0 7px;
    font-size: 0.8em;
    text-decoration: none;
    float: right;
    vertical-align: middle;
    text-transform: uppercase;
    padding: 2px 10px;
    color: #464855;
    border: 1px solid #464855;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.variante .selected {
    color: #5ab3c9;
    border: 1px solid #5ab3c9;
}
.variante {
    clear: both;
    margin: 5px 0;    
}

.variante .btns {
    display: inline;
    float: right;
    margin-top: 14px;
}

#fullscreen_btn, #fullscreen_exit_btn {
    display: block;
    position: absolute;
    bottom: 1em;
    right: 1em;
    padding: 0.5em;
    color: #464855;
    border: 1px solid #464855;
    border-radius: 4px;
    background-color: #f8f8fa;
}

#fullscreen_btn img, #fullscreen_exit_btn img {
    width: 30px;
    height: 30px;
}

.frame {
    background-image: url('../elements/m_apollo.png');
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: contain;
}


.module img {
    width: 100%;
}

.module {
    padding-left: 0;
    padding-right: 0;
}

#modules {
    margin-left: 0;
    margin-right: 0;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background-size: 30px 60px;
    text-indent: .01em;
    text-overflow: '';
    background: #fff url(../img/select-bg.svg) no-repeat 100% 45%;
    border: 1px solid #c2c2c2;
    border-radius: 1px;
    font-family: 'Aktiv-Grotesk', sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    padding: 0 9px;
    vertical-align: baseline;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
}

.btn {
    background-color: #fff;
    border: 1px solid #c2c2c2;
    padding: 10px 30px;
    /*min-width: 150px;*/
    text-transform: uppercase;
    letter-spacing: 0;
    display: table;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    font-family: 'Aktiv-Grotesk', sans-serif;
    font-weight: 600;
    margin: 0;
    padding: 7px;
    font-size: 0.9rem;
    line-height: 1.5rem;
    box-sizing: border-box;
    vertical-align: middle;
    color: #2d2d50;
    text-decoration: none;
    min-height: 40px;
}

.del {
    width: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.module .first-del{
    display: none;
}

#module1 .del {
    display: none;
}

#module1 .first-del {
    cursor: default;
    display: block;
    background-color: transparent;
    color: transparent;
    border: transparent;
    width: 100%;
    min-height: 40px;
    clear:left;
}

#mailto, #dwnld {
    padding-left: 2rem;
    padding-right: 2rem;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
}

#selection pre {
    white-space: pre-wrap;       /* css-3 */
    white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
    white-space: -pre-wrap;      /* Opera 4-6 */
    white-space: -o-pre-wrap;    /* Opera 7 */
    word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

#screenshot-selection {
    width: 100%;
    color: #3a3a3a;
    display: block;
    clear: both;
    position: relative;
    top: 2em;
    left: 2em;
    z-index: 2000;
    margin:0;
}
