@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}



body {
    background-color: #2C5C91;
    color: white;
}

a, h1, p, input, textarea, button, select {
    font-family: "Montserrat", sans-serif;
}

.navContainer {
    background-color: #fff;
    display: flex;
    position: relative;
    justify-content: center;
    /* padding-top: 0.5rem; */
    /* padding-bottom: 0.5rem; */
}

.menu {
    position: fixed;
    padding: 2rem 1rem;
    max-width: 3rem;
    font-size: 2rem;
    background-color: white;
    color: #2C5C91;
    border: white 2px solid;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 1rem;
    right: 0;
    top: 0;


}

.menu:hover {
    transform: scale(1.2);
    transform-origin: top right;

}

.nav {
    position: fixed;
    display: none;
    flex-direction: column;
    justify-content: center;
    right: 0;
    height: 100vh;
    background-color: white;
    padding: 1rem;
    gap: 1rem;
    font-size: 1.2rem;
    z-index: 1000;
    top: 0;

}

.nav.open {
    display: flex;
}

.exitBtn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem; 
    font-size: 2rem;
    padding: 0rem;
    background-color: white;
    color: #2C5C91;
    border: none;
    border-radius: 1rem;
    max-width: 2.5rem;
}

.exitBtn:hover {
    transform: scale(1.2);
}

.nav a {
    color: #2C5C91;
    text-decoration: none;
    position: relative;
 
}

.nav a:visited {
    color: #2C5C91;
    text-decoration: none;
}


.nav a {
    color: #2C5C91;
    text-decoration: none;
    position: relative;
}

.nav a:visited {
    color: #2C5C91;
    text-decoration: none;
}

/* .nav a:not(:first-child)::before {
    content:"";
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background-color: #2C5C91;
} */

main {
    padding-top: 8rem;
}

h1 {
    text-align: center;
    padding: 1rem;
}

p {
    text-align: center;
}


.contactForm {
    padding: 1rem;
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 1rem;
    margin: 0 10%;
    justify-content: center;
    align-items: center;
}

.inputField {
    padding: 1rem;
    border-radius: 1rem;
    border:none;
    width: 80vw;
}

button {
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    width: 20vw;
    background-color: rgba(255, 255, 255, 0.7)
}

button:hover {
    transform: scale(1.2);
    background-color:rgba(255, 255, 255, 1)
}

.inputField.valid {
    border: red;
    background-color: red;
}

.errorEmail {
    display: none;
}

.errorEmail.valid {
    display: flex;
}