@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand&display=swap');


body {
  background-color: rgb(245, 245, 245);
  margin: 0;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

* {
  user-select: none;
  -webkit-user-drag: none;
}

#projects {
  display: flex;
  flex-wrap: wrap;
}

#projects-outer {
  display: flex;
  /* align-items: center; */
  justify-content: center;
}


#topbar {
  background-color: #193441;
  width: 100%;
  height: 50px;
  margin: 0;
}

#top-name {
  font-size: 19px;
  font-weight: 300;
  color: #5e8b9f;
  letter-spacing: 0.4px;
  font-family: 'Rubik';
  padding: 12.5px;
  margin-left: 20px;
}

#top-name > .a{
    color: #5e8b9f;
}

#top-name > .b{
  color: #5e8b9f;
  font-weight: 800;
}




/* project square css */

.project-container {
  position: relative;
  /* float: left; */
  color: black;
  /* padding: 10px; */
  text-decoration: none;
  margin: 20px;
  width: 148px;
  height: 148px;
  perspective: 1000px;
}

.project-front,
.project-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  border: 1px solid black;
  transition-duration: 1s;
  transition-timing-function: ease-in-out;
  /* box-shadow: white 0px 0px 10px 2px; */
  background-color: white;
  box-shadow: 15px 15px 25px 0.1px rgba(0, 0, 0, 0.3)
}

.project-front, .project-back {
  border-radius: 10px;
  overflow: hidden;
}

.project-front {
  transform: rotateY(0deg);
  /* background-color: red; */
}

.project-name {
  font-weight: 800;
  font-family: 'Rubik', sans-serif;
}

.project-descripton {
  font-weight: 300;
  font-family: 'Rubik', sans-serif;
}

.project-back {
  transform: rotateY(-180deg);
  /* background-color: blue; */
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
}

.project-container:hover > .project-front {
  transform: rotateY(180deg);
}

.project-container:hover > .project-back {
  transform: rotateY(0deg);
}

.veiwer-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 40px * 2);
  height: calc(100% - 40px * 2);
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.447) 0px 0px 0px 100px;
  border-radius: 10px;
}

.veiwer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

.veiwer-closeButton {
  position: absolute;
  right: -30px;
  top: -30px;
  width: 25px;
  height: 25px;
  background-color: white;
  color: black;
  border-radius: 25px;
  text-align: center;
  line-height: 25px;
  border: 2px solid black;
  user-select: none;
  box-shadow: rgba(0, 0, 0, 0.488) 0px 0px 4px 1px;
}



.loader {
  width: 100px;
  height: 100px;
  border-radius: 100px;
  border-top: 8px solid red;
  border-bottom: 8px solid yellow;
  border-left: 8px solid green;
  border-right: 8px solid blue;
  animation: spin 1s linear 0s infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
}

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