@import url("https://fonts.googleapis.com/css?family=Poppins");

@media print {

  html,
  body {
    display: none;
    /* hide whole page */
  }
}

body {
  font-family: "Poppins", sans-serif;
  padding: 0px;
  margin: 0px;
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
}

#rightImage {
  width: 100%;
  height: 95vh;
  background: url("") center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#loading {
  width: 100vw;
  height: 100vh;
  position: fixed;
  background: black;
  z-index: 999;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

#spinner {
  animation: rotate 0.56s infinite linear;
  width: 50px;
  height: 50px;
  border: 12px solid rgb(102, 255, 196);
  border-bottom: 12px solid #fff;
  border-radius: 50%;
  margin: 0;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

header {
  width: 92vw;
  padding: 6vh 4vw;
  position: fixed;
  font-weight: bold;
  transition: 0.4s ease-in-out;
  z-index: 2;
}

header table {
  width: 100%;
}

#logo {
  width: 20%;
}

#navigation {
  width: 80%;
}

#magnify {
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  position: fixed;
  z-index: 4;
  display: none;
  flex-direction: column;
  justify-content: center;
}

#magnify h1 {
  position: absolute;
  top: 0;
  right: 0;
  margin: 20px 40px;
  color: #fff;
  transition: 0.4s ease-in-out;
}


/* Glitch */
/* @import url('https://fonts.googleapis.com/css?family=Fira+Mono:400');

h1{ 
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #131313;
  color: #fff;
  font-size: 96px;
  font-family: 'Fira Mono', monospace;
  letter-spacing: -7px;
}

div{
  animation: glitch 1s linear infinite;
}

@keyframes glitch{
  2%,64%{
    transform: translate(2px,0) skew(0deg);
  }
  4%,60%{
    transform: translate(-2px,0) skew(0deg);
  }
  62%{
    transform: translate(0,0) skew(5deg); 
  }
}

div:before,
div:after{
  content: attr(title);
  position: absolute;
  left: 0;
}

div:before{
  animation: glitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop{
  2%,64%{
    transform: translate(2px,-2px);
  }
  4%,60%{
    transform: translate(-2px,2px);
  }
  62%{
    transform: translate(13px,-1px) skew(-13deg); 
  }
}

div:after{
  animation: glitchBotom 1.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom{
  2%,64%{
    transform: translate(-2px,0);
  }
  4%,60%{
    transform: translate(-2px,0);
  }
  62%{
    transform: translate(-22px,5px) skew(21deg); 
  }
} */
/*Glitch end*/

#magnify h1:hover {
  color: rgb(255, 255, 255);
  cursor: pointer;
}

/* #img_here {
  width: 90%;
  height: 90%;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  margin: 0px auto;
} */

#img_here {
  width: 90%;
  height: 90%;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  margin: 0 auto;
  display: block;
  /* Ensure visibility */
}


#logo {
  font-size: 24px;
}

#navigation {
  text-align: right;
}

#right-image {
  width: 100%;
  height: 65vh;
  background:
    url("database/2024/WeeklyRenders/spiral_weekly_post.jpg") center center;
  background-size: cover;
  background-repeat: no-repeat;
}

#img_description {
  color: white;
  text-align: center;
  font-size: 18px;
  margin-top: 15px;
  display: none;
  /* Initially hidden */
}


#navigation a {
  color: inherit;
  text-decoration: none;
  padding: 5px 10px;
  border-bottom: 2px solid transparent;
  margin-left: 4vw;
  transition: 0.4s ease-in-out;
}

#navigation a:hover {
  border-bottom: 2px solid #ffffff;
}

#top_part {
  width: 100%;
  border: 2vh solid #fff;
}

#top_part tr td {
  width: 50%;
  color: #fff;
}

#portfolio h2 {
  word-wrap: break-word;
  color: rgb(255, 255, 255);
}

#about {
  width: 84% !important;
  height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0px 8%;
}

#about h1 {
  font-size: 35px;
  word-wrap: break-word;
  color: #fff;
}

#about table {
  width: 70%;
  margin-top: 4vh;
  color: #fff;
}

#about table tr td {
  width: 20% !important;
  text-align: left;
  color: #fff;
}

.social {
  color: rgb(102, 255, 196);
  font-size: 23px;
  padding: 12px 17px;
  border-radius: 50%;
  background: transparent;
  transition: 0.4s ease-in-out;
  font-weight: bold;
  margin: 0px 8px;
}

.social:hover {
  cursor: pointer;
  color: #fff;
  background: rgb(102, 255, 196);
  box-shadow: 0px 10px 30px rgba(255, 66, 107, 0.8);
}

.btn_one {
  font-size: 18px;
  font-family: "Poppins", sans-serif;
  color: rgb(102, 255, 196);
  background: #fff;
  border: 3px solid rgb(102, 255, 196);
  padding: 8px 40px;
  width: 35%;
  border-radius: 80px;
  font-weight: bold;
  margin: 2vh 0px;
  transition: 0.4s ease-in-out;
}

.btn_one:hover {
  box-shadow: 0px 10px 30px rgba(255, 44, 90, 0.8);
  cursor: pointer;
  color: #fff;
  background: rgb(102, 255, 196);
}

#rightImage {
  width: 100%;
  height: 95vh;
  background-size: cover;
  background-repeat: no-repeat;
}

#work {
  width: 92vw;
  padding: 6vh 4vw;
  font-weight: bold;
}

#bestworks h1 {
  padding: 5px 0px;
  border-bottom: 4px solid rgb(102, 255, 196);
  width: 6%;
  color: #fff;
}

#work h1 {
  padding: 5px 0px;
  border-bottom: 4px solid rgb(102, 255, 196);
  width: 6%;
  color: #fff;
}

#photos {
  width: 100%;
  columns: 3;
  column-gap: 4%;
  z-index: 1;
  transition: 0.4s ease-in-out;
}

#photos img {
  width: 100%;
  height: auto;
  margin: 4.5% 0px;
  transition: 0.4s ease-in-out;
}

#photos img:hover {
  transform: scale(1.1);
  cursor: pointer;
}

#bio {
  width: 92vw;
  padding: 6vh 4vw;
  font-weight: bold;
  color: #fff;
}

#bio h1 {
  padding: 5px 0px;
  border-bottom: 4px solid rgb(102, 255, 196);
  width: 8%;
  color: #fff;
}

#contact {
  width: 92vw;
  padding: 6vh 4vw;
  color: #fff;
}

#contact h1 {
  padding: 5px 0px;
  border-bottom: 4px solid rgb(102, 255, 196);
  width: 10%;
  color: #fff;
}

#contact table {
  width: 100%;
  color: #fff;
}

#contact table tr td {
  width: 50%;
}

#inner_div table {
  width: 100%;
}

#inner_div table tr td {
  font-weight: bold;
}

#inner_table tr td {
  padding: 10px 20px !important;
}

#address {
  position: relative;
  top: -25px;
  left: 30px;
}

#footer {
  width: 100%;
  padding: 10vh 0px;
  text-align: center;
  font-weight: bold;
  color: #fff;
}

#footer a {
  color: rgb(102, 255, 196);
  text-decoration: none;
}

::placeholder {
  color: #ffffff;
}

button:focus {
  outline: none;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 1000px) {
  #photos {
    columns: 1;
    column-gap: 2%;
  }

  #photos img {
    margin: 2% 0px;
  }

  #photos img:hover {
    transform: scale(1);
    cursor: pointer;
  }

  #rightImage {
    display: none;
  }

  #top_part {
    border: 0px;
  }

  #top_part tr td {
    width: 100%;
    text-align: center;
    color: #fff;
  }

  #about {
    width: 92% !important;
    height: 75vh;
    padding-top: 20vh !important;
    text-align: center;
    padding: 0px 4%;
  }

  #about table {
    width: 100%;
    margin-top: 6vh;
  }

  #about table tr td {
    text-align: center;
  }

  .btn_one {
    padding: 6px 30px;
    width: 60%;
    margin: 4vh auto;
    box-shadow: 0px 10px 20px rgba(255, 44, 90, 0.8);
    background: rgb(102, 255, 196);
    color: #fff;
  }

  .btn_one:hover {
    box-shadow: 0px 10px 40px rgba(255, 44, 90, 0.8);
    cursor: pointer;
  }

  #contact table tr td {
    width: 100%;
    display: block;
  }

  #inner_table tr td {
    padding: 10px 0px !important;
  }

  #work h1 {
    width: 19%;
  }

  #contact h1 {
    width: 33%;
  }

  header {
    width: 96vw;
    padding: 4vh 2vw;
    position: absolute;
  }

  #header table tr td {
    width: 100%;
    display: block;
    text-align: center;
    padding: 15px 0px;
  }

  :root {
    --size: 15px;
  }

  html {
    cursor: none;
    user-select: none;
  }

  .title {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    text-shadow: 2px 2px #000;
    color: #fff;
  }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
  }

  .hidden {
    display: none;
  }

  .warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
  }

  .warning-content {
    text-align: center;
  }

  .warning-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .warning-content p {
    font-size: 1.2rem;
  }

  #mainContent {
    filter: none;
  }

  .blurred {
    filter: blur(10px);
  }

  .image-container {
    position: relative;
    display: inline-block;
  }

  .image-quote {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 5px;
    box-sizing: border-box;
    display: none;
    /* Initially hidden */
  }

  .image-container.magnified .image-quote {
    display: block !important;
    /* Show when magnified */
  }

  .image-container img {
    display: block;
  }

  .image-container .render-number {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
    border-radius: 50%;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
  }

  .modal-content img {
    width: 100%;
  }

  .title-input {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    box-sizing: border-box;
  }

  .image-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    text-emphasis-color: white;
  }

  .image-number {
    color: white;
  }

  /* Solution 1: CSS Implementation */
  .image-summary {
    position: absolute;
    bottom: -30px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    display: none;
    transition: 0.3s all ease;
  }

  .image-container.magnified .image-summary {
    display: block;
    animation: slideUp 0.3s ease forwards;
  }

  @keyframes slideUp {
    from {
      bottom: -30px;
      opacity: 0;
    }

    to {
      bottom: 0;
      opacity: 1;
    }
  }


}