:root {
  --theme-color: #7daed3;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Work Sans', sans-serif;
  text-align: center;
  margin: 0;
  padding: 40px 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 5px;
}

nav {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: black;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

nav a:not(.active):hover {
  color: var(--theme-color);
  font-style: italic;
}

nav a.active {
  text-decoration: underline;
  text-decoration-color: var(--theme-color);
  text-decoration-thickness: 2px;      
  text-underline-offset: 2px;         
  font-style: normal;
  color: black;
}

.circle-container {
  width: 200px;
  height: 200px;
  background-color: var(--theme-color);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 30px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circle-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
transition: transform 0.4s ease;
}

.circle-container:hover img {
  transform: scale(1.1);
}

.text-block {
  max-width: 550px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 10px;
}

a {
  color: var(--theme-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: black;
}

footer {
  margin-top: 20px;
  padding: 20px;
  font-size: 0.85rem;          
  color: #777;             
}

.email-icon {
  width: 17px;
  height: 17px;
  vertical-align: middle;
  margin-left: 7px;
  transition: 0.3s ease;
  color: #777;
}

.email-wrapper {
  white-space: nowrap;
}

.email-wrapper:hover .email-icon {
  content: url('images/email_happy.svg');
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 40px auto 20px;
  gap: 10px;
  font-size: 1rem;
}

.contact-form label {
  text-align: left;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #777;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--theme-color);
}

.contact-form button {
  margin-top: 10px;
  padding: 12px 24px;
  background-color: var(--theme-color);
  color: black;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s ease;
  width: fit-content;
  align-self: center;
}

.contact-form button:hover {
  background-color: black;
  color: white;
}

.status-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.status-message.success {
  color: green;
}

.status-message.error {
  color: red;
}

.duck-404 {
  max-width: 150px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.warning-icon {
  max-width: 70px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 0;
  padding-bottom: 0;
}

.header-404 {
  font-size: 2rem;
  color: var(--theme-color);
}

::selection {
  background: #cbdeed;
  color: #000000;
}

::-moz-selection {
  background: #cbdeed;
  color: #000000;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  nav a {
    font-size: 1rem;
  }

  .circle-container {
    width: 160px;
    height: 160px;
  }

  .text-block {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  .circle-container {
    width: 140px;
    height: 140px;
  }

  .text-block {
    font-size: 0.9rem;
  }
}
