/* * {
  outline: 1px solid pink;
} */

:root {
    --systemfont:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
        Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --borderradius: 8px;
    --basecolor: rgb(38, 38, 38);
    --buttonfontcolor: rgb(38, 38, 38);
    --backgroundcolor: #fff;
    --accentcolor: orange;
    --softcolor: #f7f7f7;
    --visualstrokecolor: var(--basecolor);
    --visualstrokewidth: 3;
    --hovercolor: orange;
    --fontsize: 24px;
    --fonttextsize: 2em;
    --tooltip: block;
    --placeholdercolor: #eee;
    --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgb(38, 38, 38)' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    --icon-droparrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

::selection {
    color: var(--basecolor);
    background: rgba(255, 204, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
    :root {
        --basecolor: #cccccc;
        --backgroundcolor: rgb(38, 38, 38);
        --buttonfontcolor: #cccccc;
        --blockbackground: #333;
        --softcolor: #444;
        --placeholdercolor: #555;
        --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgb(204,204,204)' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
        --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
        --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
        --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
        --icon-droparrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    }
}

body.light-mode {
    --basecolor: rgb(38, 38, 38);
    --backgroundcolor: #fff;
    --softcolor: #f7f7f7;
    --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgb(38, 38, 38)' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    --icon-droparrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(38, 38, 38)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.dark-mode {
    --fontcolor: rgb(204, 204, 204);
    --basecolor: #ccc;
    --backgroundcolor: rgb(38, 38, 38);
    --softcolor: #444;
    --placeholdercolor: #555;
    --icon-checkbox: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-date: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='rgb(204,204,204)' class='bi bi-calendar' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E");
    --icon-time: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 6 12 12 16 14'%3E%3C/polyline%3E%3C/svg%3E");
    --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    --icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
    --icon-droparrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(204,204,204)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    position: fixed;
    overflow: hidden;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
    font-family: var(--systemfont);
    font-size: var(--fontsize);
    font-weight: normal;
    line-height: normal;
    color: var(--basecolor);
    text-align: left;
    background-color: var(--backgroundcolor);
    user-select: none;
}

a {
    color: var(--basecolor);
    line-height: normal;
    text-decoration: none;
    border-bottom: 1px solid var(--basecolor);
    outline: none;
    font-size: 1em;
}

a:hover {
    color: var(--hovercolor);
    border-color: var(--hovercolor);
}

p {
    font-size: 1em;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.8em;
}

h2 {
    font-size: 1.2em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1em;
    margin-bottom: 20px;
    font-weight: bold;
}

li:last-child {
    padding-bottom: 0;
}

main {
    position: absolute;
    height: 100%;
    width: 100%;
    overflow: hidden;
    overflow-y: scroll;
    transition: all 500ms;
}

main::-webkit-scrollbar {
    display: none;
    background-color: var(--scrollbarcolor);
    width: 5px;
}

main::-webkit-scrollbar-thumb {
    display: none;
    background: var(--scrollthumbcolor);
    border-radius: 1px;
}

#cover {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: var(--backgroundcolor);
    display: grid;
    place-items: center;
    z-index: 100;
    input {
        max-width: 400px;
        min-width: 100px;
        width: 80%;
    }
}

#coverpass {
    display: none;
}

.icon {
    position: relative;
    display: inline-block;
    height: auto;
    width: 100%;
    max-width: 1.6em;
    min-width: 22px;
    cursor: pointer;
}

/*.icon:hover {
    color: var(--hovercolor);
}*/

.icon:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/*.icon:hover {
    animation: fadeout 2s;
}*/

@keyframes fadeout {
    from {
        color: var(--hovercolor);
    }
    to {
        color: var(--basecolor);
    }
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    place-items: center;
    gap: 20px;
    width: 100%;
    z-index: 2;
    line-height: 0;
    border-bottom: 1px solid var(--softcolor);
    background-color: var(--backgroundcolor);
    background-color: var(--backgroundcolor);
}

#settingsBtnWrap {
    place-self: center start;
}

#direktfontsize {
    display: flex;
    gap: 30px;
}

#themeBtnWrap {
    place-self: center end;
}
.themeicon {
    cursor: pointer;
    display: none;
}
/*header .icon {
    width: 100% !important;
    max-width: 2em;
    min-width: 26px;
    cursor: pointer;
}*/

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    padding: 0 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--softcolor);
    background-color: var(--backgroundcolor);
    width: 100%;
    gap: 20px;
    z-index: 2;
    line-height: 0;
}
footer div {
    border: 0px solid green !important;
    height: auto;
}
/*footer .icon {
    width: 100% !important;
    max-width: 2em;
    min-width: 26px;
    cursor: pointer;
}*/

#start {
    display: none;
}

#extrafooter {
    position: fixed;
    bottom: 110px;
    right: 20px;
    left: 20px;
    height: auto;
    padding: 40px 20px;
    border: 1px dashed green;
    background-color: var(--backgroundcolor);
    border-radius: var(--borderradius);
    width: auto;
    z-index: 2;
    line-height: 0;
    cursor: pointer;
    display: none;
    text-align: center;
}

#saveicons {
    display: flex;
    gap: 40px;
    width: 90%;
    div {
        flex-grow: 1;
    }
}

#saveicons div {
    padding-bottom: 0px;
}

#openextrafooter {
    position: fixed;
    bottom: 110px;
    right: 20px;
    display: block;
    padding: 20px;
    line-height: 0;
    border: 1px dashed green;
    border-radius: var(--borderradius);
    cursor: pointer;
}

#openextrafooter {
    display: block;
}

#closeextrafooter {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.nolink {
    border: none;
    text-transform: none;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
}

.arealink {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: transparent !important;
    border: none;
    text-decoration: none;
    line-height: 0;
    border: 0px solid #ccc;
    z-index: 1;
}

#cookienote {
    position: fixed;
    bottom: 120px;
    right: 20px;
    border: 2px solid var(--basecolor);
    background-color: var(--backgroundcolor);
    border-radius: var(--borderradius);
    padding: 20px 40px;
    padding-right: 70px;
    display: none;
    z-index: 10;
}

#closecookie {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 60px;
    display: grid;
    place-items: center;
}

.custom-tooltip {
    position: relative;
    border: 0px solid #ccc;
}
.custom-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: var(--backgroundcolor);
    color: var(--basecolor);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    pointer-events: none;
    display: var(--tooltip);
}

.custom-tooltip-bottom {
    position: relative;
    border: 0px solid #ccc;
}
.custom-tooltip-bottom::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: var(--backgroundcolor);
    color: var(--basecolor);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    pointer-events: none;
    display: var(--tooltip);
}

.custom-tooltip-right {
    position: relative;
    border: 0px solid #ccc;
}
.custom-tooltip-right::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: var(--backgroundcolor);
    color: var(--basecolor);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    pointer-events: none;
    display: var(--tooltip);
}

.custom-tooltip-left {
    position: relative;
    border: 0px solid #ccc;
}
.custom-tooltip-left::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    right: 110%;
    transform: translateY(-50%);
    white-space: nowrap;
    background-color: var(--backgroundcolor);
    color: var(--basecolor);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7em;
    pointer-events: none;
    display: var(--tooltip);
}

/* end menu tip */

.actions {
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    z-index: 1;
    padding: 0;
    margin: 0;
    margin-bottom: 40px;
    line-height: 0;
    display: flex;
    gap: 40px;
}
.actions div {
    position: relative;
    width: auto;
    height: auto;
    line-height: 0;
    padding: 10px;
    /*margin-right: 10px;*/
    border: 2px solid var(--basecolor);
    border-radius: var(--borderradius);
    display: inline-block;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
}
.actions div:active {
    transform: scale(0.95);
    opacity: 0.8;
}
.actions svg {
    position: inherit;
    width: 100% !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
.softborder {
    border: 1px solid #ccc !important;
}
#thetext {
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    padding: 30px;
    width: auto;
    bottom: 70px;
    height: auto;
    min-height: 60%;
    font-weight: 300;
    font-size: var(--fonttextsize);
    z-index: 0;
    border: 0px solid rgb(38, 38, 38);
    background-color: var(--backgroundcolor);
    scrollbar-color: var(--basecolor) var(--backgroundcolor);
    resize: none;
}
#temptext {
    position: absolute;
    left: 10px;
    right: 10px;
    width: auto;
    top: 100px;
    height: auto;
    min-height: 110px;
    font-weight: 300;
    font-size: 2em;
    background-color: var(--backgroundcolor);
    display: none;
    z-index: 1;
    padding: 20px;
    border: 2px solid var(--hovercolor);
    border-radius: var(--borderradius);
    resize: none;
}
/*
::-webkit-resizer {
    display: none;
}*/

.pagewrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 90px;
    width: auto;
    bottom: 90px;
    height: auto;
    min-height: 60%;
    font-weight: 300;
    z-index: 0;
    padding: 20px;
    border: 0px solid var(--basecolor);
    scrollbar-color: var(--basecolor) var(--backgroundcolor);
    overflow-y: auto;
}

.formwrap {
    max-width: 800px;
    width: 100%;
}

.textblock {
    position: relative;
    display: block;
    margin-bottom: 10px;
    padding: 20px;
    padding-bottom: 25px;
    font-size: var(--fonttextsize);
    border: 2px solid var(--basecolor);
    border-radius: var(--borderradius);
    overflow: hidden;
}
.textblock:hover {
    cursor: pointer;
    border: 2px solid var(--hovercolor);
}

#startwrap {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 60px;
    display: grid;
    place-items: center;
}
#text {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 60%;
}

#tosettings {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

#settings {
    position: relative;
    left: 0;
    right: 0;
    top: 20px;
    width: auto;
    height: auto;
    z-index: 0;
    padding: 20px;
    border: 2px solid var(--basecolor);
}
.settingsblock {
    position: relative;
    display: block;
    margin-bottom: 10px;
    padding: 20px;
    border: 2px solid var(--basecolor);
    border-radius: var(--borderradius);
    .showsetting {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        font-size: 1em;
        display: grid;
        place-items: end;
        padding: 10px;
        opacity: 0.15;
    }
    .actions {
        margin-bottom: 20px;
        gap: 20px;
    }
}

.settingsmargin {
    padding-top: 30px;
}

.linkmenu {
    display: flex;
    flex-direction: column; /* Staplar länkarna vertikalt */
    gap: 10px;
    align-items: flex-start;
}

/* LOADER */
.loaderwrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    place-items: center;
}
.loader {
    position: relative;
    width: 30px;
    height: 30px;
    border: 1px solid var(--basecolor);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loadermini {
    width: 20px;
    height: 20px;
}

#noticewrap {
    position: absolute;
    top: 0px;
    right: 10px;
    height: 100%;
    border: 0px solid #ccc;
    z-index: 15 !important;
    place-items: center;
    display: none;
}
#notice {
    position: relative;
    border: 0px solid #ccc;
    background-color: #fc0;
    color: #333;
    display: grid;
    grid-template-columns: 1fr 30px;
    place-items: center;
    height: 60px;
    border-radius: 100px;
    padding-right: 20px;
    padding-left: 30px;
    gap: 10px;
    line-height: 0;
    font-size: 1.4em;
    z-index: 1;
}

#noticewrap svg {
    position: relative;
    width: 20px;
    height: auto;
    color: #333;
    z-index: 2;
    cursor: pointer;
}

.saveddate {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 12px;
    text-wrap: no-wrap;
    background-color: var(--backgroundcolor);
    line-height: normal;
    padding: 5px 15px;
    border-radius: 100px;
    opacity: 0.5;
    z-index: 2;
}

.hideelement {
    display: none;
}

#qrwrap {
    display: block;
}

#qrcodewrap {
    position: relative;
    border: 3px solid var(--basecolor);
    margin: 40px;
    margin-left: 0;
    padding: 30px;
    width: auto;
    height: auto;
    border-radius: var(--borderradius);
    display: inline-block;
    background-color: #fff;

    /* Skapar hål i mitten av varje sida */
    mask:
        linear-gradient(black, black) center / calc(100% - 6px) calc(100% - 6px)
            no-repeat,
        /* Mitten */ linear-gradient(black, black) top left / 40px 40px
            no-repeat,
        linear-gradient(black, black) top right / 40px 40px no-repeat,
        linear-gradient(black, black) bottom left / 40px 40px no-repeat,
        linear-gradient(black, black) bottom right / 40px 40px no-repeat;

    -webkit-mask:
        linear-gradient(black, black) center / calc(100% - 6px) calc(100% - 6px)
            no-repeat,
        linear-gradient(black, black) top left / 40px 40px no-repeat,
        linear-gradient(black, black) top right / 40px 40px no-repeat,
        linear-gradient(black, black) bottom left / 40px 40px no-repeat,
        linear-gradient(black, black) bottom right / 40px 40px no-repeat;
}

#scannerwrap {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    z-index: 100;
    background-color: var(--backgroundcolor);
    display: none;
    place-items: center;
}

#qrreader {
    position: relative;
    width: 340px;
    height: 340px;
    z-index: 1;
}

#qrstatus {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

#keydisplay {
    position: relative;
    margin-top: 10px;
    display: none;
    font-size: 0.6em;
}

#closescanner {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
}

#scansuccess {
    width: 100px;
    height: auto;
    fill: green;
    display: none;
}

#manualKeyOutput {
    display: none;
}

#manualKeyInput {
    display: block;
}

#importwrap {
    margin-top: 20px;
    display: none;
}

#voicelangwrap {
    display: block;
}

#homewrap {
    position: absolute;
    top: 90px;
    right: 0;
    left: 0;
    bottom: 0;
    border: 0px solid green;
    display: grid;
    place-items: center;
}

#homemenu {
    position: relative;
}

#reloadvoices {
    width: 20px;
    height: auto;
    vertical-align: middle;
}

#hardresetwrapper {
    position: relative;
    display: inline-block;
    background-color: var(--backgroundcolor);
}
.hardresetkeys {
    position: relative;
    display: flex;
    gap: 10px;
    div {
        position: relative;
        padding: 10px 20px;
        border: 2px solid var(--basecolor);
        border-radius: var(--borderradius);
    }
    .plus {
        padding: 10px 0px;
        border: none;
    }
    .title {
        position: absolute;
        left: 0;
        top: -35px;
        padding: 0;
        border: none;
    }
}

.errormessage {
    padding: 20px;
    border-left: 1px solid red;
    margin-bottom: 20px;
    display: none;
}

.speaking {
    fill: var(--accentcolor) !important;
}

.speakingblock {
    border-color: var(--accentcolor) !important;
}

/* FAQ */
details {
    border-bottom: 0px solid #ccc;
    padding: 10px 0;
    cursor: pointer;
}

summary {
    font-weight: bold;
    list-style: none;
}

summary::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="rgb(38,38,38)" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8"/></svg>');
    display: inline-block;
    vertical-align: middle;
    width: 25px;
    height: 25px;
}

details[open] summary::before {
    transform: rotate(90deg);
}

body.dark-mode summary::before {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="rgb(204,204,204)" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M4 8a.5.5 0 0 1 .5-.5h5.793L8.146 5.354a.5.5 0 1 1 .708-.708l3 3a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708-.708L10.293 8.5H4.5A.5.5 0 0 1 4 8"/></svg>');
}

summary::-webkit-details-marker {
    display: none;
}

details p {
    position: relative;
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 0px;
    cursor: default;
    padding-left: 25px;
}

details .figure {
    margin-top: 15px;
    margin-left: 25px;
}

details img {
    border-radius: var(--borderradius);
}
/* END FAQ */

.imgborder {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@media (hover: hover) {
    .saveddate:hover {
        font-size: 30px;
        opacity: 1;
        padding: 25px 35px;
        top: 0px;
        right: 0px;
    }
}

.fadein {
    animation: fadein 1s;
}

@keyframes fadein {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*
my-widget {
    display: contents;
}*/

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1000px) {
    .bookmark {
        width: 100%;
        height: 200px;
        aspect-ratio: none;
    }

    #extrafooter {
        right: 10px;
        bottom: 100px;
        padding-bottom: 60px;
    }

    #openextrafooter {
        right: 10px;
        bottom: 100px;
    }

    #saveicons {
        gap: 30px;
    }

    #cookienote {
        right: 10px;
        bottom: 100px;
    }
}

@media (max-width: 800px) {
}
