/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: darkslategrey;
}

header {
  display: flex;
  justify-content: space-between; /* BC left, icons right */
  align-items: center;
  background-color: darkslategray;
  padding: 4px 12px; /* thin header */
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ddd;
  font-family: sans-serif;
  font-size: 1.5rem;
  color: white;
}


a {
    color: white;
    text-decoration: none;
    font-family: cursive;
    transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: darkslategray;
  text-decoration: underline;
  color: white;
  font-size: 1.7rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-family: cursive;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: darkslategray;
  min-width: 120px;
  border-radius: 6px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 1001;
}

.dropdown-content a {
  color: white;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
  font-size: 1rem;
}

.dropdown-content a:hover {
  background-color: darkcyan;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

.header-icons {
  display: flex;
  gap: 20px;
}

.header-icons img {
  width: 28px; /* smaller icons */
  height: 28px;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.header-icons img:hover {
  opacity: 0.7;
}

#intro {
  display: flex;
  flex-direction: column; /* default stack for small screens */
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

#title {
  font-size: 1rem;
}

/* Base styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 1rem;
  color: antiquewhite;
}

/* Headings */
h1, h2 {
  margin-bottom: 0.5rem;
  color: white;
  text-align: center;
}

/* Image */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border-radius: 8px;
}

/* Sections */
#div1, #div2, #div3 {
  background: darkslategray;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Lists */
ul {
  margin-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Responsive text */
p {
  font-size: 1rem;
  text-align: center;
}

.contact-card {
  max-width: 500px;
  margin: auto;
  background: darkslategray;
  color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
}

input, textarea {
  padding: 0.8rem;
  border-radius: 8px;
  background: darkslategray;
  color: white;
  border: 1px solid;
  border-color: white;
}

textarea {
  font: arial;
  resize: vertical;
  min-height: 250px;
}

.form-buttons {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.send-btn {
  background: darkcyan;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-size: 1.2rem;
}

.clear-btn {
  background: transparent;
  border: 1px solid #ccc;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  color: white;
}

#status{
  display: flex;
  visibility: hidden;
  flex-direction: column;
  align-items: center;
}

.contact-info {
  margin-top: 1rem;
}

.contact-info h2 {
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-family: arial;
}

h3 {
  font-size: 1.4rem;
  text-decoration: underline;
  margin-bottom:1rem;
}

footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-size: 0.1rem;
  color: white;
  padding: 2rem 10rem;
}

.footerleft{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.linkgroups{
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.1rem;
  gap:15px;
}

.linkgroups a {
  font-family: sans-serif;
}

.linkrow{
  font-size: 1rem;
  gap:15px;
  display:flex;
  flex-direction: row;
  gap: 2rem;
}

.footerright{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footericons{
  display: flex;
  flex-direction: row;
  align-content: right;
  gap: 1rem;
}

.footericons img{
  width: 50px;
  height: 50px;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footericons img:hover{
  opacity: 0.7;
}

#footer {
  align-items: center;
  font-family: cursive;
  padding: 1.5rem;
}


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  h1 {
    font-family: cursive;
    font-size: 3.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3{
    font-size: 1rem
  }

  .linkrow {
    font-size: 0.8rem;
  }

  #connect{
    margin-bottom: -0.2rem;
  }

  p, li {
    font-size: 0.95rem;
  }

  #subject {
    max-width: 100%
  }

  footer{
    margin: 0.4rem;
    padding: 0;
  }

  .footericons img{
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0.5rem;
  }

  h1 {
    font-family: cursive;
    font-size: 3rem;
  }

  h2 {
    font-size: 1rem;
  }

  img {
    width: 100%;
  }
  header {
    font-size: 1.2rem;
    padding: 3px 8px;
  }

  #connect{
    margin-top: 0.2rem;
    margin-bottom: -0.2rem;
  }

  footer{
    flex-direction: column;
    gap: 1rem;
  }

  .header-icons img {
    width: 24px;
    height: 24px;
  }

  .form-row {
    flex-direction: column;
    gap: .2rem
  }

  #subject {
    max-width: 100%
  }
}

@media (min-width: 992px) {
  #intro {
    flex-direction: row; /* side by side */
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: auto;
    gap: 10rem;
    text-align: left;
    flex: 1;
  }

  h1 {
    font-family: cursive;
    font-size: 4rem;
  }

  #introtext {
    flex: 1;
  }

  #title {
    font-size: 1.5rem;
  }

  #introimg {
    flex: 1;
    text-align: right;
  }

  #introimg {
    max-width: 400px;
  }
}
