* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  font-family: Arial, sans-serif;
}

.navbar {
  display: flex;
  justify-content: center;
  gap: 20px;
  background-color: #333;
  padding: 10px 0;
}

/* index styling starts here */
article {
  max-width: 500px;
  width: 90%;
  min-height: 150px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #007bff;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
header h2 {
  font-size: 1.7rem;
  text-align: justify;
  color: #f7f0f0;
}
a {
  color: #f7f0f0;
  font-size: 18px;
  text-decoration: none;
}
a:focus {
  outline: 2px solid #007bff;
  outline-offset: 4px;
  border-radius: 4px;
}
h1 {
  margin-bottom: 20px;
  font-size: 2.5rem;
  color: #f7f0f0;
}
figure img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
}
p {
  margin-top: 20px;
  font-size: 1.2rem;
  color: #f7f0f0;
}
nav ul {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  list-style: none;
}
.hobbies-dislikes {
  margin-top: 30px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}
.hobbies-dislikes section h3 {
  color: white;
  font-size: 20px;
}
.hobbies-dislikes section ul {
  width: 200px;
  margin-top: 10px;
  border-radius: 10px;
  color: #f7f0f0;
  font-size: 18px;
  list-style: none;
  text-align: left;
  border: 4px solid #ccc;
  padding: 10px;
  line-height: 1.8rem;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
/* index styling ends here */

/* contact styling starts here */

form {
  max-width: 500px;
  width: 90%;
  margin: 50px auto;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #007bff;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}
form h1 {
  text-align: center;
  margin-bottom: 30px;
}
form label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #f7f0f0;
}
form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
}
form button {
  width: 100%;
  padding: 10px 20px;
  font-size: 1.2rem;
  color: #f7f0f0;
  background-color: #333;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
form textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  margin-bottom: 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
}
form button:hover {
  background-color: #555;
}

.error {
  color: #ff4d4d;
  font-size: 0.9rem;
  margin-top: -15px;
  margin-bottom: 15px;
  display: none;
}
.success {
  color: #4bb543;
  font-size: 1rem;
  margin-top: 10px;
}

/* contact styling ends here */

/* about styling starts here */
.about-page {
  max-width: 800px;
  width: 90%;
  margin: 50px auto;
  padding: 20px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: #007bff;
  -webkit-border-radius: 30px;
  -moz-border-radius: 30px;
  -ms-border-radius: 30px;
  -o-border-radius: 30px;
}
.about-page h2 {
  text-align: center;
  text-decoration: underline black;
  margin-bottom: 20px;
  color: #f7f0f0;
}
.about-page p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f7f0f0;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
  padding-bottom: 20px;
  line-height: 35px;
}
.about-page span {
  font-style: italic;
  color: #f7f0f0;
  font-size: 20px;
}

/* about styling ends here */

/* media query for 768px */
@media (min-width: 768px) {
  figure {
    flex: 1;
  }
  header,
  p,
  nav,
  main {
    flex: 2;
    padding-left: 20px;
  }
}
/* ends here */

/* media query for 320px and 620px */
@media (min-width: 320px) and (max-width: 620px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
/* ends here */
