*,
*::before,
*::after {
    box-sizing: border-box;

    padding: 0;
    margin: 0;
}

html, body{
    width: 100%;
    min-height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

body::before {
    position: fixed;
    content: " ";

    left:0;
    top: 0;
    right: 0;
    bottom: 0;

    margin: 0;
    padding: 0;
    z-index: -1;

    background: var(--wallpaper-url);

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.app-body {
    gap:1rem;
}

.row-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn > .row-container,
.btn-flat > .row-container{
    flex-wrap: nowrap !important;
}

.two-column-wrap {
    display: flex;
    flex-direction: row !important;
    align-items:flex-start !important;
    gap:1rem !important;
}

.info-container,
.column-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-info-container p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-container {
    border-top-right-radius: 0;
}

nav.sidemenu .info-card {
    display:flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
    border-radius: 2.4rem;
    padding: 1rem 1.6rem;
}

.align-stretch {
    align-items: stretch;
}

.align-center {
    align-items: center !important;
}

.align-start {
    align-items:flex-start !important;
}

.align-end {
    align-items:flex-end !important;
}


.justify-start {
    justify-content: flex-start !important;
}

.justify-stretch {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.justify-spread {
    justify-content: space-around;
}

.justify-end {
    justify-content: flex-end !important;
}

.full-flex-btn {
    flex:1;
}

.hidden {
    display: none !important;
}

header,
footer {
    display: flex;
    flex-direction: row !important;
    gap:1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem;
    
    -webkit-backdrop-filter: blur(2.5rem);
    backdrop-filter:  blur(2.5rem);
}

header {
    border-radius: 2.4rem;
}

header .container,
footer .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

header {
    position: -webkit-sticky;
    position: sticky !important;
    top: 1rem;
    margin: 1rem 1rem 0 1rem;
    z-index: 3;
    height: 6rem;
}

header img {
    height: 3.5rem;
    width: auto;
}

header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:1rem;
}

.logo-container .divider {
    display: none;
}

header.mobile-header {
    display: none;
}


footer img {
    height: 2rem;
    width: auto;
}

footer .container {
    gap:1rem;
    flex-wrap: wrap;
    padding: 1rem;
}

footer .container p {
    margin: 0;
}

ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
}

ol {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
}

h1,h2,p {
    padding: 0.5rem 0;
}

p.flex-p {
    display: flex;
    gap:1rem;
}

h1 {
    display: flex;
    gap: 1rem;
}

header h1 {
    color: var(--theme-text-color);
}

nav.sidemenu {
    height:100svh;
    position:sticky;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    top:0;
    gap:1rem;
    min-width: 20%;

    -webkit-backdrop-filter:  blur(2.5rem);
    backdrop-filter:  blur(2.5rem);
    z-index: 3;

    animation-duration: var(--animation-duration);
}

aside {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.6rem;
    width: fit-content;
    height: fit-content;

    border-bottom-left-radius: 2.4rem;

    position: sticky;
    top:0rem;

    -webkit-backdrop-filter:  blur(2.5rem);
    backdrop-filter:  blur(2.5rem);
}

nav.sidemenu .sidemenu-header {
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap:1rem;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
}

nav.sidemenu .sidemenu-header img {
    width: auto;
    height: 3.5rem;
}

nav.sidemenu .sidemenu-main,
nav.sidemenu .sidemenu-sub {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    max-height: calc(100vh - 12rem);
    overflow-y: hidden;
}


nav.sidemenu .sidemenu-main {
    flex:1;
}

nav.sidemenu .sidemenu-main:hover {
    overflow-y: auto;
}

nav.sidemenu .section-title {
    display:flex;
    flex-direction: row;
    align-items:center;
    justify-content: space-between;
    color: var(--theme-text-color);

    gap:1rem;
}

nav.sidemenu .navigation {
    display:flex;
    flex-direction: column;
    justify-content: stretch;
    gap:0.5rem;
}

nav.sidemenu .link-list {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    gap: 0.5rem;
    border-radius: 2.4rem;
    padding: 1rem;
    background-color: var(--theme-color);
}

nav.sidemenu .sidemenu-footer {
    padding: 0 1rem;
    height: 6rem;
    color: var(--theme-text-color);
}

main {
    color: var(--theme-text-color);
    min-height: 100svh;
    padding: 1rem;
}

main.with-header {
    flex:1;
    min-height: fit-content;
    padding: 0 1rem 1rem 1rem;
}

.container {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.left-container {
    width: 50%;
    margin-right:auto;
}

.right-container {
    width: 50%;
    margin-left:auto;
}


main.row-container .container {
    margin-left: unset;
}

.container.landing {
    width: 80%;
}

.card {
    border-radius: 2.4rem;
}

.progress-container {
    background-color: var(--theme-color);
    height: 1rem;
    border-radius: 2.4rem;
}

.column-container .progress-container {
    width: 100%;
}

.row-container .progress-container {
    flex: 1;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background-color: var(--theme-color-inverted);
    border-radius: 2.4rem;
}

.info-card p,
.info-card h1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-card .logo {
    max-width: 50%;
    height: auto;
    max-height: 3rem;
}

.design-header {
    background-image: url("../resources/man.png"), linear-gradient(to bottom right, #ff9800 0%, #e5187d 90%);
    background-position: top right;
    background-repeat: no-repeat;
    background-size: contain;
    border-top-left-radius: 2.4rem;
    border-top-right-radius: 2.4rem;
    display: flex;

    height: 30rem;

    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.card-title,
.dialog-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem;
    margin: 0;
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

.card-content {
    padding: 1rem 1.6rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
}

.dialog-wrapper {
    display: flex;
    flex-direction: column;

    position:fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
}

.dialog-container {
    position: absolute;
    right: 0rem;
    top: 0rem;
    bottom: 0rem;
    left: 33.3%;
    z-index: 999;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 0 1.6rem;

    animation: fadeInRight; /* referring directly to the animation's @keyframe declaration */
    animation-duration: var(--animation-duration); /* don't forget to set a duration! */
}

.dialog-title {
    padding: 1rem 0;
    height: 6rem;
}

.dialog-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    flex: 1;

    height: calc(100% - 6rem);
}

.dialog-form-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    gap: 1rem;
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.card-content.no-title {
    padding: 1.6rem;
}

a.map-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

img.map-container  {
    border-radius: 2.4rem;
    max-width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    opacity: 0.9;
}

.subForm-container {
    display:flex;
    flex-direction:
    column; gap:1rem;
}

.card-actions,
.dialog-actions {
    padding:  1.6rem;
    border-top: 1px solid var(--theme-color-inverted);
    display: flex;
    gap: 0.5rem;
}

.card-actions:not(.column-container) {
    justify-content: space-between;
}

.card-actions.column-container .btn,
.card-actions.column-container .btn-flat {
    width: 100%;
}

.dialog-actions {
    justify-content: space-between;
}

.section {
    padding: 1.6rem;
    border-radius: 2.4rem;
}


.section-vertical {
    padding: 1.6rem 0;
    border-radius: 2.4rem;
}

.section-horizontal {
    padding: 0 1.6rem;
    border-radius: 2.4rem;
}

.file-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding:2rem;
}

.file-field,
.input-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap:0.7rem;
    align-items: stretch;
    margin:0.5rem 0;
}

.row-container > .input-field,
.row-container > .file-field {
    width: fit-content;
    flex: 1;
}

label {
    cursor: pointer;
    padding: 0.5rem;
}

.section-title {
    padding: 0.5rem 0;
}

.file-field p.input-label,
.input-field label {
    width: 100%;
}

.search-field label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-field .clear-search {
    cursor: pointer;
    display: none;
}

.file-field label {
    cursor: pointer;
}

.input-field select {
   border-bottom: 1px solid var(--theme-color-inverted)!important;
}

.input-field .icon-container {
    display: flex;
    align-items: center;
    justify-items: flex-start;
    gap: 0;
}

.password-field,
.phone-field,
.search-field {
    margin: 0;
    padding: 0;
    display: flex;
    align-items:center;
    justify-content:space-between;
    gap: 1rem;
}

.password-field > input {
    order: -1;
    flex: 1;
}

.search-field > input {
    flex: 1;
}

.phone-field > label {
    margin-bottom: 0;
    width: fit-content;
}

.phone-field > input {
    order: 1;
    flex:1;
}


.radio-field,
.checkbox-field {
    margin: 0.5rem 0;
}

.radio-field > label,
.checkbox-field > label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.recaptcha-field {
    display: flex;
    justify-content: center;
    align-items:center;
}

.open-input-wrapper.selected {
    padding: 1rem;
    border-radius: 2.4rem;
    border: 0.1rem solid var(--theme-color-inverted);

}

input[type="radio"],
input[type="checkbox"] {
    position: absolute;
    height: 1px;
    width: 1px;
    padding: 0;
    margin: 0;
    opacity: 0;
    top:50%;
    left:50%;
}

input[type="radio"]:not(.chip) + label::before,
input[type="checkbox"]:not(.chip) + label::before {
   content: " ";

   margin: 0;
   padding: 0;
   width: 2.5rem;
   height: 2.5rem;
   border-radius: 2.4rem;

   font-size: 1.5rem;
   line-height: 1;

   order: -1;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-shrink: 0;
   align-self: flex-start;
}

.chip-field {
    position: relative;
}

.chip-field label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.6rem;
    border-radius: 2.4rem;
    gap: 1.5rem;
    user-select: none;
}

.image-chooser-field {
    position:relative;
}

.image-chooser {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap:0.2rem;
    align-items: center;
    justify-content: stretch;

    padding: 1rem;
    border-radius: 2.4rem;
    user-select: none;
    min-width: 12.5rem;
    min-height: 20rem;

    border: 0.1rem solid var(--theme-color-inverted);

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.image-chooser i {
    font-size: 10rem;
    align-self: center;
    justify-self: center;
}

input[type="file"] {
    width: 1px;
    height: 1px;
    margin: 0 auto;
    padding: 0;
}

input[type="date"],
input[type="text"],
input[type="search"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="email"],
textarea
{
    padding: 0.5rem 1.6rem;
    border-radius: 2.4rem;
    border:0;
    flex: 1;
}

input[type="date"] {
    width: 100%;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

textarea {
    resize: vertical;
}

.helper {
    display: none;
}

.file-field label,
button,
.btn,
.btn-register,
.btn-flat {
    display: flex;
    align-items: center;
    border: 0;
    padding: 1rem 1.6rem;
    border-radius: 2.4rem;
    gap: 1.5rem;
    user-select: none;
}

.small-btn {
    padding: 0.3rem 0.5rem;
}

.file-field label,
button,
.btn,
.btn-flat {
    justify-content: space-between;
}

.home-btn {
    position: absolute;
}

div.table-container {
    max-width: 100%;
    overflow-x: auto;
}

div.table-container table {
    min-width: 100%;
}

table .btn-flat {
    justify-content: center;
    align-items: center;
}

.btn-register {
    justify-content: center;
}

.circle {
    height: 3.5rem !important;
    width: 3.5rem !important;
    border-radius: 50% !important;
    justify-content: center !important;
    align-items: center !important;
}

input[type="radio"]:not(:disabled) + label,
button:not(:disabled),
.btn:not(:disabled),
.btn-flat:not(:disabled) {
    cursor: pointer;
}

p > i {
    cursor:default;
}

.card-actions:not(.column-container) .btn i,
.card-actions:not(.column-container) .btn-flat i,
.dialog-actions .btn i,
.dialog-actions .btn-flat i {
    display: none;
}

.carousel .btn-flat i,
.carousel .btn i {
    display: flex !important;
}

.message-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;

    position: fixed;
    bottom: 2rem;
    left: calc(50% - 25rem);
    z-index: 999;

    height: fit-content;
    width: 50rem;

    padding: 1.6rem;
    border-radius: 2.4rem;
    text-align: center;

    animation: fadeInUp; /* referring directly to the animation's @keyframe declaration */
    animation-duration: var(--animation-duration); /* don't forget to set a duration! */
}

.message-container p {
    flex: 1;
}

.message-close-btn {
    cursor: pointer;
}

.message-count-countainer {
    width: 25rem;
}

.small-screen {
    display: none !important;
}

.menu-button {
    position: fixed;
    height: 5rem;
    border-radius: 2.4rem;
    top: 1rem;
    left: 1rem;
    display: none;
}

.menu-btn-close {
    visibility: hidden;
}

.menu-btn-label {
    display:flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0rem;
}

.menu-btn-label > p {
    padding: 0;
    margin: 0;
}

select {
    border: none !important;
    background-color: transparent !important;

    padding: 1rem;
    margin: 0.5rem;
    color: var(--theme-text-color);
    cursor: pointer;
}

select option {
    color:#000000;
    padding: 1rem !important;
    cursor: pointer;
}

.file-field label {
    padding: 1rem 0.5rem 1rem 1.5rem;
    border-radius: 0;
    font-size: 1.4rem;
    color: var(--theme-text-color);
    border-bottom: 1px solid var(--theme-color-inverted);
}

.file-field label i {
    font-size: 2rem;
}

.divider {
    min-height:0.1rem;
    width: 100%;
}

.divider-vertical {
    width:0.1rem;
    min-height: 2rem;
}

.sidemenu .divider-vertical {
    height: 100%;
}


footer .divider-vertical {
    height: 5rem;
}

.tablink-row-container {
    display: flex;
    flex-direction: row;
    gap:0;
}

.tablink-row-container .tab-link {
    border-radius: unset;
}

.tablink-row-container .tab-link:first-of-type {
    border-top-left-radius: 2.4rem;
    border-bottom-left-radius: 2.4rem;
}

.tablink-row-container .tab-link:last-of-type {
    border-top-right-radius: 2.4rem;
    border-bottom-right-radius: 2.4rem;
}

.tablink-row-container .tab-link:not(:last-of-type) {
    border-right: none;
}

.tab-container {
    display: flex;
    gap: 2rem;
    flex-direction: column;
    padding: 2rem;
    border-radius: 2.4rem;
    background: var(--theme-color);
}

.tab-container:not(.active) {
    display: none;
}

.tab-container.active {
    display: flex;
}

.text-ul {
    padding-left: 2rem;
    list-style-type: disc;
}

.header-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
}

.header-select label {
    color: var(--theme-color-inverted);
    font-size: 1.2rem;
}

.header-select select {
    padding: 0;
}

.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border-radius: 2.4rem;
    background-color: var(--theme-color);
    color: var(--theme-text-color) !important;
    cursor: pointer;
    margin: 4rem 1rem 1rem 1rem;
    min-width: 20em;
}
.tile i {
    color: #ffffff !important;
}

.tile .material-icons,
.tile .fa {
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 2.4rem;
    transform: translateY(-50%);
}

.tile > * {
    transform: translateY(-50%);
}

.collapsible {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    border-radius: 2.4rem;
}


.collapsible-header {
    flex:1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 1.6rem;
    border-radius: 2.4rem;

    cursor: pointer;
}

.collapsible-body {
    display: none;
    flex-direction: column;
    gap:1rem;

    border-radius: 2.4rem;
    padding: 1.6rem;
    overflow-y: hidden;
}

table {
    border-collapse: collapse; 
}

table td,
table th {
    padding: 1rem 0.5rem;
    text-align: center;
}

thead tr th:first-of-type {
    text-align: left;
}

tbody tr td:first-of-type {
    text-align: left;
}

td[data-edit-target],
td[data-label-target] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

td .btn-flat {
    width: 4rem;
    margin: auto;
}

a.client-logo {
    cursor: pointer;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: stretch;
}

a.client-logo > img {
    height: 100%;
}

.carousel-content-container {
    overflow-x: hidden;
}

.carousel-indicator-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 0.7rem;
}

div.carousel-progress {
    height:0.3rem;
    background-color: var(--theme-color-inverted);
    border-radius: 2.4rem;
    transition: 1s;
    cursor: pointer;
}

div.carousel-progress.active {
    position: relative;
    height: 0.6rem;
    background-color: var(--theme-color);
}

div.carousel-progress.active:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 2.4rem;
    width: 0;
    background: var(--theme-color-inverted);
    animation: var(--scroll-time) prog ease-in-out;
  }
  @keyframes prog {
    to  {width: 100%;}
  }

article.news-article-snippet:not(.active) {
    display: none;
}

article.news-article-snippet.active {
    display: block;
}

.badge {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 2.4rem;
    padding: 0;
    font-style: normal;
}

@media only screen and (max-width: 600px)  {
    body {
        overflow-x: unset;
    }


    .row-container.small-screen-column {
        flex-direction: column !important;
    }
    
    header img {
        height: 2.5rem;
    }

    header h1,
    header .divider {
        display: none !important;
    }

    .container,
    .left-container,
    .right-container {
        width: 100%;
    }

    .menu-button {
        right: 1rem;
    }

    .card-actions,
    .dialog-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav.sidemenu {
        width: 100%;
    }
    
    .image-chooser {
        min-width: 12.5rem;
    }

    .message-container {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;

        width: unset;
    }
}

@media only screen and (min-width: 601px) and (max-width: 950px) {

    .logo-container .divider {
        display: block;
    }

    .container {
        width: 80%;
    }

    .card-actions,
    .dialog-actions {
        flex-direction: column;
        gap: 0.5rem;
    }


    nav.sidemenu {
        width: 75%;
    }

}

@media only screen and (max-width: 950px) {

    header {
        height: fit-content;
        padding: 0 1.6rem;
    }

    header .home-btn,
    header .back-btn {
        position: relative;
    }

    main:not(.with-header) {
        padding: 8rem 1rem 1rem 1rem;
    }

    nav.sidemenu {
        display: none;
        position: fixed;
    }

    .menu-btn-close {
        visibility: visible;
    }

    .menu-button.visible,
    nav.sidemenu.visible {
        display: flex;
    }

    nav.sidemenu .sidemenu-main {
        overflow-y: auto;
        flex:1;
    }

    .two-column-wrap{
        flex-wrap: wrap;
    }

    header .logo-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
        width: 60%;
        padding:  1rem 1.6rem;
        margin: 0 auto 0 0;
    }

    footer div {
        width: 100%;
    }

    .logo-container .divider-vertical {
        display: none;
    }

    .design-header {
        height: 20rem;
    }

    .large-screen {
        display: none !important;
    }

    .small-screen {
        display: flex !important;
    }

    .card-actions .btn i,
    .card-actions .btn-flat i,
    .dialog-actions .btn i,
    .dialog-actions .btn-flat i {
        display: inline-block !important;
    }

    .dialog-container {
        top: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        z-index:999;

        border-radius: 2.4rem;

        animation: fadeInUp; /* referring directly to the animation's @keyframe declaration */
        animation-duration: var(--animation-duration); /* don't forget to set a duration! */
    }

    .dialog-container form {
        max-width: unset;
    }

    .dialog-content {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100% - 8rem);
        width: 100%;
    }
    
    .left-container,
    .right-container {
        width: 100%;
    }
}

@media only screen and (min-width: 951px) and (max-width: 1365px) {

    main.row-container > * {
        flex:1;
    }
    
    .left-container,
    .right-container {
        width: 80%;
    }
}

@media only screen and (min-width: 1366px) {
    nav.sidemenu {
        min-width: 20%;
        max-width: 20%;
    }
    
    .image-chooser {
        min-width: 20rem;
    }

}