body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  background-color: black;
}

body {
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}

.navbar {
  width: 100%;
  height: 18vh;
  position: fixed;
}

.navbar-brand {
  padding: 2vh;
  padding-left: 6vh;
}

.nav-thingy {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.circular-image {
  border-radius: 70%;
  border-color: white;
  width: 80px;
  height: 80px;
  object-fit: cover;
  padding: 2vh;
}

.navbar-menu {
  padding: 2vh;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  padding-right: 4vh;
}

.my-navbar-background {
  height: 18%;
}

.flex-container {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding-top: 3%;
  padding-bottom: 3%;
}

.flex-item-right {
  display: flex;
  width: 26%;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
}

.flex-item-left {
  display: flex;
  width: 65%;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
}

/* Style for button groups to ensure they stay on one line */
.buttons.has-addons {
  flex-wrap: nowrap;
  width: fit-content;
  margin: 0 auto;
}

.buttons.has-addons .button {
  font-size: 0.9rem;
  padding: 0 0.5rem;
  white-space: nowrap;
}

.flex-projects {
  display: flex;
  flex-direction: column;
  width: 66%;
  height: 100%;
  /* padding: 4vh; */
  justify-content: flex-start;
  align-items: center;
}

.flex-credentials {
  display: flex;
  flex-direction: column;
  /* padding: 4vh; */
  width: 25%;
  height: 100%;
  justify-content: flex-start;
  align-items: center;
}

.item {
  display: flex;
  justify-content: center;
  align-content: center;
  /* background-color: red; */
}

.pdf {
  width: 100%;
  height: 26vh;
  position: relative;
  z-index: 1;
}

.pdf-overlay {
  position: absolute;
  background-color: rgba(255, 255, 255, 0);
  cursor: pointer;
  z-index: 2;
  width: 34vh;
  height: 26vh;
  align-self: center;
}

.project-details {
  padding: 2vh;
  /* background-color:blueviolet; */
}

.box-spacing {
  margin-left: 2vh;
  margin-right: 2vh;
  background-color: #14161a;
}

/* Only for mobile*/
.info-section {
  display: none;
  padding: 2vh;
  padding-left: 6vh;
  color: white;
  align-items: center;
  justify-content: start;
}
.cellphone-title {
  display: none;
}
.cellphone-hr {
  display: none;
  background-color: white;
}

@media (max-width: 768px) {
  body,
  html {
    background-color: black;
    width: 100%;
    color: white;
  }

  .navbar {
    display: none;
  }

  .info-section {
    display: flex;
  }

  .cellphone-title {
    display: flex;
  }

  .cellphone-hr {
    display: flex;
    /* padding-left: 10vh;
        padding-right: 2vh; */
  }

  .computer-title {
    display: none;
    align-content: center;
    justify-content: center;
  }

  .my-navbar-background {
    display: none;
  }

  .buttons.has-addons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    /* Keep the buttons at a comfortable size on mobile */
    transform: scale(0.95);
    margin: 0 auto;
  }

  .flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3vh;
    padding-bottom: 3vh;
  }

  .flex-projects {
    display: flex;
    flex-direction: column;
    width: 85%;
    height: 100%;
    align-items: center;
  }

  .flex-credentials {
    display: flex;
    flex-direction: column;
    width: 85%;
    height: 100%;
    align-items: center;
  }

  .flex-item-left {
    display: none;
  }

  .flex-item-right {
    display: flex;
    padding: 3vh;
    width: 80%;
    justify-content: center;
    align-items: center;
  }

  .table {
    transform: scale(0.9); /* Reduces size to 90% on smaller screens */
    max-width: 100%;
  }

  .footer {
    overflow-x: hidden;
  }

  .enlarge-button:hover {
    transition: none;
    transform: none;
  }

  /* * {
        border: 1px solid red;  
        margin: 5px;      
        box-sizing: border-box; 
    } */
}

/* ANIMATION */
.enlarge-button {
  transition: transform 0.5s ease;
}

.enlarge-button:hover {
  transform: scale(1.04);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.edit-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10%;
}

.edit-item {
  display: flex;
  justify-content: flex-start;
  align-content: center;
  padding: 4vh;
}

/* * {
        border: 1px solid red;  
        margin: 5px;      
        box-sizing: border-box; 
    } */
