/* General */

* {
  font-family: "Libre Baskerville", serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  color: white;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

p {
  font-family: "Noto Sans KR", sans-serif;
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

.bold {
  font-weight: bold;
}

h1 {
  font-size: 1.4rem;
  text-decoration: underline;
  padding-bottom: 1rem;
}

/* Nav bar */

nav {
  width: 100%;
  position: fixed;
  background-color: #183781;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

nav > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
}

nav > ul a {
  display: block;
  padding: 2.5rem 1.2rem;
  min-width: 150px;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  text-align: center;
}

nav > ul a:hover {
  background-color: #45567d;
}

.tutoring-logo {
  max-width: 140px;
  z-index: 2;
  margin: 1rem;
  align-self: flex-start;
}

@media (max-width: 1100px) {
  .tutoring-logo {
    max-width: none;
    width: 15vh;
    height: 8vh;
    padding: 1vh;
    margin: 0.5vh;
  }
}

.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  opacity: 0.9;
}

.dropdown-content ul {
  flex-direction: column;
  background-color: #183781;
  min-width: 100px;
  list-style-type: none;
}

.dropdown-content a {
  display: block;
  padding: 0.6rem;
  text-decoration: none;
  color: white;
  font-size: 1rem;
  text-align: center;
}

.dropdown:hover .dropdown-content {
  display: block;
}

@media (max-width: 1100px) {
  #web-menu {
    display: none;
  }
}

#mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  #mobile-menu {
    display: initial;
  }
}

/*Mobile Menu*/
/* Dropdown Button */
.dropbtn {
  color: #183781;
  margin: auto;
  border: none;
  cursor: pointer;
  width: 4.5vh;
  height: 4.5vh;
}

/* The container <div> - needed to position the dropdown content */
.mobile-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.mobile-dropdown-content {
  display: none;
  position: absolute;
  background-color: #183781;
  opacity: 0.9;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  top: 9vh;
  left: 0;
  width: 100%;
}

/* Links inside the dropdown */
.mobile-dropdown-content a {
  color: white;
  font-size: 1.2rem;
  padding: 1rem 0.5rem;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
}

/* Change color of dropdown links on hover */
.mobile-dropdown-content a:hover {
  background-color: #45567d;
}

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
  display: block;
}

/* Body */

#welcome-section {
  width: 100%;
  background-color: white;
  line-height: 1.5;
  padding: 12rem 0rem 7rem 7rem;
  display: flex;
}

@media (max-width: 1100px) {
  #welcome-section {
    flex-wrap: wrap;
    padding: 7rem 1rem 3rem 1rem;
  }
}

#welcome-section p,
h1 {
  color: black;
}

#text-container {
  width: 50%;
}

@media (max-width: 1100px) {
  #text-container {
    width: 90%;
    margin: auto;
    padding: 1rem;
  }
}

#contacts {
  padding-top: 2rem;
}

/* Contact Form */

form {
  padding-top: 1rem;
}

.contact-field {
  padding: 0.75rem 0;
}

label,
input,
textarea {
  color: black;
}

label {
  display: block;
  padding-bottom: 0.5rem;
}

input {
  width: 35%;
  height: 2rem;
}

textarea {
  margin: 0.5rem 0;
  padding: 0.5rem;
  width: 100%;
  height: 30vh;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  input {
    width: 100%;
  }

  input,
  textarea {
    font-size: 1rem;
  }
}

button {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  margin: 0.75rem 0;
  color: black;
  border-radius: 5%;
  border: none;
  background-color: rgba(162, 182, 226, 0.5);
}

button:hover {
  background-color: rgba(162, 182, 226, 0.8);
}

#image-container {
  width: 50%;
  text-align: center;
}

@media (max-width: 1100px) {
  #image-container {
    width: 100%;
    padding-top: 3rem;
  }
}

#image-container img {
  max-width: 60%;
}

@media (max-width: 1100px) {
  #image-container img {
    max-width: 75%;
  }
}

/* Footer */

footer {
  width: 100%;
  background-color: #183781;
  display: flex;
  justify-content: space-evenly;
  color: white;
}

footer p {
  padding: 2rem;
  font-size: 1.2rem;
}

#year {
  font-family: "Noto Sans KR", sans-serif;
}
