:root {
  --mainBGColor: #b1b0b0;
  --mainColor: #eaeaea;
  --secondaryColor: rgb(238, 238, 238);
  --buttonColor: rgba(10, 10 ,10, .5);

  --borderColor: #c1c1c1;
  --trimColor:#c1c1c1;

  --mainText: black;
  --secondardText: white;
  --toggle:white;
}


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

html,
body {
  padding: 0;
  margin: 0;
  background-color: var(--mainBGColor);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: all .4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  color: var(--mainText);
  font-family: "Russo One", sans-serif;
  font-weight: 400;
  /* text-align: center; */
}

h3{
  margin-bottom: 20px;
}

a,
p,
div,
li,
span,
label,
input,
textarea,
button {
  color: var(--mainText);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  border:none;
}



h1 {
  font-size: 40px;
}
h2 {
  font-size: 36px;
}
h3 {
  font-size: 28px;
}
h4 {
  font-size: 24px;
}
h5 {
  font-size: 20px;
}
h6 {
  font-size: 16px;
}


.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1px;
}


.greeting-wrapper {
  display: grid;
  text-align: center;
  align-content: center;
  min-height: 9em;
}
.auto-type{
  font-size:small;
  height: 10px;
}

.toggles{
  justify-content:flex-end;
  grid-area: toggles;
  display: flex;
  position:absolute;
  top: 10px;
  right: 10px;
}
.clickme1{
  font-family: 'Boogaloo', cursive;
  height: 20px;
  opacity: .2;
  position: absolute;
  left: 18px;
  top: 26px;
  transform: rotate(-45deg);
  font-size: 10px;
}

.mode{
  font-family: 'Boogaloo', cursive;
  height: 20px;
  opacity: .2;
  position: absolute;
  right: 18px;
  top: 31px;
}

.toggle{
  height: 20px;
  width: 40px;
  background-color: grey;
  position: relative;
  border-radius: 20px;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
}
.toggle:hover{
  cursor: pointer;
}

.toggle::before{
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  background: var(--toggle);
  border-radius: 50%;
  left: 3px;
  top: 20%;
  transform: translateY(-10%);
  transition: all .4s ease;
}

.toggle.dark::before{
  left: calc(100% - 15px - 3px);
  background-color: var(--toggle);
}
.tog2{
  color: grey;
}

#content-wrapper {
  background-color: var(--secondaryColor);
  transition: opacity 1s ease;
  border-radius: 10px 10px 0px 0px;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0);
  display: grid;
  /* grid-template-rows: 3em 20em auto; */
  grid-template-columns: auto;
  grid-template-areas:
    "nav-wrapper"
    "about"
    "main";
}

#content-wrapper.mac {
  border-radius: 5px 5px 0px 0px;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  border: 1px solid var(--borderColor);
  transition: opacity 1s ease;
}

#nav-wrapper {
  grid-area: nav-wrapper;
  border-bottom: 1px solid var(--borderColor);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--mainColor);
  position: relative;
  transition: opacity 1s ease;
}
#nav-wrapper.mac {
  border-radius: 5px 5px 0px 0px;
}


#browser-dot .hide {
  opacity: 0;
}

.gear{
  height: 80px;
  position: absolute;
  top:0;
  left: 0;
  transform: translate(-50%, -50%);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

.spinner-wrapper {
  position: absolute;
  top: 0px;
  left: 0px;
  transform-origin: top left;
  animation: spin 10s infinite linear;
  cursor: pointer;
}


.spin-paused {
  animation-play-state: paused;
}

.spin-reverse {
  animation-direction: normal;
}


@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



.navigation {
  padding: 10px;
  display: flex;
}

#mac-wrapper {
  display: flex;
  padding: 7px 10px 10px 10px;
  transition: opacity 1s ease;
}

#mac-wrapper.hide{
  opacity: 0;
}

.browser-dot {
  background-color: #171717;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  margin: 5px;

}
.browser-dot.hide{
  opacity: 0;
}

#mac-1 {
  background-color: #eb6c5d;
}
#mac-2 {
  background-color: #f7bd52;
}
#mac-3 {
  background-color: #63c258;
}

#win-wrapper {
  display: flex;
  padding: 7px 10px 10px 10px;
  transition: opacity 1s ease;
}

#win-wrapper.hide{
  opacity: 0;
}

#browser-dot {
  /* background-color: #171717; */
  height: 15px;
  width: 15px;
  border-radius: 50%;
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  margin: 5px;
}

.win-icon{
  height: 12px;
  width: 12px;
  margin: 5px 15px;
fill: none;
stroke: var(--mainText);
stroke-width: 1px;
}



.about {
  border-bottom: 1px solid var(--borderColor);
  grid-area: about;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#profile-pic {
  display: block;
  margin: 0 auto;
  height: 180px;
  width: 180px;
  object-fit: cover;
  border: 5px solid var( --trimColor);
  border-radius: 50% !important;
}

#social-media {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.dot-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background-color: var(--buttonColor);
  margin: 5px;
  background: var(--buttonColor);
  box-shadow: 0 8px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s linear;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dot-sm:hover,
#email-toggle.active,
#phone-toggle.active,
.cv:hover,
.box:hover,
.box.hover,
.fa-solid:hover{
  box-shadow: 0px 0px 0px 0px black;
  transform: translate(2px,2px);
  opacity: 0.95;
}

/* Media query targeting mobile devices */
@media (max-width: 767px) {
  /* Disable styles on mobile */
  .dot-sm:hover,
  .cv:hover,
  .box:hover{
    /* Reset or disable the styles */
    box-shadow: 0 8px 10px rgba(0,0,0,0.3);
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .fa-solid:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.23);
    transform: none;
    opacity: 1;

  }}



.carousel:hover{
    opacity: 0.9;
    cursor: zoom-in;
}

.image-container{
  position: relative;
}

.icon1{
  position: absolute;
  bottom: 0;
  right: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px; /* Set the size of the icon */
  width: 40px; /* Adjust the width and height of the icon as needed */
  height: 40px;
  opacity: 0.5;
background-image: url("images/expand.svg");
}


.box.active{  
  box-shadow: 0px 0px 0px .2px black;
  transform: translate(1px,1px);
  opacity: 0.5;
}

.icon-size {
  width: 20px;
  height: 20px;
}

.aboutme {
  padding: 20px 25px;
  text-align: center;
}

.cv {
  display: inline-block;
  padding: 15px 20px;
  border: none;
  margin:25px;
  border-radius: 50px;
  background-color: var(--buttonColor);
  color: var(--secondardText);
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  background: var(--buttonColor);
  box-shadow: 0 8px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s linear;
}


.main {
  grid-area: main;
  display: grid;
  /* grid-template-rows: 3em 20em auto; */
  grid-template-columns: 7fr 0fr;
  grid-template-areas: "grid1 grid2";
}



.appcontainer {
  grid-area: grid2;
  text-align: center;
  border-left: 1px solid var(--borderColor);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.app {
  background-color: var(--mainColor);
  border: 1px #63c258;
  margin: 10px;
  height: 50px;
  width: 50px;
  align-items: center;
  justify-content: center;
  display: flex;
  border-radius: 15px;
}

.grid1 {
  grid-area: grid1;
  display: grid;
  /* grid-template-rows: 1fr 1fr; */
  grid-template-areas: "portfolio" "skills"; 
  text-align: center;
  
}

.skills {
  padding-top: 10px;
  grid-area: skills;
  align-items: center;
}

.portfolio {
  /* padding: 20px; */
  grid-area: portfolio;
  border-bottom: 1px solid var(--borderColor);
}



.carousel{
  height: 300px;
  /* width: 80%; */
  border-radius: 3px;
  display: flex;
  justify-content: center;
  border-radius: 10px;
  contain: content;
}



.gallery{
  display: flex;
  justify-content: center;
  position: relative;
  align-items: center;
}

.gallery img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  background-color: var(--buttonColor);
  transition: opacity 0.3s ease-in-out;
  display: block;
  border-radius: 20px;
}


/* .controls {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
line-height: 50px;
  position: relative;
  z-index: 1;
} */

.gallery i{
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  position: relative;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  background: var(--buttonColor);
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transition: transform 0.1s linear;
  z-index: 1;
  color: #dadada;
}

#nextBtn{
  right: 25px;
}
#prevBtn{
left: 25px;
}

.dot-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  margin: 0 5px;
}

.dot.active {
  background-color: black;
}
.image {
  display: none;
}
.image-name{
  text-align: center;
  padding-bottom: 2px;
}
.image-description{
  text-align: center;
  width: 80%;
  margin: auto;
  padding: 20px;
  height: 120px;
}

.skillscontainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: max-content;
  margin: 0 auto;
  padding: 0px 0px 30px 0px;
}

.box {
  justify-content: center;
  align-items: center;
  /* background-color: var(--buttonColor); */
  text-align: center;
  margin: 5px;
  height: 60px;
  width: 60px;
  display: flex;
  border-radius: 15px;
  cursor: pointer;
  background: var(--buttonColor);
  box-shadow: 0 8px 10px rgba(0,0,0,0.3);
  transition: transform 0.1s linear;
}


.scaled-image {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  height: 50px;
  width: 50px;
  border-radius: 10px;
  margin: auto;
  display: block;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}



dialog {
  display: none;
  flex-direction: column;
  position: fixed;
  margin: auto;
  top: 0px;
  left: 0px;
  padding: 10px 30px 0px 30px;
  background-color: var(--toggle);
  border: 1px solid var(--toggle);
  outline: none;
  box-shadow: none;
  max-height: 80vh; /* Set maximum height to 80% of the viewport height */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds dialog height */
  
}

dialog[open] {
  display: flex;
  box-shadow:17px 20px 15px 2px rgba(0,0,0,.3);
}

dialog[close] {
  display: none;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  height: 100vh;
  width: 100%;
  display: block;
  cursor: zoom-out;
}

#dialog-content {
  display: flex;
  /* align-items: center; */
  justify-content: center;
  text-align: center;
  /* flex-wrap: wrap; */
  /* flex-direction: column; */
}

#dialog-content img{
  /* float: unset; */
  /* margin: auto; */
  /* display: flex; */
  /* flex-wrap: wrap; */
  max-width: 45%;
  min-width: 200px;
  min-height: 200px;
  aspect-ratio: 1/1;
  cursor: zoom-in;
  background-color:var(--mainColor);
  margin: 10px;
  object-fit: contain;
  border-radius: 15px;
}



#dialog-content p{
  text-align: center;
  /* color: #dadada; */
  margin-top: 5px;
}



#modal h2,
#modal h5,
#modal a,
#modal span,
#modal li {
  /* color: #dadada; */
}
#modal li {
  text-align: left;
}

#modal{
  width: 90%;
  max-width: 750px;
  text-align: center;
}
#modalheader{
  display: flex;
  justify-content: space-between;
}

.modal-img{
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  height: 50px;
  width: 50px;
  position: absolute;
  right: 8px;
  top: 8px;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

#closeModal {
  position:sticky;
  align-self: end;
  bottom: 0px;
  right: 0px;
  /* transform: translate(50%, 70%); */
  width: 0px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 30px;
  z-index: -1;
}

#closeModal:hover {
opacity: .3;
  background-color: rgba(0, 0, 0, 0.1);
}

#enlarged-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Add a semi-transparent black background */
  display: none; /* Initially hidden */
  cursor: zoom-out;
}

#enlarged-image.active {
  display: block;
  cursor: zoom-out;
  z-index: 99;
}


#enlarged-image img {
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: zoom-out;
  z-index: 99;
}

#enlarged-image-src{
  cursor: zoom-out;
  z-index: 99;
}

.bottom {
  padding: 10px;
  text-align: center;
  background-color: var(--mainBGColor);
}

@media screen and (max-width: 1200px) {
  .main-container {
    width: 95%;
  }

}

/* what happens when it is greater than 750px */
@media screen and (min-width: 769px) { 
  .about {
    border-right: 1px solid var(--borderColor);
    border-bottom: none;
  }
  #content-wrapper {
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
      "nav-wrapper nav-wrapper"
      "about main";
  }
  .box {
    height: 70px;
    width: 70px;
  }
  .gallery img {
    width: 350px;
    height: 350px;
    background-color: var(--buttonColor);
  }
  .carousel{
    height: 350px;
    width: 350px;
    contain: content;

}
}


/* scrollbar fix */

/* Webkit (Chrome, Safari, Opera) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Firefox */
/* Note: Firefox does not support customization of the scroll bar width */
/* You can use a vendor prefix or remove the vendor prefix for future compatibility */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

*::-moz-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

*::-moz-scrollbar-thumb:hover {
  background-color: #555;
}


/*! Email */
.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
  display: none;
}

#alert-box {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--mainColor);
  opacity: 0.9;
  /* border: 1px solid #ccc; */
  padding: 10px;
  z-index: 9999;
  color: var(--mainText);
  /* border-radius: 15px; */
  box-shadow: 0px 0px 5px 2px var(--mainBGColor);
  transition: opacity 2s ease;
}

#email-display{
  /* display: none; */
  font-size: 12px;
  cursor: pointer;
  margin: 0px;
  background-color: #f9e109;
  color: #171717;
  padding: 10px;
}

#phone-display{
  /* display: none; */
  font-size: 12px;
  cursor: pointer;
  margin: 0px;
  background-color: #25D366;
  color: #171717;
  padding: 10px;
  transition: opacity 2s ease;

}
