body {
  background-size: 40px 40px;
  background-image: radial-gradient(circle, #000000 1px, rgba(0, 0, 0, 0) 1px);
  opacity: 0;
  transition: opacity 3s;
  height: 100vh; /* Full viewport height */
  margin: 0; /* Remove default margin */
}



.modal-content {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem 1.5rem 0.5rem;
  background: linear-gradient(to right, #e8b95b, #e8b95b);
  border-radius: 1rem 1rem 0 0;
  color: white;
}

.modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.2s;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem 1.5rem;
  font-size: 1.1rem;
  color: #495057;
}

.modal-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.5rem;
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-secondary {
  background-color: #e9ecef;
  border: none;
  color: #495057;
}

.btn-secondary:hover {
  background-color: #dee2e6;
}

.btn-danger {
  background: linear-gradient(to right, #ff6b6b, #ff8787);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(to right, #fa5252, #ff6b6b);
  transform: translateY(-1px);
}

.warning-icon {
  font-size: 3rem;
  color: #e8b95b;
  margin-bottom: 1rem;
}

.modal.fade .modal-dialog {
  transform: scale(0.95);
  transition: transform 0.2s ease-out;
}

.modal.show .modal-dialog {
  transform: scale(1);
}




ml-auto, .mx-auto {
  margin-left: auto !important;
}

.mr-auto, .mx-auto {
  margin-right: auto !important;
}
.navbar{
  background-color: transparent;
  border: none;
  margin-top: 5%;
  display: inline-block;
    margin-left: 5%;
    margin-right: 5%;
    width: 90%;
}
.navbar-nav {
  
  display: inline-block;
}
.navbar-header {
  margin-left: 10%;
}
.navbar-nav>li {
   display: inline-block;
}

.navbar-brand{
  display: inline-block;

}
.navbar-brand>img{
  display: inline-block;
  margin-left:50px;
}



.container-student{
  text-align: center;
  margin-top:8%;
  margin-left: 25%;
  margin-right: 25%;
  position: relative;
}

.container-proiecte{
  text-align: center;
  margin-top:3%;
}

body {
  background-color: #e9e7de;
  
}
mark {
  background-color: rgb(235, 225, 181);
  color: black;

}
/* Dark Mode */
html[data-bs-theme='dark'] {
  background-color: #121212; /* Dark background */
}

html[data-bs-theme='dark'] body {
  background-image: radial-gradient(circle, #ffffff 1px, rgba(255, 255, 255, 0) 1px);
  background-color: #181818; /* Dark background */
  color: #e1e1e1; /* Light text */
  
}

html[data-bs-theme='dark'] .navbar {
  background-color: #33333300; /* Dark navbar */
}

html[data-bs-theme='dark'] .navbar-brand, 
html[data-bs-theme='dark'] .navbar-nav .nav-link {
  color: #f1f1f1; /* Light text for navbar in dark mode */
}

html[data-bs-theme='dark'] .navbar-nav .nav-link:hover {
  color: #F36F25; /* Hover effect for dark mode */
}
html[data-bs-theme='dark'] .lasama {
  color: #ffffff; /* Hover effect for dark mode */
  background-color: #00000000;
}
html[data-bs-theme='dark'] .test {
  color: #ffffff; /* Hover effect for dark mode */
  background-color: #00000000;
}


html[data-bs-theme='dark'] .ubb {
  background-color: #ffffff; /* Dark modal background */
  color: #050505; /* Light text */
}
html[data-bs-theme='dark'] .modal-header {
  background: linear-gradient(to right, #ff6b6b, #ff6b6b);
}

html[data-bs-theme='dark'] .modal-footer {
  background-color: #ffffff; /* Dark modal footer */
}
html[data-bs-theme='dark'] .modal-body {
  background-color: #ffffff; /* Dark modal footer */
}
html[data-bs-theme='dark'] .btn-secondary {
  background-color: #a7a7a7;
  color: #e1e1e1; /* Light text */
}

html[data-bs-theme='dark'] .btn-secondary:hover {
  background-color: #857f7f; /* Darker on hover */
}

html[data-bs-theme='dark'] .switch > span {
  color: #fff; /* White text for switch */
}

html[data-bs-theme='dark'] .negru {
  color: #e1e1e1; /* Light text for dark mode */
}

html[data-bs-theme='dark'] .card {
  background-color: #2b2b2b;
  color: #e1e1e1;
}

html[data-bs-theme='dark'] .cardd {
  background-color: #444;
  color: #e1e1e1;
}

html[data-bs-theme='dark'] .text-divider {
  color: #e1e1e1;
}

/* For the branch cards */
html[data-bs-theme='dark'] .cardd.card-left::after,
html[data-bs-theme='dark'] .cardd.card-right::after {
  background: #333; /* Dark background for card content */
}

/* Customize specific icons or other elements if needed */
html[data-bs-theme='dark'] .fa-2xl {
  color: #f1f1f1; /* Light icons in dark mode */
}
html[data-bs-theme='dark'] .daa {
  color: #f1f1f1; /* Light icons in dark mode */
}
html[data-bs-theme='dark'] mark {
  background-color: rgb(255, 255, 255);
  color: black;

}

.noticia-text-regular {
  font-family: "Noticia Text", serif;
  font-weight: 400;
  font-style: normal;
}

.noticia-text-bold {
  font-family: "Noticia Text", serif;
  font-weight: 700;
  font-style: normal;
}

.noticia-text-regular-italic {
  font-family: "Noticia Text", serif;
  font-weight: 400;
  font-style: italic;
}

.noticia-text-bold-italic {
  font-family: "Noticia Text", serif;
  font-weight: 700;
  font-style: italic;
}

*{
  font-family: "Noticia Text", serif;
  font-weight: 400;
  font-style: normal;
}

.negru{
  color: #1e2203;
}

.test{
  margin-top: 1%;
  background-color: #e9e7de;
}

.lasama{
  margin-bottom: 1%;
  background-color: #e9e7de;
}




.text-divider {
  margin: 2em 25%;
  line-height: 0;
  text-align: center;
  width: 50%;
  position: relative;
}

.text-divider span {
  background-color: #e9e7de;
  padding: 0.5em;
  position: relative;
  z-index: 1;
}

.text-divider:before {
  content: " ";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, #1e2203, transparent);
  transform: translateY(-50%);
  z-index: 0;
}




.loader-wrapper {
  z-index: 99 !important;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #e9e7de;
  display:flex;
  justify-content: center;
  align-items: center;
}

.loader-inner {
  vertical-align: top;
  display: inline-block;
  width: 100%;
  background-color: #fff;
  animation: loader-inner 1s infinite ease-in;
}



@keyframes loader-inner {
  0% { height: 0%;}
  25% { height: 0%;}
  50% { height: 100%;}
  75% { height: 100%;}
  100% { height: 0%;}
}


.ubb {
  text-decoration: none;
  display: inline;
  color: #18272F;
  
  font-weight: 700;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

.ubb::before {
  text-decoration: none; 

  content: '';
  background-color: #fcf8e3;
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 8px;
  z-index: -1;
  transition: all .3s ease-in-out;
}

.ubb:hover::before {
  text-decoration: none; 

  bottom: 0;
  height: 100%;
}







.switch {
  position: relative;
  display: inline-block;
  margin: 0 5px;
}

.switch > span {
  position: absolute;
  top: 14px;
  pointer-events: none;
  font-family: 'Helvetica', Arial, sans-serif;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .06);
  width: 50%;
  text-align: center;
}

input.check-toggle-round-flat:checked ~ .off {
  color: #F36F25;
}

input.check-toggle-round-flat:checked ~ .on {
  color: #fff;
}

.switch > span.on {
  left: 0;
  padding-left: 2px;
  color: #F36F25;
}

.switch > span.off {
  right: 0;
  padding-right: 4px;
  color: #fff;
}

.check-toggle {
  position: absolute;
  margin-left: -9999px;
  visibility: hidden;
}
.check-toggle + label {
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input.check-toggle-round-flat + label {
  padding: 2px;
  width: 97px;
  height: 35px;
  background-color: #F36F25;
  -webkit-border-radius: 60px;
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
}
input.check-toggle-round-flat + label:before, input.check-toggle-round-flat + label:after {
  display: block;
  position: absolute;
  content: "";
}

input.check-toggle-round-flat + label:before {
  top: 2px;
  left: 2px;
  bottom: 2px;
  right: 2px;
  background-color: #F36F25;
  
  -moz-border-radius: 60px;
  -ms-border-radius: 60px;
  -o-border-radius: 60px;
  border-radius: 60px;
}
input.check-toggle-round-flat + label:after {
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: 48px;
  background-color: #fff;
  -webkit-border-radius: 52px;
  -moz-border-radius: 52px;
  -ms-border-radius: 52px;
  -o-border-radius: 52px;
  border-radius: 52px;
  -webkit-transition: margin 0.2s;
  -moz-transition: margin 0.2s;
  -o-transition: margin 0.2s;
  transition: margin 0.2s;
}


input.check-toggle-round-flat:checked + label:after {
  margin-left: 44px;
}




.container-student {
  position: relative;
  text-align: center;
}

.text-element {
  padding: 10px 20px;
  color: white;
  display: inline-block;
  font-size: 3.5vmin;
  cursor: pointer;
  margin-top: 100px;
}

.branch {
  position: absolute;
  top: 60%;
  width: 0;
  height: 2px;
  background-color: black;
  transition: all 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.branch.left {
  left: 0;
  transform: translateY(-50%);
}

.branch.right {
  right: 0;
  transform: translateY(-50%);
}

.card {
  background-color: white;
  border: 1px solid #ddd;
  padding: 20px;
  display: none;
  position: absolute;
  top: -50%;
  white-space: nowrap;
}

.card-left {
  right: 100%;
}

.card-right {
  left: 100%;
}


.text-element:hover ~ .branch.left {
  width: 24%;
  opacity: 1;
}

.text-element:hover ~ .branch.left .card-left {
  display: block;
}

.text-element:hover ~ .branch.right {
  width: 24%;
  opacity: 1;
}

.text-element:hover ~ .branch.right .card-right {
  display: block;
}


.cardd{
  height: 300px;
  width: 300px;
  position: relative;
  display: grid;
  place-items: center;
  background-color: #b1a0a0;
  overflow: hidden;
  border-radius: 10px;
  text-align: center;
  padding: 20px;
  top: -50%;
  white-space: nowrap;
}
.cardd::before{
  content: '';
  width: 120px;
  height: 600px;
  left: 60px;  
  top: -120px;
  background: linear-gradient(#73e2ee,#c86cec);
  position: absolute;
  animation: animate 5s linear infinite;
}



.cardd.card-right::after{
  
  content: "Projects \A \A You can check out my projects on my GitHub page. \A \ARight now some of the projects I am working on are still in the making, but I will make them visible in the near future.";
  font-size: 14px;
  white-space: pre;
  display: inline-block;
  text-wrap: balance;
  word-wrap: break-word;
  font-family: "Noticia Text", serif;
  font-weight: 300;
  background-image:url(https://www.ubbcluj.ro/images/logo/logo_cs.png);
  background-size: 100% 100%;
  position: absolute;
  background: #ebe4e4;
  inset: 5px;
  border-radius: 5px;
}


.cardd.card-left::after{
  
  content: "Education \A \A I am currently studying mathematics and\A computer science at The Faculty of \A Mathematics and Computer Science, BBU. ";
  font-size: 14px;
  white-space: pre;
  display: inline-block;
  text-wrap: balance;
  word-wrap: break-word;
  font-family: "Noticia Text", serif;
  font-weight: 300;
  background-image:url(https://www.ubbcluj.ro/images/logo/logo_cs.png);
  background-size: 100% 100%;
  position: absolute;
  background: #ebe4e4;
  inset: 5px;
  border-radius: 5px;
}



@keyframes animate{
  0%{
      transform: rotate(0deg);
  }

  100%{
      transform: rotate(360deg);
  }
}

.center-card{
  display: inline-block;
  padding: 1%;
  padding-top: 0;
}