/*
    Overall CSS which applies to all files
 */

/* Keeps the page from Rubber Band Scrolling */
html, body {
    overscroll-behavior: none;
}

button {
    border: none;
    line-height: normal;
}

/* Needed so that the iframe extends to the whole screen */
.base-content {
    height: 100dvh;
    overflow: hidden;
}

/* Needed for the bottom-menu used in the mobile-view */
@media screen and (max-width: 1280px) {
    .portlet-content {
        padding-bottom: 10%;
    }
}

/* ################################################################################################################## */

/*
    Global variables
 */

:root {
    --oss-primary-color: RGB(70, 153, 193);
    --oss-secondary-color: RGB(70, 153, 193, 0.6);
    --oss-tertiary-color: RGB(70, 153, 193, 0.4);
    --oss-svg-color: invert(51%) sepia(95%) saturate(309%) hue-rotate(151deg) brightness(92%) contrast(79%);
}

/* ################################################################################################################## */

/*
    Sizes which can be used to in- or decrease the size of elements
 */

.smallest {
    transform: scale(0.5, 0.5);
    -ms-transform: scale(0.5, 0.5); /* IE 9 */
    -webkit-transform: scale(0.5, 0.5); /* Safari and Chrome */
    -o-transform: scale(0.5, 0.5); /* Opera */
    -moz-transform: scale(0.5, 0.5); /* Firefox */
}

.small {
    transform: scale(0.8, 0.8);
    -ms-transform: scale(0.8, 0.8); /* IE 9 */
    -webkit-transform: scale(0.8, 0.8); /* Safari and Chrome */
    -o-transform: scale(0.8, 0.8); /* Opera */
    -moz-transform: scale(0.8, 0.8); /* Firefox */
}

.big {
    transform: scale(1.2, 1.2);
    -ms-transform: scale(1.2, 1.2); /* IE 9 */
    -webkit-transform: scale(1.2, 1.2); /* Safari and Chrome */
    -o-transform: scale(1.2, 1.2); /* Opera */
    -moz-transform: scale(1.2, 1.2); /* Firefox */
}

.bigger {
    transform: scale(1.5, 1.5);
    -ms-transform: scale(1.5, 1.5); /* IE 9 */
    -webkit-transform: scale(1.5, 1.5); /* Safari and Chrome */
    -o-transform: scale(1.5, 1.5); /* Opera */
    -moz-transform: scale(1.5, 1.5); /* Firefox */
}

.biggest {
    transform: scale(2, 2);
    -ms-transform: scale(2, 2); /* IE 9 */
    -webkit-transform: scale(2, 2); /* Safari and Chrome */
    -o-transform: scale(2, 2); /* Opera */
    -moz-transform: scale(2, 2); /* Firefox */
}

/* ################################################################################################################## */

/*
    CSS used for the rotating loading-screen button
 */

.loader-div {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ################################################################################################################## */

/*
    CSS used for the slider-switch (off/on)
 */

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--oss-primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--oss-primary-color);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* ################################################################################################################## */

/*
    Drag-Drop-Menu
 */

.dropOption {
    height: 100%;
    width: 33.33%;
    bottom: 0;
    position: fixed;
    display: none;
    align-items: center;
    text-align: center;
    @media screen and (max-width: 1279px) {
        padding-bottom: calc(env(safe-area-inset-bottom) + 50px + 2%);
        height: 30%;
    }
}

.left {
    left: 0;
}

.center {
    left: 33.33%;
}

.right {
    left: 66.66%;
}

/* ################################################################################################################## */

/*
    Search-Bar
 */

.searchbar {
    all: unset;
    background-color: rgba(255, 255, 255, 0.64);
    color: black;
    border-bottom: 2px solid var(--oss-primary-color);
    border-radius: 2px;
    padding-left: 4px;
}

/* ################################################################################################################## */

/*
    Buttons
 */

.button_wbb {
    border: var(--oss-primary-color) 1px solid;
    border-radius: 5px;
    padding: 3px;
    background-color: white;
    color: black;
    cursor: pointer;
}

.button_wbb:hover {
    outline: var(--oss-primary-color) 2px solid;
}

/* ################################################################################################################## */

/*
    Dropdowns
 */

.dropdown_wbb {
    border: var(--oss-primary-color) 1px solid;
    border-radius: 5px;
    background-color: white;
    color: black;
    cursor: pointer;
}

.dropdown_wbb:hover {
    outline: var(--oss-primary-color) 2px solid;
}

/* ################################################################################################################## */

/*
    Switch depending on either mobile or desktop
 */

@media screen and (max-width: 1279px) {
    .desktop-only {
        display: none !important;
    }
}

@media screen and (min-width: 1280px) {
    .mobile-only {
        display: none !important;
    }
}

/* ################################################################################################################## */

/*
    Tutorial
 */

.start-tutorial-div {
    width: 100%;
    display: flex;
    justify-content: right;

    @media (min-width: 1280px) {
        margin-bottom: 3%;
    }
}

.start-tutorial-button {
    margin: 15px 15px 0 15px;
    filter: var(--oss-svg-color);
}

.tutorial-page {
    display: none;
}

.tutorial-image {
    width: 80%;
    border: 1px solid lightgray;
    border-radius: 5px;
}

.tutorial-text {
    margin-top: 20px;
    color: black;
    text-align: left;
}

.tutorial-arrow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7%;
    font-size: larger;
}

.tutorial-arrow-container img {
    height: 20px;
    filter: var(--oss-svg-color);
    cursor: pointer;
}

/* ################################################################################################################## */

/*
    Swipe-hint
 */

.swipe-hint-overlay {
    position: fixed;
    top: 0;
    min-height: 100vh;
    width: 20%;
    z-index: 1;
    display: flex;
    align-items: center;
    background-color: var(--oss-secondary-color);
}

/* ################################################################################################################## */

/*
    Legacy CSS
 */

.bordered {
    border-radius: 5px;
}

.button-class {
    color: black;
    background-color: rgb(255, 255, 255);
    border-radius: 5px;
    margin-bottom: 10px;
}

.default-margin {
    margin-top: 15px;
}

.box {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(5px);
}

.div-half-left {
    margin-top: 25px;
    height: 50%;
    width: 50%;
    margin-left: 40px;
    margin-right: 20px;
}

.answer-box {
    border-radius: 5px;
    margin: 1%;
}

.table-position {
    margin-bottom: 15px;
    margin-top: 15px;
}

.background-admin {
    display: flex;
    background-size: cover;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: fixed;
    overflow-y: scroll;
    color: black;
}

.page-headline {
    font-family: Times New Roman Bold, serif;
    color: var(--oss-primary-color);
    white-space: nowrap;
}

.noDistance {
    padding: 0;
    margin: 0;
}