/*FONTS*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,100;9..40,200;9..40,300;9..40,400;9..40,500;9..40,600;9..40,700;9..40,800;9..40,900;9..40,1000&display=swap');

@import url("components.css");

* {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    --p-size: 18px;
    --h1-size: 35px;
    --h2-size: 20px;
    --bg-color: #F4F4F4; /* Warning do not modify! The guided tour have gif with this background color */
    --primary-color: #6874E8;
    --secondary-color: #09BC8A;
    --not-selected: rgb(234 234 234);
    --font: 'DM Sans', sans-serif;
    --shadow: rgba(72, 72, 72, 0.14);
    --gradient: linear-gradient(88deg, #5D5FEF 0%, #BA22B4 100%);
    --text-color: #1D2149;
    --button-text-color: #FFF;
    --input-border: 1px solid rgba(106, 106, 134, 0.75);
    --info: rgb(53, 120, 207);
    --error: rgb(169, 54, 54);
    --success: rgb(54, 169, 94);
    --warning: rgb(169, 142, 54);
    --info-bg: rgba(53, 120, 207, 0.2);
    --error-bg: rgba(169, 54, 54, 0.2);
    --success-bg: rgba(54, 169, 94, 0.2);
    --warning-bg: rgba(169, 142, 54, 0.2);
    overflow-x: hidden;
    background: var(--bg-color);
}

h1 {
    font-family: var(--font);
    font-size: var(--h1-size);
    margin-bottom: 15px;
    color: var(--text-color);
}

h2 {
    font-family: var(--font);
    font-size: var(--h2-size);
    margin-bottom: 10px;
    color: var(--text-color);
}

p {
    font-family: var(--font);
    font-size: var(--p-size);
    margin-bottom: 10px;
    color: var(--text-color);
}

.small {
    font-size: calc(var(--p-size) * 0.75);
    color: #484848 !important;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    font-family: var(--font);
}

a.link {
    text-decoration: underline;
    display: block;
    font-family: var(--font);
}

label {
    color: var(--text-color);
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    -webkit-appearance : none;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    font-size: var(--p-size);
    background-color: var(--primary-color);
    font-weight: 700;
    font-family: var(--font);
    color: var(--button-text-color);
}

button svg {
    stroke: var(--button-text-color);
}

.full-width {
    width: 100%;
}

main {
    text-align: center;
    min-height: calc(100vh - 60px);
    padding: 30px;
    position: relative;
}

main {
    /* Leave a space at the end of the main content
     * otherwise the fixed button hides the end of the main content
     * The space to leave is calculate as follows :
     * the font-size of the button (variable)
     * + 2 times the padding of main (2*30px = 60px)
     * + 2 times the padding of button (2*10px = 20px)
     */
    margin-bottom: calc(var(--p-size) + 60px + 20px);
}

.btn-bottom {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 100;
}
.btn-bottom.full-width {
    bottom: 0;
    left: 0;
    right: 0;
}

label {
    font-family: var(--font);
}


.txt-center, .center {
    text-align: center;
}

nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.3);
    padding: 10px;
    justify-content: space-between;
    font-family: var(--font);
    font-size: 12px;
    z-index: 99;
    overflow: hidden;
}

nav svg {
    stroke: var(--text-color);
}

nav a {
    display: flex;
    text-decoration: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: calc(var(--p-size) * 0.75);
    gap: 5px;
    width: 18%;
    color: var(--text-color);
}

a.selected label {
    color: var(--secondary-color) !important;
    font-weight: 700;
}
nav a.selected svg {
    stroke: var(--secondary-color);
}

@keyframes opacity {
    0% {
        opacity: 1;
        color: var(--error);
    }
    50% {
        opacity: 0.5;
        color: var(--error);
    }
    100% {
        opacity: 1;
        color: var(--error);
    }
}
/* Loader */
#loader div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 4px;
    border: 4px solid;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}
#loader div:nth-child(1) {
    animation-delay: -0.45s;
}
#loader div:nth-child(2) {
    animation-delay: -0.3s;
}
#loader div:nth-child(3) {
    animation-delay: -0.15s;
}
@keyframes lds-ring {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
}

#loader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
}

.icon-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-text p {
    width: calc(100% - 40px);
}

.icon-text svg {
    width: 25px !important;
    height: 25px !important;
    stroke: var(--text-color);
}

/* SCROLL BAR STYLE */
/* total width */
*::-webkit-scrollbar {
    display: none;
}
