@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&family=Quicksand&display=swap');

:root {
    --primary: #0092d6;
    --secondary: rgb(211, 211, 211);
    --accent:   #312259;
    --text-primary: var(--primary);
    --text-secondary: var(--secondary);
    --text-accent:  var(--primary);
    --font-primary: 'Montserrat', sans-serif;
    --font-accent: 'Quicksand', sans-serif;;
    --opacity: rgba(255,255,255,0.3);
}

* { box-sizing: border-box; }

html, body { 
    height: 100%;
    margin: 0;
    font-family: var(--font-primary);
    font-size: large;
    font-weight: 600;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* margin-left: 3vw; */
    min-height: 80vh;
}

nav {
    padding: 5vh;
    background-color: var(--primary);
}

footer {
    padding: 20px;
    background-color: var(--secondary);
    display: flex;
    justify-content: center;
}

.form {
    display: flex;
    flex-direction: row;
}

input, select, button {
    margin: 0.7rem;
    margin-left: 0;
}

button, #submit {
    border-radius: 5px;
    border: none;
    padding: 0.5rem;
}

button:hover, #submit:hover {
    background-color: lightgray;
}



.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
}

.wrapper {
    margin: 70px auto;
    padding: 20px;
    background-color: var(--background);
    width: 80%;
    position: relative;
    border-radius: 10px;
}

.wrapper .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    text-decoration: none;
}

.close:hover {
    color: red;
}

.photoBtn:hover {
    position: relative;
    top: -4px;;
}

#rezultatCalcul {
    display: flex;
    justify-content: center;
}
