:root {
    --default-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --h1-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --header-background-color: white;
    --section-background-color : white;
    --pop-up-background-color : white;
    --main-background-color: var(--light-theme-color);
    --footer-background-color : white;
    --light-theme-color : #dbe5f0;
    --theme-color : #aeb5bd;
    --theme-fonce-color : #5f6368;
    --theme-shadow-color : rgba(95, 99, 104, 0.5);
    --icon-color : #5f6368;
    --icon-font-family: Arial, Helvetica, sans-serif;
    --page-title-font : 'Knewave-regular', sans-serif;
}

@font-face {
    font-family: 'Knewave-regular';
    src: url('../fonts/Knewave-Regular.ttf') format('truetype');
}

#page-title {
    font-size : x-large;
    font-family: var(--page-title-font);
    color : var(--icon-color);
    display : flex;
    flex-direction: column;
    justify-content: center;
}

::-webkit-scrollbar {
    display: none;
}

html, body, main, section, header, footer, #menu-nav {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    font-family: var(--default-font-family);
}

html, body {
    height: 100%;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header {
    height: fit-content;
    padding: 1em;
    background-color: var(--header-background-color);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 3;
    border-bottom: 2px solid var(--theme-fonce-color);
}

header nav {
    display: flex;
    justify-content: space-between;
}

#menu-nav {
    display : none;
    z-index: 2;
    position: absolute;
    width : 100%;
    height: 100%;
    overflow: hidden;
    top : 5em;
}
#menu {
    width : 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display : flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--section-background-color);
    list-style-type: none;
    
}

.menu-item {
    width : 80%;
    display : flex;
    padding : 0;
    border: none;
    margin-top: 2em;
}

.menu-link {
    width : 100%;
    padding: 1em;
    border-radius: 1em;
    background-color: var(--theme-color);
    color: black ;
    text-align: center;
    text-decoration: none;
}

.menu-form {
    width : 100%;
    margin : 0;
    padding : 0;
}

#logout_button {
    width : 100%;
    margin : 0;
    padding: 1em;
    background-color: var(--theme-color);
    color: black ;
    text-align: center;
    border : none;
    font-style: normal;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--main-background-color);
    overflow: hidden;
}

.bubble-button {
    width: fit-content;
    box-sizing: border-box;
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top : 7em;
    border-radius: 50%;
    background-color: var(--section-background-color);
    border : 2px solid var(--theme-color);
    box-shadow: 0 0 5px var(--theme-shadow-color);
    z-index: 1;
}

.out-of-window {
    display : flex;
    flex-direction: column;
    overflow-y: scroll;
    box-sizing: border-box;
    flex-basis: 0;
    flex-grow: 1;
    max-height: calc(100% - 2.1em);
    margin : 1em;
    border-radius: 1em;
    border: 1px solid var(--theme-fonce-color);
    box-shadow: 0 0 5px var(--theme-shadow-color);
    background-color: var(--section-background-color);
}

section {
    background-color: var(--section-background-color);
}

h1, h2, h3 {
    width: 100%;
    text-align: center;
    font-family: var(--h1-font-family);
    font-weight: 400;
    font-style: normal;
}

h1 {
    font-size: 2em;
}

.vet-name {
    text-align: start;
    padding-left: 1em;
}

form, fieldset {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    display: flex;
}

form {
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    padding: 1em 0;
}

.center-form {
    align-items: center;
}

legend {
    font-weight: bold;
}

input, select {
    margin : 0.5em 0;
    padding: 0.5em;
    border-radius: 1em;
    box-sizing: border-box;
    font-size: 16px;
}

input[type=checkbox] {
    margin: 0 1em;
}

input[type=radio] {
    margin: 0 1em;
}

input[type=time] {
    margin: 0 1em;
}

textarea {
    width : 100%;
    box-sizing: border-box;
    font-size: 16px;
}

figure {
    width: 100%;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}

.pop-up {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--pop-up-background-color);
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 4;
    border-radius: 0;
}

.pop-up-header {
    position: relative;
    height: fit-content;
    padding: 0 0 1em 0;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}

.pop-up-body {
    width: 100%;
    margin : 0;
    padding: 0;
    box-sizing: border-box;
    height: calc(100vh - 5em);
    display : flex;
    flex-direction: column;
    align-items: start;
    overflow-y: scroll;
}

.pop-up-button {
    width: fit-content;
    padding: 0.5em 1em;
    text-align: end;
    border: none;
    color: var(--icon-color);
    background-color: var(--pop-up-background-color);
    font-family: var(--icon-font-family);
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
}

.pop-up-button svg, .button-svg {
    fill: var(--icon-color);
}

.pop-up ul {
    display: flex;
    flex-direction: column;
    list-style-type: none;
    text-align: start;
    text-indent: 0;
    padding: 0;
    margin: 0;
}

.pop-up li {
    width: 100%;
    padding: 1em 0;
    border-bottom: 1px solid black;
    box-sizing: border-box;
}

.submit-fieldset {
    flex-direction: row;
    justify-content: flex-end;
}

footer {
    height: fit-content;
    padding: 1em;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
    position: sticky;
    bottom: 0;
    left: 0;
    background-color: var(--footer-background-color);
}

.header-footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--icon-color);
    text-decoration: none;
    font-family: var(--icon-font-family);
}

.header-footer-link svg {
    fill: var(--icon-color);
}

.figure-maps-link {
    width: 30%;
}

.maps-svg {
    width: 100%;
    height: 100%;
}

.clients-maps-svg {
    width: 30%;
}

.svg-link {
    color: var(--icon-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

svg {
    width : 24px;
    height: 24px;
}

@media only screen and (min-width: 500px) {

    main {
        align-items: center;
    }

    .out-of-window {
        width : 400px;
    }

    .pop-up {
        align-items: center;
    }

    .pop-up-body {
        width : 50%;
    }
}