/**
* More sensible default box-sizing:
* css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
*/
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/**
* reset of default margins and paddings.
*/
* {
    padding: 0;
    margin: 0;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

h1,h2,h3,h4,h5,p,img, span, div {
    caret-color: transparent;
}

/****************** GLOBAL ******************/
html, body {
    height: 100%;
}

body {
    font-family: var(--main-font);
    display: flex;
    flex-direction: column;
    background-color: var(--primary);
}

* {
    -webkit-tap-highlight-color: transparent;
}

.no-scroll {
    overflow: hidden;
}

.invisible {
    visibility: hidden;
}

.gone {
    display: none !important;
}

header ~ main {
    margin-top: var(--header-height);
}

a {
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

h1 {
    color : var(--secondary);
    font-weight: bold;
    text-align: center;
    font-size: var(--title-text-size);
}

.centered-flex-x {
    display: flex;
    align-items: center;
}

.centered-flex-y {
    display: flex;
    flex-direction: column;
    align-items: center;
}

main.main-container {
    padding: var(--main-container-padding) var( --main-container-padding-sides);
    flex: 1;
    background-color: var(--primary);
    color: var(--color-on-primary);
}

.inline-link, .post-content-container a {
    text-decoration: underline;
}

/****************** BUTTONS ******************/

.custom-btn {
    font-family: var(--main-font);
    background-color: var(--secondary);
    color:  var(--color-on-secondary);
    border-radius: var(--classic-btn-radius);
    border: 2px solid var(--color-on-secondary);
    padding: var(--classic-btn-padding);
    font-size: var(--classic-btn-font-size);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--classic-btn-transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--classic-btn-min-height)
}

.custom-btn[disabled] {
    background-color: var(--color-light-on-primary);
    cursor: default;
}

.custom-btn:not([disabled]):hover {
    background-color: var(--color-on-secondary);
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.custom-btn.loading {
    position: relative;
    cursor: wait;
}

/****************** SPINNER ******************/
.loader {
    color: inherit;
    font-size: 10px;
    display: inline-flex;
    width: var(--loader-height);
    height: var(--loader-height);
    border-radius: 50%;
    position: relative;
    text-indent: -9999em;
    animation: mulShdSpin 1.3s infinite linear;
    transform: translateZ(0);
}

@keyframes mulShdSpin {
    0%, 100% {
        box-shadow: 0 -1.125em 0 0.075em, 0.75em -0.75em 0 0, 1.125em 0 0 -0.375em, 
                    0.75em 0.75em 0 -0.375em, 0 1.125em 0 -0.375em, -0.75em 0.75em 0 -0.375em, 
                    -1.125em 0 0 -0.375em, -0.75em -0.75em 0 0;
    }
    12.5% {
        box-shadow: 0 -1.125em 0 0, 0.75em -0.75em 0 0.075em, 1.125em 0 0 0, 
                    0.75em 0.75em 0 -0.375em, 0 1.125em 0 -0.375em, -0.75em 0.75em 0 -0.375em, 
                    -1.125em 0 0 -0.375em, -0.75em -0.75em 0 -0.375em;
    }
    25% {
        box-shadow: 0 -1.125em 0 -0.1875em, 0.75em -0.75em 0 0, 1.125em 0 0 0.075em, 
                    0.75em 0.75em 0 0, 0 1.125em 0 -0.1875em, -0.75em 0.75em 0 -0.1875em, 
                    -1.125em 0 0 -0.1875em, -0.75em -0.75em 0 -0.1875em;
    }
    37.5% {
        box-shadow: 0 -1.125em 0 -0.375em, 0.75em -0.75em 0 -0.375em, 1.125em 0 0 0, 
                    0.75em 0.75em 0 0.075em, 0 1.125em 0 0, -0.75em 0.75em 0 -0.375em, 
                    -1.125em 0 0 -0.375em, -0.75em -0.75em 0 -0.375em;
    }
    50% {
        box-shadow: 0 -1.125em 0 -0.375em, 0.75em -0.75em 0 -0.375em, 1.125em 0 0 -0.375em, 
                    0.75em 0.75em 0 0, 0 1.125em 0 0.075em, -0.75em 0.75em 0 0, 
                    -1.125em 0 0 -0.375em, -0.75em -0.75em 0 -0.375em;
    }
    62.5% {
        box-shadow: 0 -1.125em 0 -0.375em, 0.75em -0.75em 0 -0.375em, 1.125em 0 0 -0.375em, 
                    0.75em 0.75em 0 -0.375em, 0 1.125em 0 0, -0.75em 0.75em 0 0.075em, 
                    -1.125em 0 0 0, -0.75em -0.75em 0 -0.375em;
    }
    75% {
        box-shadow: 0 -1.125em 0 -0.375em, 0.75em -0.75em 0 -0.375em, 1.125em 0 0 -0.375em, 
                    0.75em 0.75em 0 -0.375em, 0 1.125em 0 -0.375em, -0.75em 0.75em 0 0, 
                    -1.125em 0 0 0.075em, -0.75em -0.75em 0 0;
    }
    87.5% {
        box-shadow: 0 -1.125em 0 0, 0.75em -0.75em 0 -0.375em, 1.125em 0 0 -0.375em, 
                    0.75em 0.75em 0 -0.375em, 0 1.125em 0 -0.375em, -0.75em 0.75em 0 0, 
                    -1.125em 0 0 0.075em, -0.75em -0.75em 0 0;
    }
}

/****************** FORMS ******************/

.login-error-msg, #card-errors {
    font-weight: 100;
    color: var(--color-bonus-red);
}
.login-info-msg {
    color: var(--color-bonus-purple);
    font-weight: 100;
}

.form-container {
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--margin-s);
    margin: auto;
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: var(--margin-l);
    width: 100%;
}

.form-container h1 {
    margin-top: var(--margin-l);
    margin-bottom: var(--margin-l);
}

.form-container, .form-container .input-text {
    font-size: var(--form-text-size);
    caret-color: var(--color-light-on-primary);
}

.form-container input.input-text {
    width: 100%;
    background-color: transparent !important;
    border: none;
    outline: none;
    border-bottom: 1px solid var(--color-on-primary);
    padding: 5px 0;
    color: var(--color-on-primary);
    font-family: var(--main-font);
}

.form-container input.input-text.autofilled,
.form-container input.input-text:-webkit-autofill,
.form-container input.input-text:-webkit-autofill:hover,
.form-container input.input-text:-webkit-autofill:focus,
.form-container input.input-text:-webkit-autofill:active {
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    border-bottom: 1px solid var(--color-on-primary) !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: var(--color-on-primary) !important;
    transition: background-color 5000s ease-in-out 0s !important;
    font-family: inherit;
    font-size: inherit;
}

.form-contapurpleiner input.input-text:focus {
    border-bottom: 2px solid var(--color-light-on-primary);
}

.input-text input:focus ~ label, .textarea textarea:focus ~ label,
.input-text input:valid ~ label, .textarea textarea:valid ~ label{
    transform: translateY(-20px);
    font-size: 14px;
    color: #3498db;
}

.form-container .custom-btn {
    min-width: 40%;
    width: auto;
    margin: auto;
}

.main-container a:hover {
    color: var(--color-light-on-primary)
}

@media screen and (min-width: 992px) {
    .form-container {
        width: 40%;
    }
}

.custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border: 2px solid var(--color-on-primary);
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    margin-right: var(--margin-xs);
}

.custom-checkbox:checked {
    background-color: transparent;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

#reset-password-form .input-container {
    display: flex;
    flex-direction: row;
    gap: var(--margin-m);
    align-items: center;
}

#reset-password-form .input-container .input-text-container {
    flex: 1;
}

/****************** FORMS ******************/
/****************** OUTLINES ******************/
.input-text-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-text-container input {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    font-size: var(--form-text-size);
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.input-text-container input:focus ~ label,
.input-text-container input:valid ~ label {
    transform: translateY(-20px);
    font-size: var(--form-text-size-small);
    color: var(--color-light-on-primary)
}

.input-text-container label {
    position: absolute;
    pointer-events: none;
    bottom: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-text-container .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 100%;
}

.input-text-container .underline:before {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    background: var(--color-light-on-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.input-text-container input:focus ~ .underline:before,
.input-text-container input:valid ~ .underline:before {
    transform: scale(1);
}

.toggle-password {
    position: absolute;
    right: 10px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url('../assets/img/eye_show.png') no-repeat center center;
    background-size: contain;
}

.toggle-password.shown {
    background: url('../assets/img/eye_hide.png') no-repeat center center;
    background-size: contain;
}

iframe {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

iframe #player {
    width: 100%;
}

/****************** ANIMATION ******************/

@keyframes rotateMenu {
    0% {
        transform: rotateX(-90deg);
    }
    70% {
        transform: rotateX(20deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

.animated {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.animated.is-active {
    pointer-events: initial;
    animation: rotateMenu 400ms ease-in-out forwards;
    transform-origin: top center;
    opacity: 1;
    transition: opacity 0.4s ease;
    display: flex !important;
}