html {
    position: relative;
    background-color: #761619;
}

@font-face {
    font-family: 'Hexa Title';
    src: url('hexa.ttf');
}

#contact {
    font-family: Montserrat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 75%;
    margin: 0 auto;
}

#contact fieldset {
    border: 2px solid white;
    border-radius: 6px;
}

#contact fieldset legend {
    color: white;
}

#contact .input-field>label, #contact textarea {
    color: white;
}

input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default), input[type=email]:not(.browser-default), input[type=url]:not(.browser-default), input[type=time]:not(.browser-default), input[type=date]:not(.browser-default), input[type=datetime]:not(.browser-default), input[type=datetime-local]:not(.browser-default), input[type=tel]:not(.browser-default), input[type=number]:not(.browser-default), input[type=search]:not(.browser-default), textarea.materialize-textarea {
    border-bottom: 1px solid white;
    color: white;
}

input::placeholder {
    color: rgba(255,255,255,0.85);
}

#contact h1 {
    font-family: 'Hexa Title', Montserrat;
    color: white;
    text-align: center;
}

#contact .send-button {
    display: flex;
    padding: 0 2.5%;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

#contact .legend-last {
    color: white;
    font-size: .65rem;
    width: 60%;
}

/** DISTANCE ERROR **/


.distance-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: rgba(255,255,255,0.25);
}

.distance-error p {
    top: 50%;
    left: 50%;
    padding: 2%;
    z-index: 11;    
    width: 500px;
    color: white;
    height: 300px;
    display: flex;
    position: fixed;
    font-size: 1.5rem;
    border-radius: 6px;
    margin-top: -150px;
    text-align: center;
    align-items: center;
    margin-left: -250px;
    flex-direction: column;
    justify-content: center;
    background-color: #761619;

}

.distance-error p span {
    color: white;
    font-size: 2.25rem;
}

.distance-error p a {
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    margin-top: 50px;
    border: 2px solid white;
    transition: all 0.25s ease-in-out;
}

.distance-error p a:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12), 0 4px 4px rgba(0,0,0,0.15);
}

/* Pizza selector */

.pizza-selector-title {
    color: white;
    font-family: 'Montserrat';
    font-size: 1rem;
    padding-left: 1.5rem;
    margin-bottom: 0;
    font-weight: bold;
}

#pizza-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 0;
}

#pizza-selector .card-pizza {
    display: flex;
    margin: 2% 0;
    width: 23%;
    min-height: 22rem;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 0;
}

#parisienne { background-image: url(../pictures/pizzas/parisienne.jpg); }
#calais { background-image: url(../pictures/pizzas/pasdecalais.jpg); }
#rhone { background-image: url(../pictures/pizzas/bouchesdurhone.jpg); }
#ariege { background-image: url(../pictures/pizzas/ariege.jpg); }
#cher { background-image: url(../pictures/pizzas/loiretcher.jpg); }
#nord { background-image: url(../pictures/pizzas/nord.jpg); }
#gers { background-image: url(../pictures/pizzas/gers.jpg); }
#mayenne { background-image: url(../pictures/pizzas/mayenne.jpg); }
#auvergne { background-image: url(../pictures/pizzas/auvergne.jpg); }
#pyrenees { background-image: url(../pictures/pizzas/pyrenees.jpg); }
#finistere { background-image: url(../pictures/pizzas/finistere.jpg); }
#savoie { background-image: url(../pictures/pizzas/savoie.jpg); }

.card-pizza label {
    cursor: pointer;
    width: 100%;
}

.card-pizza label input:checked + .input-legend {
    background-color: rgba(0, 0, 0, .55);
}

.card-pizza label input:checked + .input-legend .input-legend-title {
    text-decoration: underline;
    text-decoration-color: #b71c1c;
}

.card-pizza label .input-legend-text::before {
    display: none;
}

.card-pizza label .input-legend {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    width: 100%;
}

.card-pizza label .input-legend .input-legend-text {
    width: 100%;
    text-align: center;
    padding: 2.5% 0;
    background-color: white;
    min-height: 8rem;
}    

.card-pizza label .input-legend .input-legend-text p {
    margin: 0;
    padding-left: .3rem;
    color: black
}

.card-pizza label .input-legend .input-legend-text .input-legend-title {
    text-align: left;
    font-size: 2rem;
    font-family: 'Hexa Title';
}

.card-pizza label .input-legend .input-legend-text .input-legend-desc {
    font-size: .75rem;
    text-align: left;
    font-family: 'Montserrat';
}

@media screen and (max-width: 700px) {
    #contact { width: 97%; }
    #contact .send-button { flex-direction: column-reverse; padding-top: 2.5%; }
    #contact .legend-last { width: auto; }
    #pizza-selector .card-pizza { width: 45%; min-height: 15rem; }
    .card-pizza label .input-legend .input-legend-text .input-legend-desc { font-size: .5rem; }
    .card-pizza label .input-legend .input-legend-text { min-height: unset; }
    .card-pizza label .input-legend .input-legend-text p { line-height: 1; }
}
