@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

:root {
  --header: url("svg/websitebanner-10.svg");
  --html-background-color: #c02a2a;
  --body-background-color: #242424;
  --text-color: #fff;
  --nav-background-color: rgba(59, 59, 59, 0.8);
  --link-color: #57b5d4;
  --link-hover-color: #1f90ad;
  --accent-color: #4dcfff;
  --modal-background-color: rgba(0, 0, 0, 0.8);
  --modal-image-border-radius: 10px;
  --portfolio-item-background-color: rgba(255, 255, 255, 0.1);
  --portfolio-item-hover-background-color: rgba(255, 255, 255, 0.2);
  --service-background-color: rgba(255, 255, 255, 0.1);
  --blog-post-background-color: rgba(255, 255, 255, 0.1);
  --blog-post-hover-background-color: rgba(255, 255, 255, 0.2);
  --border: 1px solid rgba(146, 146, 146, 0.3);
}

.light-theme {
  --header: url("svg/headerblack.svg");
  --html-background-color: #f5f5f5;
  --body-background-color: #ffffff;
  --text-color: #000000;
  --nav-background-color: rgba(138, 138, 138, 0.2);
  --link-color: #008080;
  --link-hover-color: #005757;
  --accent-color: #0099cc;
  --modal-background-color: rgba(255, 255, 255, 0.8);
  --modal-image-border-radius: 0;
  --portfolio-item-background-color: rgba(0, 0, 0, 0.2);
  --portfolio-item-hover-background-color: rgba(0, 0, 0, 0.2);
  --service-background-color: rgba(0, 0, 0, 0.1);
  --blog-post-background-color: rgba(0, 0, 0, 0.1);
  --blog-post-hover-background-color: rgba(0, 0, 0, 0.2);
  --mailicon: url("svg/mailicon.svg");
  --phoneicon: url("svg/phoneicon.svg");
  --locationicon: url("svg/locationicon.svg");
  --border: 1px solid rgba(112, 112, 112, 0.3);
}

body {
  padding: 0;
  font-family: "acumin-variable", sans-serif;
  font-variation-settings: "slnt" 0, "wdth" 100, "wght" 194.2857;
  background-color: var(--body-background-color);
  color: var(--text-color);
  max-width: 1000px;
  margin: 0 auto;
  min-height: 100vh;
  transition: background-color 0.3s;
}

/* For WebKit-based browsers */
::-webkit-scrollbar {
  width: 12px;
  /* Width of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background: #888;
  /* Color of the thumb */
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
  /* Color of the thumb on hover */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  /* Width of the scrollbar */
  scrollbar-color: #888 #eee;
  /* thumb and track color */
}

/* Navigation styles */
nav {
  position: -webkit-sticky;
  position: sticky;
  padding: 5px;
  top: 20px;
  background-color: var(--nav-background-color);
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  width: 90%;
  z-index: 99;
  overflow-x: hidden;
  backdrop-filter: blur(10px) brightness(0.9);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: var(--border);
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
  nav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.nav-items a {
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.nav-items {
  padding: 5px;
  display: flex;
  align-items: center; /* changed from stretch to center */
  justify-content: center;
  flex-wrap: wrap;
}


nav div,
.nav-button {
  font-size: 23px;
  display: flex;
  /* make these items flex containers too */
  align-items: center;
  /* center their contents vertically */
  justify-content: center;
  /* and horizontally */
}

nav div {
  margin: 0 10px;
  font-size: 23px;
}

@media (max-width: 367px) {
  nav div {
    margin: 0 5px;
    font-size: 20px;
  }
}

#myLinks {
  display: none;
}

#myLinks div {
  padding-bottom: 9px;
}

.nav-button {
  width: 25px;
  height: 25px;
}

/* Image in-line with text */
.in-line {
  height: 1em;
  width: auto;
}

/* Hotbar logo */
.logo img {
  height: 40px;
  width: 40px;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .logo img {
    height: 30px;
    width: 30px;
  }
}

/* About section styles */
.about-section {
  display: flex;
  text-align: left;
}

.about-section p {
  text-align: left;
}

.rounded-image {
  border-radius: 10px;
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
  /* Add this line */
  margin: 20px;
  border: var(--border);
}

/* Responsive styles */
@media (max-width: 768px) {
  .about-section {
    display: block;
    text-align: center;
    align-items: center;
  }

  .rounded-image {
    width: 90%;
    align-self: center;
    margin: 0 auto;
    display: block;
  }

  .about-section p {
    text-align: center;
  }
}

/* Social Icon styling */
.center-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.center-icons a {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.center-icons a:hover {
  transform: scale(1.1);
}

/* Link styles */
a {
  text-decoration: none;
  font-weight: bold;
  color: var(--link-color);
  transition: color 0.1s;
}

a:hover {
  color: var(--link-hover-color);
}

a:active {
  color: var(--text-color);
}

/* Main content styles */
main {
  padding: 30px;
  padding-bottom: 0;
}

h2,
h3 {
  text-align: center;
  color: var(--text-color);
}

hr {
  height: 4px;
  background: linear-gradient(to right, #1172ba, #5fbcd6);
  border: none;
  max-width: 540px;
}

p {
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: normal;
  color: var(--text-color);
  text-align: center;
}

.centered-text {
  text-align: center;
}

/* List styles */
li {
  padding-top: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* Other title styles */
.title-other {
  display: block;
  margin: 0 auto;
  max-width: 600px;
  width: 90%;
  content: var(--header);
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Contact box styles */
.contact-box {
  position: relative;
  transform: translateX(-50%);
  left: 50%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 0px;
  padding-top: 0;
  margin-bottom: 20px;
  max-width: 500px;
}

/* Icon column styles */
.icon-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-right: 20px;
}

.icon-column .icon {
  height: 35px;
  width: 35px;
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Info column styles */
.info-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info-column p {
  text-align: center;
  font-weight: 200;
}

.info-column a {
  font-weight: 200;
}

/* Portfolio styles */
.portfolio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch
}

.item {
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--portfolio-item-background-color);
  border-radius: 10px;
  margin-bottom: 20px;
  width: 100%;
  border: var(--border);
}

@media (min-width: 768px) {
  .item {
    flex-basis: calc(50% - 20px);
  }
}

.item h3 {
  padding: 5px;
  padding-bottom: 20px;
  margin: 0;
  font-size: 24px;
  color: var(--text-color);
  text-align: center;
}

.item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.item p {
  text-align: left;
}

.mailicon {
  content: var(--mailicon);
}

.phoneicon {
  fill: var(--text-color);
}

.locationicon {
  content: var(--locationicon);
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--modal-background-color);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--modal-image-border-radius);
}

.modal:target {
  opacity: 1;
  visibility: visible;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: var(--text-color);
  text-decoration: none;
}

.close:hover {
  color: #ff0000;
}

h3:target:before {
  content: "";
  display: block;
  height: 160px;
  margin-top: -160px;
}

/* Additional styles */
.portfolio p {
  color: var(--text-color);
  text-align: center;
}

.ent-link {
  color: var(--link-color);
}

/* Services styles */
.services-section {
  text-align: center;
  margin-bottom: 40px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service {
  flex-basis: 100%;
  box-sizing: border-box;
  padding: 20px;
  background-color: var(--service-background-color);
  border-radius: 10px;
  margin-bottom: 20px;
  border: var(--border);
}

@media (min-width: 768px) {
  .service {
    flex-basis: calc(50% - 20px);
  }
}

.service .icon {
  height: 48px;
  width: 48px;
  color: var(--link-color);
}

.service h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service p {
  text-align: center;
}

/* Page title styles */
h1 {
  text-align: center;
}

.image-sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  /* Adjust this for space between sections */
  justify-items: center;
}

@media (max-width: 768px) {

  /* Adjust this value based on when you want to switch to stacked layout */
  .image-sections {
    grid-template-columns: 1fr;
  }
}

section {
  padding: 15px;
}

.rounded-ish {
  width: 70%;
  height: auto;
  border-radius: 10px;
  max-height: 500px;
  object-fit: cover;
  border: var(--border);
}

code {
  color: #f8f9fa;
}

.givheader h1 {
  font-size: 2em;
  margin-bottom: 0;
}

.givheader p {
  margin-top: 0.5em;
  color: #6c757d;
}

.givheader a {
  margin: 5px;
  color: var(--text-color);
  font-size: 18px;
}

.givheader a:hover {
  color: var(--link-hover-color);
}

.lazyload {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.lazyloaded {
  opacity: 1;
}

footer {
  background-color: var(--nav-background-color);
  bottom: 0;
  margin: 0;
  padding: 1px;
  border-radius: 10px;
  padding-top: 0;
  padding-bottom: 0;
  width: 100%;
}

footer p {
  font-size: 18px;
  padding: 8px;
  border: var(--border);
  border-radius: 10px;
}

.blog-post {
  background-color: var(--nav-background-color);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 15px;
  border: var(--border);
  transition: 0.3s ease-in-out;
}

.blog-post:hover {
  background-color: var(--blog-post-hover-background-color);
}

.blog-post h2 {
  color: var(--link-color)
}

.email-address::after {
  content: "Click to Reveal";
}

.email-address:focus {
  outline: none;
  /* visual indicator for TAB key users */
  text-decoration: underline 2px #0079ff;
}

.email-address:focus::after {
  content: "mattiev300@gmail.com";
}