/* ==================================================
   VARIABLES
   ================================================== */

:root {
    /* Typography */
    --font-family-base: "Roboto", sans-serif;

    /* Brand */
    --color-primary: #5FBFD6;
    --color-primary-hover: #379DB5;

    /* Status */
    --color-success: #198754;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #0dcaf0;

    /* Generic colors */
    --color-white: #fff;
    --color-gray-300: #f3f3f3;

    /* Additional semantic colors */
    --color-disabled: #ccc;
    --color-in-basket: #b9d65f;

    /* Layout */
    --navbar-height: 4.5rem;
    --main-margin-mobile: 10px;

    /* Hero */
    --hero-height: 40vh;
    --hero-height-no-image: 20vh;

    /* main Overlap */
    --overlap-mobile: -80px;
    --overlap-tablet: -100px;
    --overlap-desktop: -120px;

    /* Radius */
    --radius-md: 10px;

    /* Basket */
    --basket-width: 350px;
    --basket-width-lg: 400px;
    --basket-marker-size: 10px;
    --basket-separator-size: 10px;

    /* Calendar */
    --calendar-highlight: rgba(95, 191, 214, 0.1);
}

/* ==================================================
   BASE
   ================================================== */

body {
    font-family: var(--font-family-base);
    min-height: 100vh;
    padding-top: var(--navbar-height);
}

/* ==================================================
   TYPOGRAPHY
   ================================================== */

h1 {
    font-size: clamp(0.9rem, 1vw + 2rem, 2.625rem);
    font-weight: 700;
    text-transform: uppercase;
}

/* ==================================================
   NAVBAR
   ================================================== */

.navbar {
    background-color: var(--color-white);
    height: var(--navbar-height);
}

.navbar-brand img {
    max-height: 48px;
}

/* ==================================================
   SHOPPING BASKET
   ================================================== */

.shopping-basket {
    width: var(--basket-width);
    font-size: 14px;
    margin-top: 10px;
}

.shopping-basket h3 {
    font-size: 16px;
    font-weight: 700;
}



.shopping-basket .article-header {
    padding-bottom: 0;
    font-weight: 600;
    font-size: 12px;
}

.shopping-basket .item-date {
    font-size: 11px;
    padding-top: 0;
}

.shopping-basket .event-title {
    padding-bottom: 3px;
}

.shopping-basket .event-title span {
    display: block;
    font-size: 11px;
    font-weight: normal;
    padding: 0;
}

#basketMarker {
    font-size: 2em;
}

.basket-table tbody tr.event-title-tr {
    border-top: var(--basket-separator-size) solid var(--color-white);
}

.basket-table tbody .event-title-tr:first-of-type {
    border-top: 0;
}

.basket-table .grand-total {
    border-top: var(--basket-separator-size) solid var(--color-white);
    background-color: var(--color-white);
}

.fa-shopping-basket .marker {
    display: none;
    position: relative;
}

.fa-shopping-basket.has-items .marker {
    display: block;
    position: absolute;
    top: 28px;
    left: 42px;
    width: var(--basket-marker-size);
    height: var(--basket-marker-size);
    background-color: red;
    border-radius: 50%;
}

a.deListSuccess {
    color: var(--color-success);
}

a.deListWarn {
    color: var(--color-warning);
}

a.deListDanger {
    color: var(--color-danger);
}

/* ==================================================
   LAYOUT
   ================================================== */

.hero-header {
    display: flex;
    align-items: center;
}

/* When image exists */
.hero-with-image {
    min-height: var(--hero-height);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-with-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-with-image .container {
    position: relative;
    z-index: 1;
    transform: translateY(calc(var(--overlap-mobile) / 2));
}

/* No image */
.hero-no-image {
    min-height: var(--hero-height-no-image);
}

.overlap-box {
    margin-top: var(--overlap-mobile);
    z-index: 10;
}


/* Tablets */
@media (min-width: 768px) {
    .hero-with-image .container {
        transform: translateY(calc(var(--overlap-tablet) / 2));
    }

    .overlap-box {
        margin-top: var(--overlap-tablet);
    }
}

/* Desktop */
@media (min-width: 992px) {
    .hero-with-image .container {
        transform: translateY(calc(var(--overlap-desktop) / 2));
    }

    .overlap-box {
        margin-top: var(--overlap-desktop);
    }
}


/* ==================================================
   EVENT CARDS
   ================================================== */

.card-img-top {
    height: 220px;
    object-fit: cover;
}

/* ==================================================
   DATE PICKER
   ================================================== */

.datepicker {
    position: relative;
}

.datepicker-trigger {
    font: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.datepicker-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 2rem;
    height: 2rem;

    border-radius: 50%;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-prev-hover {
    left: 2px;
    top: 2px;
}

.ui-datepicker .ui-datepicker-next,
.ui-datepicker .ui-datepicker-next-hover {
    right: 2px;
    top: 2px;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover,
.ui-datepicker .ui-datepicker-prev-hover,
.ui-datepicker .ui-datepicker-next-hover {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    cursor: pointer;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none;
}

.ui-datepicker .ui-datepicker-prev::before,
.ui-datepicker .ui-datepicker-next::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.ui-datepicker .ui-datepicker-prev::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
}

.ui-datepicker .ui-datepicker-next::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

/* ==================================================
   ÖVRIGT
   ================================================== */

#expCodeInput{
    cursor: pointer; 
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (min-width: 576px) {

    .shopping-basket {
        width: var(--basket-width-lg);
    }
}

@media (max-width: 576px) {

    .main {
        margin: 0 var(--main-margin-mobile);
    }

    h1 {
        font-size: clamp(0.9rem, 1vw + 1.5rem, 2.625rem);
    }

    #evTopHeadline {
        display: none;
    }

    .fc-dayGridMonth-button,
    .fc-timeGridWeek-button,
    .fc-timeGridDay-button,
    .fc-daygrid-week-number {
        display: none;
    }
}


