@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(-360deg);
    }
  }

body {
    background-color: #403382;
    background-image: linear-gradient(52deg, #403382 50%, #473F91 50%);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;

    background-attachment: fixed;

    font-family: "museo-sans", sans-serif;
    font-weight: 500;
    font-style: normal;

    color: #ffffff;
}

h1 {
    font-family: "museo", sans-serif;
    font-weight: 900;
    font-size: 5vh;
    margin-top: 0;
    margin-bottom: 0;
    line-height: 6vh;
    text-align: center;
}

.folder, .subfolder {
    margin: 2em 1em 1em 1em;
    background: #FDD341;
    width: 12em;
    height: 8em;
    border-radius: 0.8em 0.8em 1.2em 1.2em;
    display: inline-block;
    position: relative;
    border-color: #382C74;
    border-width: 0.15em 0.2em 0.3em 0.2em;
    border-style: solid;
}

.subfolder {
    cursor: pointer;
}

.title {
    background: #FDD341;
    color: #382C74;
    top: -1.7em;
    left: 0.5em;
    line-height: 1.6em;
    position: absolute;
    padding: 0 0.9em;
    border-radius: 0.9em 0.9em 0 0;
    font-weight: bold;
    max-width: 8em;
    border-color: #382C74;
    border-width: 0.15em 0.2em 0em 0.2em;
    border-style: solid;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

input.title {
    border: 0;
    margin: 0;
    font-size: 1em;
    border-radius: 0.6em;
    font-weight: normal;
    font-style: normal;
    max-width: 6.2em;
    top: -1.6em;
    left: 0.8em;
    font-family: "museo-sans", sans-serif;
    padding: 0 0.4em;
}

div.drop-region {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    bottom: 0;
    border-radius: 0.5em;

    cursor: pointer;
}

.spinner {
    width: 2em;
    height: 2em;
    position: absolute;
    margin: -1em 0 0 -1em;
    top: 50%;
    left: 50%;
    display: none;
    font-size: 3em;
}

.progress {
    font-size: 0.8em;
}

.too-busy-to-drop .spinner {
    display: block;
}

div.drop-region.ready-for-drop {
    border: 10px solid #E83590;
}

div.drop-region.ready-for-drop.too-busy-to-drop {
    border: 10px solid red;
}

.g_id_signin {
    position: absolute;
    top: 0.6em;
    right: 0.6em;
    z-index: 1;
}

.signed-in .g_id_signin {
    display: none;
}

.asset-scroller {
    width: 100%;
    position: absolute;
    top: 8vh;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
    text-align: center;
    border-top: 0.2em solid #382C74;
}

.asset-container {
    margin: 2em;
    font-size: 1.7em;
}

.asset-container > img {
    background: url(assets/image/2c496e5ac3073062bede9cf5ff8e8283.png);
    max-width: 90%;
    border-width: 0.1em 0.15em 0.2em 0.15em;
    border-style: solid;
    border-color: #382C74;
    vertical-align: middle;
}

.asset-container > audio {
    width: 80%;
    height: 1.5em;
}

.type-spine iframe, .type-page iframe {
    display: inline-block;
    aspect-ratio: 1.6;
    width: 80%;
    background: url(assets/image/2c496e5ac3073062bede9cf5ff8e8283.png);
    left: 10%;
    border-width: 0.1em 0.15em 0.2em 0.15em;
    border-radius: 0.4em;
    border-style: solid;
    border-color: #382C74;
    vertical-align: middle;
}

div.focus-on-this-iframe {
    position: fixed;
    z-index: 1;
    top: 8vh;
    left: 0;
    bottom: 0;
    right: 0;
    background: #473F91;
    margin: 0;
}

div.focus-on-this-iframe iframe {
    width: calc(100% - 3em);
    left: 0;
    box-sizing: border-box;
    height: calc(100% - 3px);
    min-height: 100px;
    font-size: 0.6em;
}

.popout {display: inline;}
.popin {display: none;}
.focus-on-this-iframe .popout {display: none;}
.focus-on-this-iframe .popin {display: inline;}

.asset-title {
    border-width: 0.05em 0.1em 0.15em 0.1em;
    border-style: solid;
    border-color: #382C74;
    border-radius: 0.7em 1em 0.7em 0.9em;
    background: #FDD341;
    padding: 0 1em;
    display: inline-block;
    margin: 0.2em;
    color: #382C74;
}

.audio-visual {
    display: block;
    width: 80%;
    height: 2em;
    margin: auto;
}

dl {
    display: grid;
    grid-template-columns: max-content auto;
    font-size: 0.8em;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0.2em;
    margin: 0.1em auto;
    width: 80%;
}
  
dt {
    grid-column-start: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 0 0.5em;
    border-radius: 0.2em;
    margin: 0.1em;
    text-align: right;
}

dd {
    grid-column-start: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0;
    text-align: left;
    padding: 0 0.5em;
}

.public-link {
    padding: 1em 3em;
    margin: 0.5em;
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: #382C74;
    border-radius: 2em 0.6em;
}

.public-link:hover {
    color: #382C74;
    background-color: #FDD341;
}

#springroll-settings {
    display: none;
}

.game-meta {
    display: inline-block;
    vertical-align: top;
}

#general-settings, #springroll-settings.page-has-game {
    display: inline;
}

.folder-button-bar {
    bottom: 0.1em;
    left: 0.1em;
    position: absolute;
    z-index: 1;
}

.game-meta button, .button-queue {
    padding: 0.4em;
    margin: 0.1em;
    min-width: 3em;
    border: none;
    height: 2em;
    background: #864093;
    border-bottom: 2px solid #382C74;
    color: #ffffff;
    user-select: none;
}

.game-meta button.muted {
    background: #E8358F;
}

.game-meta button.unmuted {
    background: #7EC853;
}

.game-meta button.disabled, .button-queue.busy {
    background: #66C8D5;
    color: #94DBE0;
    pointer-events: none;
}

.game-meta button:active, .button-queue:active {
    border-top: 1px solid #F7B2C2;
    border-bottom: 1px solid #382C74;
}

.delete-button {
    background: #E83590;
}

button {
    line-height: 1.2em;
    font-weight: bold;
    font-family: monospace;
}

#general-settings > button, #springroll-settings.page-has-game > button {
    display: block;
}

#general-settings > button:first-of-type, #springroll-settings.page-has-game > button:first-of-type {
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
}

#general-settings > button:last-of-type, #springroll-settings.page-has-game > button:last-of-type {
    border-bottom-left-radius: 1em;
    border-bottom-right-radius: 1em;
}

.button-queue:first-of-type {
    border-top-left-radius: 1em;
    border-bottom-left-radius: 1em;
}

.button-queue:last-of-type {
    border-top-right-radius: 1em;
    border-bottom-right-radius: 1em;
}

#springroll-settings-panel label:has(input[style="display: none;"]) {
    display: none;
}

#springroll-settings-panel h3 {
    display: none;
    text-align: center;
    border-bottom: 1px solid white;
    width: 20em;
    margin: 1.5em auto 1em auto;
}

#springroll-settings-panel h3:has(~ label > input[style=""], ~ label > button[style=""], ~ label > input:not([style]), ~ label > button:not([style])) {
    display: block;
}

#springroll-settings-panel {
    display: none;
    position: fixed;
    top: 10%;
    width: 30em;
    margin-left: -15em;
    left: 50%;
    max-height: 80%;
    overflow: auto;
    background: #66C8D5;
    border-radius: 1em;
    color: white;
    font-size: 15px;
    line-height: 1.7em;
    border: 0.2em solid white;
    box-shadow: 0 0.6em 0.2em rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-family: monospace;
    padding: 2em 0 1em 0;
}

#springroll-settings-panel h2 {
    margin: 0 0 1em 0;
    font-size: 1.5em;
}

#springroll-settings-panel.panel-up {
    display: block;
}

#springroll-settings-panel #springroll-settings-close {
    position: absolute;
    top: 0.2em;
    right: 0.2em;
    width: 2em;
    border-radius: 1em;
    background: #E8358F;
    margin: 0;
}

#springroll-settings-panel label {
    display: block;
    text-align: left;
    width: 20em;
    line-height: 1.7em;
    margin: 0 auto 1em auto;
}

#springroll-settings-panel input, #springroll-settings-panel button {
    width: 7em;
    position: relative;
    float: right;
    margin: 0 1em;
    height: 1.7em;
}

#springroll-settings-panel button {
    width: 3em;
    margin: 0 6.5em 0 0;
    border-radius: 1em;
    line-height: 0.8em;
}

#springroll-settings-panel input[type="radio"] {
    width: 1.7em;
}
.animation {
    position: relative;
}

.frame {
    overflow: hidden;
    position: absolute;
}

.frame img {
    position: absolute;
}
