/* Reset default styles */
body,
html {
  margin: 0;
  padding: 0;
}

/* Basic styles */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #004dab;
  margin: 0; /* Remove default margin */
  transition: background-color 0.3s ease;
}

p {
  font-size: medium;
}

.dm-sans {
  font-family: "DM Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
}

header {
  color: white;
  padding: 10px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

a {
  color: blue; /* Default color */
  text-decoration: none; /* Remove underline */
}

a:hover {
  color: red; /* Color on hover */
  text-decoration: dotted;
}

.header-content {
  display: flex; /* Use flexbox for easier alignment */
  white-space: nowrap;
  animation: scroll 9s linear infinite;
}

.header-content h1 {
  margin: 0;
  font-size: 1em;
  padding: 0 20px; /* Add padding to the sides for spacing */
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Adjust based on the total width of the content */
}

.portfolio {
  max-width: 100%; /* Ensure portfolio takes full width */
  padding: 0px;
  box-sizing: border-box; /* Include padding in width calculation */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.project {
  width: 100%;
  background-color: #fff;
}

.accordion {
  background-color: #004dab;
  color: lightgray;
  cursor: pointer;
  padding: 15px;
  width: 100%; /* Make accordion buttons span full width */
  text-align: left;
  border: none;
  outline: none;
  transition: background-color 0.1s ease;
  box-sizing: border-box; /* Include padding in width calculation */
}
.accordion:hover {
  color: red; /* Color on hover */
  text-decoration: dotted;
}

/* Active state for accordion */
.accordion.active {
  background-color: white;
  font-weight: bold;
  font-size: large;
  color: black;
  cursor: s-resize;
  transition: background-color 0.1s ease;
}

.accordion.cloud.active {
  background-color: #b6e9fa;
  font-weight: bold;
  font-size: large;
  color: black;
  cursor: s-resize;
}

#info {
  font-size: xx-large;
  font-weight: 400;
}
.panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  display: hidden;
}

.scroll-container {
  cursor: e-resize;
  display: block;
  width: 100%;
  overflow-x: scroll;
  white-space: nowrap;
  height: auto;
  padding: 10px;
  margin: 0;
  padding-top: 8px;
  padding-bottom: 8px;
  z-index: 5;
  background-color: white;

  scroll-behavior: smooth;
}

.scrollable-container .content {
  display: inline-block;
}

.scrollable-container::-webkit-scrollbar:horizontal {
  height: 11px;
}

.scrollable-nav::-webkit-scrollbar:horizontal {
  height: 11px;
}

.scrollable-nav::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 2px solid green;
  /* should match background, can't be transparent */
  background-color: rgba(0, 0, 0, 0.5);
}
.scrollable-nav::-webkit-scrollbar {
  -webkit-appearance: none;
}

.content {
  display: inline-block; /* Display horizontally */
  vertical-align: top;
  width: 300px; /* Set a fixed width for each project content */
  margin: 10px;
  white-space: normal; /* Allow text wrapping */
  /* border: 1px solid #ccc; Border style */
  color: black;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 79%;
}

.video {
  padding: 177.78% 0 0 0;
  position: relative;
}
.year {
  font-stretch: extra-condensed;
  font-size: x-small;
  padding-left: 10px;
}

.contact-me {
  background-color: #fe0;
}

.coming-soon {
  text-align: center;
}

#cloud {
  background-color: #b6e9fa;
}

footer,
body,
header,
.accordion {
  transition: background-color 0.3s ease; /* Smooth transition for background color change */
}

#color-toggle-circle {
  position: fixed;
  top: 80%;
  right: 100px; /* Adjust position as needed */
  width: 40px;
  height: 40px;
  background-color: black; /* Initial color of the circle */
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease; /* Smooth transition for circle color change */
}

footer {
  position: fixed;
  bottom: 3em; /* Adjust as needed to position from bottom */
  right: 10em; /* Adjust as needed to position from right */
  font-size: 0.2em; /* Adjust font size as needed */
  color: lightgray; /* Initial text color */
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .content {
    display: inline-block; /* Display horizontally */
    vertical-align: top;
    width: 300px; /* Set a fixed width for each project content */
    margin: 10px;
    white-space: normal; /* Allow text wrapping */
  }
  .content img {
    max-width: 100%; /* Ensure images occupy full width on smaller screens */
  }
}
