:root {
  --primary-bg-color: #f4f4f9;
  --box-background-color: #318fee;
  --contrast-color: #d3d9db;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: large;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.example::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.example {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: var(--primary-bg-color);
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  background-color: var(--box-background-color);
  color: var(--primary-bg-color);
  padding-top: 5em;
  padding-bottom: 5em;
}

.profile-info {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  justify-content: center;
  gap: 8px;
  font-size: 200%;
}

.profile-info p {
  margin-left: 20px;
}

h1 {
  font-size: 200%;
}

#profile-picture-wrapper {
  display: flex;
  width: 16em;
  height: 16em;
  justify-content: center;
  align-content: center;
}

.profile-picture {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
  margin: 20px;
}

.subtitle {
  font-size: 1.2em;
  color: var(--primary-bg-color);
}

main {
  padding: 30px 8vw;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 15px;
  justify-self: center;
  align-content: center;
  max-width: 80%;
}

section {
  margin-bottom: 50px;
}

.tech-stack-items {
  justify-self: center;
  width: 70%;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.tech-stack-items div {
  border: 2px solid var(--contrast-color);
  border-radius: 5px;
  padding: 3px;
  margin: 5px;
  background-color: var(--contrast-color);
  font-size: large;
  font-weight: bold;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8em;
}

#principles p {
  text-align: center;
}


#principles ul {
  justify-self: center;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
}

ol {
  justify-self: center;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 5px;
}

ul, ol {
  margin-top: 2vh;
  margin-bottom: 1vh;
}

.sideways-arrange {
  display: flex;
  flex-wrap: wrap; /* Added to handle wrapping */
  gap: 20px;
}

.project-box {
  align-self: center;
  background-color: var(--box-background-color);
  background-position-x: center;
  background-position-y: center;
  background-size: cover;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
  flex: 1 0 calc(50% - 20px); /* Adjusted for responsiveness */
}

.project-title {
  font-size: larger;
}

.hidden-span {
  display: none;
}

.visible-span {
  display: inline;
}

a {
  color: var(--box-background-color);
}

.project-box-content {
  background-color: var(--primary-bg-color);
  margin-top: 200px;
  padding: 10px;
  border-top: 4px solid var(--box-background-color);
  align-self: flex-end;
}

.project-box:hover {
  transform: translateY(-5px);
}

.project-description:hover .hidden-span {
  display: inline;
}

.project-description:hover .visible-span {
  display: none;
}

footer {
  text-align: center;
  background-color: var(--contrast-color);
  color: #333;
  padding: 20px 0;
  margin-top: auto;
  width: 100%;
  flex-basis: 100%;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-icons a,img{
  width: 40px;
  height: 40px;
}

.project-image {
  border-radius: 8px;
  max-width: 300px; /* Adjusted for responsiveness */
  height: auto;
  margin-bottom: 10px;
}

@media (max-width: 638px) {
  p {
    text-align: center;
  }

  .profile-info {
    text-align: center;
  }

  .profile-info p {
    margin-left: 0px;
  }
}

@media (max-width: 1020px) {
  .profile-picture {
    width: 150px;
    height: 150px;
  }

  h2 {
    font-size: 1.5em;
  }

  .project-box {
    flex: 1 0 calc(100% - 20px); /* Adjusted for small screens */
  }

  .profile-info {
    font-size: 110%;
  }

  #profile-picture-wrapper {
    width: 13em;
    height: 13em;
  }
}

@media (max-width: 400px) {
  main {
    padding: 30px 0;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  #profile-picture-wrapper {
    width: 11em;
    height: 11em;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .project-box {
    flex: 1 0 calc(50% - 20px); /* Adjusted for medium screens */
  }
}

@media (min-width: 2000px) {
    .project-box {
        flex: 1 0 calc(25% - 20px)
    }

    main {
      padding: 30px 8vw;
    }
}

