/* -------------------------------------------------------------------------- */
/*                             GOOGLE FONT IMPORT                             */
/* -------------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

/* -------------------------------------------------------------------------- */
/*                                  VARIABLES                                 */
/* -------------------------------------------------------------------------- */
:root {

    /* --------------------------------- COLORS --------------------------------- */
    --color-primary: #005a9c;
    --color-secondary: #f3e6da;
    --color-white: #fff;
    --color-gray: #7a7a79;
    --color-dark: #000;

    /* --------------------------------- FONTS --------------------------------- */
    --font-heading-family: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
    --font-paragraf-family: 'Figtree', 'Helvetica Neue', Helvetica, Arial, sans-serif;


    --font-heading-size: 4.8rem;
    --font-heading-weight: 700;
    --font-heading-line-height: 5.2rem;

    --font-paragraf-size: 1.7rem;
    --font-paragraf-weight: 400;
    --font-paragraf-line-height: 3.2rem;

    /* ------------------------------- TRANSITION ------------------------------- */
    --transition: all 0.3s ease-in-out;
}

/* -------------------------------------------------------------------------- */
/*                               RESET SETTINGS                               */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: var(--font-paragraf-family);
    background-color: var(--color-secondary);
}

h1 {
    color: var(--color-dark);
    font-size: var(--font-heading-size);
    font-weight: var(--font-heading-weight);
    line-height: var(--font-heading-line-height);
}

h2 {
    font-size: 3rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading-family);
}

p,
label,
option,
.lead {
    color: var(--color-dark);
    font-size: var(--font-paragraf-size);
    font-weight: var(--font-paragraf-weight);
    line-height: var(--font-paragraf-line-height);
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    color: var(--color-primary);
}

/* ---------------------------- STANDARD BUTTONS ---------------------------- */
.btn {
    font-size: 1.4rem;
    font-weight: 600;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 7rem;
    margin: 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    transition: var(--transition);
}

.btn:focus {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-white);
}

.btn:hover,
.btn:active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn:disabled {
    background-color: var(--color-gray);
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-remove-add {
    font-size: 1.6rem;
    color: var(--color-secondary);
    border-radius: 1px;
    padding: 0.6rem 1.3rem;
    margin: auto 0.5rem auto auto;
    transition: var(--transition);
}

.btn-remove-add:hover {
    color: var(--color-white);
}

/* -------------------------------------------------------------------------- */
/*                               GENERAL STYLES                               */
/* -------------------------------------------------------------------------- */

ol li {
    font-size: var(--font-paragraf-size);
    line-height: var(--font-paragraf-line-height);
    font-weight: var(--font-paragraf-weight);
}

/* --------------------------------- POPOVER -------------------------------- */
.btn-popover {
    font-size: 1.4rem;
    color: var(--color-secondary);
    border-radius: 1px;
    padding: 0.7rem 1.6rem;
    margin: auto;
    transition: var(--transition);
}

.btn-popover:hover {
    color: var(--color-white);
}

.popover {
    font-size: var(--font-paragraf-size);
    background-color: var(--color-primary);
    border: none;
    border-radius: 1px;
}

.popover-header {
    background-color: transparent;
    color: var(--color-white);
    font-size: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--color-secondary);
    padding: 2rem 1rem;
}

.popover-body {
    color: var(--color-white);
    font-size: var(--font-paragraf-size);
    text-align: center;
    padding: 1rem;
}

/* ------------------------------- FORM STYLING ------------------------------ */
.form-text {
    font-size: var(--font-paragraf-size);
    color: var(--color-dark);
}

.form-control::placeholder {
    color: var(--color-gray);
}

.form-control,
.form-select {
    background-color: var(--color-white);
    font-size: var(--font-paragraf-size);
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    padding: 1rem 2rem;
}

.form-control:focus,
.form-select:focus {
    border: 2px solid var(--color-primary);
    box-shadow: none;
    outline: none;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 1em;
}

.form-select option {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-radius: 0;
}

.form-select option:checked {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ------------------------------- FORM CHECKBOXES ------------------------------- */
.form-check {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.form-check-input {
    min-width: 2rem;
    min-height: 2rem;
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: 0 !important;
    margin-right: 1rem;
}

.form-check-input:focus,
.form-check-input:checked {
    background-color: var(--color-white);
    border: 2px solid var(--color-primary);
    box-shadow: none;
    outline: none;
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23005a9c' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.form-check-label {
    font-size: 1.5rem;
    color: var(--color-dark);
}

input[type="radio"] {
    min-width: 2rem;
    min-height: 2rem;
}

input[type="radio"]:checked {
    accent-color: var(--color-primary);
}

/* -------------------------------- ACCORDION ------------------------------- */
.accordion {
    background-color: var(--color-white);
    font-size: var(--font-paragraf-size);
    border: 2px solid var(--color-primary);
    border-radius: 1px;
}

.accordion-item {
    background-color: var(--color-white);
}

.accordion-header {
    font-size: var(--font-paragraf-size);
}

.accordion-button {
    color: var(--color-dark);
    font-size: var(--font-paragraf-size);
    border: none;
    border-radius: 0;
    padding: 0.6rem 0.75rem;
}

.accordion-button:focus {
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    color: var(--color-dark);
    background-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 1em;
    width: 1em;
    height: 1em;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 1em;
    width: 1em;
    height: 1em;
}

.accordion-body {
    font-size: var(--font-paragraf-size);
    color: var(--color-dark);
    padding: 2rem 5rem;
}

/* -------------------------------- SELECT ------------------------------- */
select {
    padding: 0.5rem;
}


/* -------------------------------------------------------------------------- */
/*                        CUSTOM CSS - FÖRREGISTRERING                        */
/* -------------------------------------------------------------------------- */

.main-wrapper {
    padding: 1rem;
}

/* --------------------------- EVENT INFO CONTENT --------------------------- */

.bakeon-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    /*margin-bottom: 5rem;*/
}

.arranger-logos {
    width: 100%;
    height: auto;
}

.event-info-card {
    background-color: transparent;
    border: none;
    border-radius: 1px;
    padding: 0 3rem;
}

.event-info-card .card-text {
    text-align: center;
    margin-bottom: 5rem;
}

.organizers-logo-row {
    display: flex;
    flex-direction: column;
    align-content: center;
}

.organizers-logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0;
}

/* ------------------------------ BOOTSTRAP CARD ----------------------------- */
.card {
    border: none;
    border-radius: 30px;
}

.card-header {
    background-color: var(--color-primary);
    text-align: center;
    border: none;
    border-top-left-radius: 30px !important;
    border-top-right-radius: 30px !important;
    padding: 1rem;
}

.card-title {
    color: var(--color-white);
    letter-spacing: 2px;
}

.card-body {
    padding: 5rem;
}

.card-footer {
    background-color: transparent;
}

/* ------------------------------ EVENT REGISTRATION CONTENT ----------------------------- */
.registration-card {
    background-color: transparent;
    border: none;
    border-radius: 30px;
}

.registration-card .card-header {
    background-color: transparent;
    text-align: center;
    border: none;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 1rem;
}

.registration-card .card-title {
    color: var(--color-primary);
}

.registration-card .card-body {
    padding: 2.5rem;
}

.registration-card .form-control::placeholder {
    color: var(--color-gray);
}

.registration-card .form-control,
.registration-card .form-select {
    background-color: var(--color-white);
    font-size: var(--font-paragraf-size);
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
}

.registration-card .form-control:focus,
.registration-card .form-select:focus {
    border: 2px solid var(--color-primary);
    box-shadow: none;
    outline: none;
}

.cta-btn {
    margin: 0.5rem;
}

.support-message p {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.event-select-row {
    text-align: center;
    margin-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-select-instruct p {
    font-weight: var(--font-heading-weight);
}

.event-row {
    background-color: var(--color-white);
    border-radius: 30px;
    border: none;
    margin-bottom: 0.5rem;
}

.event-logo-column-title {
    font-size: 2.4rem;
    font-weight: 700;
}

/* --------------------------------- FOOTER --------------------------------- */
footer {
    background-color: var(--color-primary);
    padding: 1rem;
    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
}

footer p {
    color: var(--color-white);
    font-size: 1.6rem;
    text-align: center;
}

footer a,
footer a:visited {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover,
footer a:active,
footer a:focus {
    color: var(--color-white);
}

footer span {
    color: var(--color-white);
}



/* -------------------------------------------------------------------------- */
/*                               ADMINISTRATION                               */
/* -------------------------------------------------------------------------- */

.admin-wrapper {
    width: 100%;
    padding-right: 1rem;
    /*height: 100vh;*/
    display: flex;
    flex-direction: row;
}

.navigation {
    /*height: 100vh;*/
    width: 15vw;
    background-color: var(--color-secondary);
    padding: 1rem;
}

.nav {
    font-size: var(--font-paragraf-size);
    color: var(--color-dark);
    display: flex;
    flex-direction: column;
}

.fa-calendar-minus,
.fa-calendar-plus {
    color: var(--color-dark);
    font-size: 2.5rem;
    cursor: pointer;
}

.content {
    width: 85vw;
    height: 100vh;
}

.settings-container {
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.table-container {
    width: 85vw;
    height: 40vh;
    overflow: auto;
    font-size: var(--font-paragraf-size);
    text-align: center;
}

.table-container-component {
    width: 100%;
    max-width: 95vw;
    height: 40vh;
    overflow: auto;
    font-size: var(--font-paragraf-size);
    text-align: center;
}

    .table-container table th, .table-container table td {
        min-width: 250px; /* You can adjust this value to your needs */
    }

.btn-icon {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0.5rem;
    cursor: pointer;
}
/* -------------------------------------------------------------------------- */
/*                               CUSTOM BOUNCE BUTTON                         */
/* -------------------------------------------------------------------------- */
@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-10px);}
    20%, 40%, 60%, 80% {transform: translateX(10px);}
}

.download-pdf-button {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
    animation-delay: 3s;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* -------------------------------------------------------------------------- */
/*                               CUSTOM LOADING SPINNER                       */
/* -------------------------------------------------------------------------- */
.lds-roller {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-roller div {
        animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
        transform-origin: 40px 40px;
    }

        .lds-roller div:after {
            content: " ";
            display: block;
            position: absolute;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: linear-gradient(90deg, var(--color-primary), var(--color-primary));
            margin: -4px 0 0 -4px;
        }

        .lds-roller div:nth-child(1) {
            animation-delay: -0.036s;
        }

            .lds-roller div:nth-child(1):after {
                top: 63px;
                left: 63px;
            }

        .lds-roller div:nth-child(2) {
            animation-delay: -0.072s;
        }

            .lds-roller div:nth-child(2):after {
                top: 68px;
                left: 56px;
            }

        .lds-roller div:nth-child(3) {
            animation-delay: -0.108s;
        }

            .lds-roller div:nth-child(3):after {
                top: 71px;
                left: 48px;
            }

        .lds-roller div:nth-child(4) {
            animation-delay: -0.144s;
        }

            .lds-roller div:nth-child(4):after {
                top: 72px;
                left: 40px;
            }

        .lds-roller div:nth-child(5) {
            animation-delay: -0.18s;
        }

            .lds-roller div:nth-child(5):after {
                top: 71px;
                left: 32px;
            }

        .lds-roller div:nth-child(6) {
            animation-delay: -0.216s;
        }

            .lds-roller div:nth-child(6):after {
                top: 68px;
                left: 24px;
            }

        .lds-roller div:nth-child(7) {
            animation-delay: -0.252s;
        }

            .lds-roller div:nth-child(7):after {
                top: 63px;
                left: 17px;
            }

        .lds-roller div:nth-child(8) {
            animation-delay: -0.288s;
        }

            .lds-roller div:nth-child(8):after {
                top: 56px;
                left: 12px;
            }

@keyframes lds-roller {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}