body {
    background-image: url('/assets/Losange.svg');
    background-size: 2vw 4vh;

    animation: mist 15s linear infinite;

    /* animation: mist 15s linear, color-mist 2s ease-in;
    animation-iteration-count: infinite; */
}

@keyframes mist {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100vw 100vh;
  }
}

/* @keyframes color-mist {
  0% {
    background-image: url('/assets/Losange.svg');
  }
  50% {
    background-image: url('/assets/Losange.svg');
  }
  100% {
    background-image: url('/assets/Losange.svg');
  }
} */

.window-header {
    width: 100%;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 18px;
    display: flex;
    justify-content: start;
    align-items: center;
    padding: 5px;

    border: solid;
    border-width: 1px;
    border-color: transparent;
    border-bottom-color: var(--primary-border);
}

.window-body {
    background-color: var(--secondary-color);

    padding: 5px;
    width: 100%;

    min-height: fit-content;
}

.window {
    border: solid;
    border-width: 2px;
    border-bottom-color: var(--dark-border);
    border-right-color: var(--dark-border);
    border-left-color: var(--light-border);
    border-top-color: var(--light-border);

    height: fit-content;
    min-height: fit-content;
}

.window-pages {
    margin-top: auto;
    margin-left: auto;
    margin-bottom: auto;
    margin-right: auto;
    
    position: absolute; 


    transform: translate(200px, 200px);
}

.window-main-frame {
    margin-top: auto;
    margin-left: auto;
    margin-bottom: auto;
    margin-right: auto;
    
    position: absolute; 

    transform: translate(-100px, -100px);
}

.text {
    font-size: 15px;
    color: var(--text-color);
}

.container {
    padding: 10px;

    border: groove;
    border-width: 2px;
    border-bottom-color: 1px var(--dark-border);
    border-right-color: 1px var(--dark-border);
    border-left-color: 1px var(--light-border);
    border-top-color: 1px var(--light-border);

    position: relative;
}

.close-button {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='8' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0 0h2v1h1v1h2V1h1V0h2v1H7v1H6v1H5v1h1v1h1v1h1v1H6V6H5V5H3v1H2v1H0V6h1V5h1V4h1V3H2V2H1V1H0V0z' fill='%23000'/%3E%3C/svg%3E");
    background-position: center center;
    background-repeat: no-repeat;
    height: 100%;
    display: block;
    aspect-ratio : 1 / 1;

    border: solid;
    border-width: 2px;
    border-bottom-color: var(--dark-border);
    border-right-color: var(--dark-border);
    border-left-color: var(--light-border);
    border-top-color: var(--light-border);

    box-sizing: border-box;
    color: transparent;

    background-color: var(--secondary-color);
}

.close-button:active {
    border-top-color: var(--dark-border);
    border-left-color: var(--dark-border);
    border-right-color: var(--light-border);
    border-bottom-color: var(--light-border);
}

.container legend {
    width: fit-content;
    height: fit-content;
    position: absolute;

    background-blend-mode:normal;
    background-color: var(--secondary-color);

    font-weight: lighter;
    font-size: 14px;
    color: var(--text-color-muted);

    padding-left: 4px;
    padding-right: 4px;

    left: 10px;
    top: -10px;
}

.button {
    text-decoration: none;
    font-size: 15px;
    width:fit-content;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-style: none;

    border: solid;
    border-width: 2px;

    border-bottom-color: var(--dark-border);
    border-right-color: var(--dark-border);
    border-left-color: var(--light-border);
    border-top-color: var(--light-border);

    background-color: var(--secondary-color);
}

.button:active {
    border-top-color: var(--dark-border);
    border-left-color: var(--dark-border);
    border-right-color: var(--light-border);
    border-bottom-color: var(--light-border);
}

.button-inactive {
    cursor:not-allowed;
    color: var(--text-color-muted);

    background-color: var(--bg-color-btn-inactive);
    border-bottom-color: var(--dark-border-muted);
    border-right-color: var(--dark-border-muted);
    border-left-color: var(--light-border-muted);
    border-top-color: var(--light-border-muted);
}

.button-inactive:active {
    border-bottom-color: var(--dark-border-muted);
    border-right-color: var(--dark-border-muted);
    border-left-color: var(--light-border-muted);
    border-top-color: var(--light-border-muted);
}

.link {
    font-size: 15px;
    color: var(--link-color);
    text-decoration: none;

    width: fit-content;
}

.link:hover {
    text-decoration: underline;
    width: fit-content;
    color: var(--link-color-hover);
}

.link:active {
    
}

.progress-bar {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;

    border-radius: 0;

    box-shadow: inset -2px -2px var(--light-border), inset 2px 2px var(--dark-border);
    box-sizing: border-box;

    height: 32px;
    padding: 4px;
    position: relative;
}

.progress-bar-content {
    background-color: transparent;
    background-image: linear-gradient(90deg, var(--primary-color) 16px, transparent 0 2px);
    background-repeat: repeat;
    background-size: 18px 100%;

    width: 100%;
    height: 100%;

    display: block;
}

.progress-bar-content.effect {
    animation: load-effect 1s linear;
}

@keyframes load-effect {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}


@media screen and (841px >= width), screen and (744px >= height) {
    .window-pages {
        transform: translate(100px, 100px);
    }

    .window-main-frame {
        transform: translate(-50px, -50px);
    }
}

@media screen and (651px >= width) {
    .window-pages {
        transform: translate(50px, 50px);
    }

    .window-main-frame {
        transform: translate(-25px, -25px);
    }
}

@media screen and (600px >= width) {
    .app {
        overflow-y: scroll;
        justify-content: start;
    }
    .window-pages {
        transform: translate(0px, 0px);
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    .window-main-frame {
        transform: translate(0px, 0px);
        width: 100% !important;
        position: relative;
    }
}

@media screen and (600px >= width) {
    .app {
        overflow-y: scroll;
        justify-content: start;
    }
    .window-fill-x-auto {
        width: 100% !important;
        max-width: 100% !important;
        position: relative;
    }

    .window-fill-y-auto, .window-fill-y-auto .window-body {
        height: 100% !important;
        max-height: 100% !important;
        position: relative;
    }
}
