@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@keyframes borderMove {
    0%   { background-position:   0% 50%; }
    100% { background-position: 300% 50%; }
}

::selection {
    background: #5d9a49;
}
::-webkit-selection {
    background: #5d9a49;
}
::-moz-selection {
    background: #5d9a49;
}

* {
    font-family: 'Ubuntu', sans-serif;
    padding: 0;
    margin: 0;
}

body {
    background: linear-gradient(168deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

section#page {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-basis: 0;
    flex-grow: 1;
    margin: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    gap: 10px;
}

section#page.waiting::after {
    content: url('/images/loading.gif');
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.8);
}


/*  ALIGNEMENT  */

*.left {
    text-align: left;
}
*.center {
    text-align: center;
}
*.right {
    text-align: right;
}



/*  BOUTONS  */

.btn {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    color: var(--light);
    background: linear-gradient(168deg, var(--primary) 0%, var(--secondary) 100%);
    transition: background 0.1s, color 0.1s;
}
.btn:hover {
    transition: background 0.1s, color 0.1s;
}
.btn.btn-square {
    padding: 10px;
}
.btn.btn-info:hover {
    background: var(--info-dark);
}
.btn.btn-success:hover {
    background: var(--success-dark);
}
.btn.btn-warning:hover {
    background: var(--warning-dark);
}
.btn.btn-error:hover {
    background: var(--error-dark);
}
.btn.btn-question:hover {
    background: var(--question-dark);
}
.btn.btn-acs:hover {
    background: linear-gradient(168deg, var(--primary) 0%, var(--secondary) 100%);
}
.btn.btn-none:hover {
    background: var(--none);
}

a.btn {
    text-decoration: none;
}

/* FLEX/GRID PROPERTIES */

.flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-revrow { flex-direction: row-reverse; }
.flex-revcol { flex-direction: column-reverse; }

.grid { display: grid; }

.fg-1 { flex-basis: 0; flex-grow: 1; }
.fg-2 { flex-basis: 0; flex-grow: 2; }
.fg-3 { flex-basis: 0; flex-grow: 3; }
.fg-4 { flex-basis: 0; flex-grow: 4; }
.fg-5 { flex-basis: 0; flex-grow: 5; }
.fg-6 { flex-basis: 0; flex-grow: 6; }
.fg-7 { flex-basis: 0; flex-grow: 7; }
.fg-8 { flex-basis: 0; flex-grow: 8; }
.fg-9 { flex-basis: 0; flex-grow: 9; }
.fg-10 { flex-basis: 0; flex-grow: 10; }
.fg-11 { flex-basis: 0; flex-grow: 11; }
.fg-12 { flex-basis: 0; flex-grow: 12; }

/* GROUPS */

div.group {
    display: flex;
    flex-wrap: nowrap;
}
div.group > * {
    border-radius: 0;
}

div.group.row {
    flex-direction: row;
}
div.group.row :first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
div.group.row :last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

div.group.column {
    flex-direction: column;
}
div.group.column :first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
div.group.column :last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
