@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('theme-colors.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--lightThemeDefaultBackgroundColor);
}

body.dark-mode {
    background-color: var(--darkThemeDefaultBackgroundColor);
}

main {
    padding-bottom: 100px; /*padding bottom needed because of the fixed menu at the bottom of the screen*/
}

.card.shadow, .card .shadow {
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1) !important;
}

a {
    text-decoration: none;
}

p {
    margin-bottom: 5px;
    font-size: 14px;
}

.text-small {
    font-size: 12px;
}

.text-med {
    font-size: 16px;
}

.color-lightgray {
    color: var(--lightTextColor);
}

.color-accent {
    color: var(--accentTextColor);
}

.color-dark {
    color: var(--darkTextColor);
}

.btn-icon {
    vertical-align: text-bottom;
    margin-left: 5px;
}

.qr-image {
    max-width: 370px;
    width: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA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EgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.splash-background {
    width: auto;
    height: 100vh;
    background-image: url("/images/login-page-background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    text-align: center;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: calc(25vh) 0 auto 0.2rem;
}

.loading-progress circle {
    fill: none;
    stroke: white;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--accentColor);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    color: white;
    font-weight: bold;
    inset: calc(25vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

.card-body h5 {
    margin-bottom: 1rem;
}

.sportpark-item .card-footer .btn-outline-danger {
    margin-bottom: 2rem !important;
}

.sportpark-item .card-footer .btn-outline-danger:last-child {
    margin-bottom: 0 !important;
}

.card-body {
    padding: 1rem 1.5rem 1rem 1.5rem;
}

.res-item .card-body {
    padding: 1rem 1rem;
}

.card-footer {
    padding: .5rem 1.5rem;
}

.page .content h6:first-child {
    color: #36a9e1;
}

.profile-page-logged-in-user-text {
    color: var(--ExtralightTextColor);
    font-weight: 600;
    padding-bottom: 0.4rem;
    font-size: 1.25rem;
}

.profile-section .profile-page-fullname {
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.profile-section .text-danger {
    width: 100%;
    padding-bottom: 0.5rem;
}

.profile-section .flex-column {
    align-content: center;
    align-items: center;
}

.profile-section .btn {
    width: auto;
}

.btn-underline {
    text-decoration: underline;
    color: var(--lightTextColor);
    font-size: 0.9rem;
    display: inline-block;
    text-transform:uppercase;
}

.btn-outline-danger {
    padding: 1.4em 1.5em;
    width: 100%;
    box-shadow: 0 1px 1px #dc3545;
    white-space: nowrap;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.text-success {
    color: #3baa34!important;
}

.text-danger {
    color: red!important;
}

/* copied code from login.razor.css otherwise not visible */
button.btn.btn-lg.btn-outline-light.btn-block {
    padding: 1rem 2rem;
    font-weight: bold;
    text-transform: uppercase;
    border-width: 1px;
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.btn .icon-containe svgr {
    vertical-align: text-bottom;
}

input.form-control {
    height: 82px;
}

.input-field {
    position: relative;
}

.input-field input {
    border: none;
    border-bottom: 1.5px solid gray;
    padding: 5px;
    width: 100%;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    padding: 1rem 0.75rem 0 0 !important;
}

.input-field input.valid {
    border-bottom: 1.5px solid #26b050;
    outline: none !important;
}

.input-field input.invalid {
    border-bottom: 1.5px solid red;
    outline: none;
}

.input-field input:focus {
    outline: none;
}

.input-field label {
    top: -10px;
    font-size: 12px;
    color: #898989;
    left: -13px;
}

.input-field input:focus + label,
.input-field input:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: #898989;
    left: -13px;
}

.btn.icon-checkmark {
    padding: 1.4em 3em 1.4em 1.5em;
    background-image: url(/assets/icons/icon_checkmark_red.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: center right 1.5em;
}

.btn.icon-pencil {
    padding: 1.4em 3em 1.4em 1.5em;
    background-image: url(/assets/icons/icon_pencil_red.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: center right 1.5em;
}

.btn.icon-share {
    padding: 1.4em 3em 1.4em 1.5em;
    background-image: url(/assets/icons/icon-share-red.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: center right 8em;
}

.btn.icon-arrow-large-left {
    padding: 1.4em 3em 1.4em 1.5em;
    background-image: url(/assets/icons/arrow_large_left_black.svg);
    background-repeat: no-repeat;
    background-size: 14px 14px;
    background-position: center left 0em;
}

a.navbar-brand {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 0;
    background-image: url(/assets/brand/header-logo-small.svg);
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: center;
    width: 40px;
    height: 40px;
    display: inline-block;
}

.navbar-before-login {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-top: .5rem;
    padding-bottom: .5rem;
    height: 3.5rem;
    justify-content: center;
}

.navbar-before-login a {
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: 0;
    background-image: url(/assets/brand/header-logo-small.svg);
    background-repeat: no-repeat;
    background-size: 40px 40px;
    background-position: center;
    width: 40px;
    height: 40px;
}

input[type="date"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background: url(/assets/icons/icon_agenda_1_grey.svg) no-repeat;
    width: 0.75rem;
    height: 0.75rem;
    padding-right: 0.75em;
}

input[type="date"]::-webkit-date-and-time-value {
    background: url(/assets/icons/icon_agenda_1_grey.svg) no-repeat;
    background-position: right;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0px;
    text-align: center;
    width: 100%;
    margin-right: 4px;
}

#android-install-prompt {
    position: fixed;
    display: flex;
    justify-content: space-around !important;
    width: 100%;
    opacity: 0;
    animation: fadeInTop 1s ease-in both;
    align-items: center;
    padding: 0.6rem;
}

@keyframes fadeInTop {
    from {
        opacity: 0;
        transform: translate3d(0, -20%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.bold{
 font-weight: 700;
}

#ios-install-prompt {
    position: fixed;
    bottom: 0;
    opacity: 1;
    animation: fadeInBottom 1s ease-in both;
    text-align: center;
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translate3d(0, 20%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, -25%, 0);
    }
}

#ios-install-prompt::after {
    content: "";
    position: absolute;
    top: 98%;
    left: 45%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #fff;
}

.ios-share {
    vertical-align: sub;
}

.dark-gray {
    color: #666666;
}

.dark-mode .dark-gray {
    color: white;
}