/* Background Image 1 & 2 */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  /* background-image: url("website_bg.png"); */
  background-size: cover;
  background-repeat: no-repeat;
  cursor: url('curser.png?v=1') 64 64, auto !important;
  overflow: hidden; /* Prevent body scrolling */
  transition: background-image 3.5s ease-in-out;
  /* background-color: rgb(230, 230, 230); */
}

#popup-trigger:hover {
  filter: invert(100%);
  transition: filter 0.5s ease;
  filter: brightness(0);
}

/* Updated CSS for scrolling */
.opened-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  z-index: 9999;
  display: none;
  justify-content: flex-start; 
  align-items: flex-start; 
  /* background: rgba(0, 0, 0, 0.8);  */
  /* backdrop-filter: blur(40px); */
}

/* .background-inverter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  filter: invert(1); 
  z-index: -1; 
} */

.background-inverter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Transparent background */
  filter: invert(1); /* Invert the colors */
  z-index: -1; /* Ensure it's behind the image */
}

.scroll-box {
  display: block;
  /* justify-content: center; */
  /* align-items: flex-start; */
  width: 100%;
  height: auto;
  padding: 20px;

}

.scroll-box img {
  width: 100%;
  height: auto;
display: block;
}

/* Specific rules for "3_Content" to make it full screen height */
.scroll-box img#openedImage[src='3_Content.png'] {
  height: 100vh;
  width: auto;
}

.show {
  display: block;
}

.hide {
  display: none;
}

#toolsLink {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: monospace;
  font-size: 20px;
  color: white;
  text-decoration: none;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border-radius: 5px;
  z-index: 2; /* Ensure it's above other elements */
}

#toolsLink:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.some-element {
  width: 100px;
  height: 100px;
  background-color: red;
  cursor: url('anfassen.png?v=1') 10 10, grab !important;
}

.large-image {
  width: 1000%;
  height: 1000%;
}

#myCanvas {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1000;
}

.startimage {
  cursor: pointer;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #00000024;
  display: flex;
  justify-content: center;
  align-items: center;
}

.startimage img {
  width: 50%;
  height: auto;
}

/* Default: hide phone image */
#startImagePhone {
  display: none;
}

/* Show phone image on smaller screens */
@media screen and (max-width: 768px) {
  #startImageDesktop {
    display: none;
  }
  #startImagePhone {
    display: block;
  }
}

/* Responsive image sizes */
#imageContainer img {
  width: 20%;  /* Default size */
  height: auto;
  transition: width 0.5s ease;
}

@media screen and (max-width: 1200px) {
  #imageContainer img {
    width: 25%;
  }
}

@media screen and (max-width: 992px) {
  #imageContainer img {
    width: 33%;
  }
}

@media screen and (max-width: 768px) {
  #imageContainer img {
    width: 50%;
  }
}

@media screen and (max-width: 576px) {
  #imageContainer img {
    width: 100%;
  }
}


#popup2 {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 215px;
  background-color: rgb(255, 253, 208);
  border: 2px solid rgb(136, 0, 255);
  box-shadow: 0px 0px 60px 0px rgb(255, 253, 208);
  font-family: monospace;
  padding: 20px;
  box-sizing: border-box;
  z-index: 30000;
  display: none;
  border-radius: 30px;
}

#screentime-link {
  text-decoration: none;
}

#screentime-container {
  position: relative;
  width: 100%;
  height: 100%;
}

#screentime {
  font-family: monospace;
  position: absolute;
  bottom: 4px; /* Adjust as needed */
  left: 2px; /* Adjust as needed */
  letter-spacing: 2px;
  color: rgb(136, 0, 255);
  font-size: 20px;
  cursor: pointer;
  z-index: 10000; /* Ensure it's above other elements */
  background-color: rgb(255, 253, 208);
}

@media screen and (max-width: 1000px) {
  #screentime {
    bottom: 4px; /* Adjust as needed */
    left: 4px; /* Adjust as needed */
  }
}

@media screen and (max-width: 500px) {
  #screentime {
    bottom: 4px; /* Adjust as needed */
    left: 4px; /* Adjust as needed */
  }
}

#Impressum {
  font-family: monospace;
  position: absolute;
  bottom: 4px; /* Adjust as needed */
  right: 4px; /* Adjust as needed */
  color: rgb(136, 0, 255);
  font-size: 14px;
  cursor: pointer;
  z-index: 10000; /* Ensure it's above other elements */
  text-decoration: none;
}

@media screen and (max-width: 1000px) {
  #Impressum {
    bottom: 4px; /* Adjust as needed */
    right: 4px; /* Adjust as needed */
  }
}

@media screen and (max-width: 500px) {
  #Impressum {
    bottom: 4px; /* Adjust as needed */
    right: 4px; /* Adjust as needed */
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(255, 253, 208);
  }

  #myCanvas {
    height: auto;
  }

  body {
    height: auto;
    width: 100%;
  }
}

::selection {
  background: rgb(74, 255, 11);
  color: rgb(136, 0, 255);
}

@media screen and (max-width: 500px) {
  body {
    height: auto;
    width: 100%;
  }
}

#mainContainer {
  display: flex;
  align-items: flex-start;
}

#contentImageContainer {
  padding-top: 0;
  position: fixed;
  right: 0;
  width: 100%;
  height: auto;
  overflow-y: auto;
  z-index: 1;
}

#contentImageContainer img {
  margin-top: 0;
  padding-top: 0;
}

#imageContainer {
  position: relative;
  padding: 20px;
  width: 100%;
  height: auto;
  min-height: 100vh; /* Ensure the container fills the viewport height */
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* Ensure the images are centered */
}

#imageContainer img {
  width: 20%;  /* Default size */
  /* max-width: 20%;  */
  transition: width 0.5s ease;
  height: auto; 
  /* object-fit: contain; */
  margin: 10px;
  border: 1px solid rgb(136, 0, 255);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 #8800FF;
  border-radius: 10px;
  box-sizing: border-box;
  filter: grayscale(100%) sepia(100%) hue-rotate(1100deg) invert(80%) saturate(2000%) saturate(1.5);
  transition: filter 0.5s ease, width 0.5s ease, height 0.5s ease; /* Ensure smooth resizing */
}

#imageContainer img:hover {
  filter: blur(0px);
}


.right {
  position: absolute;
  right: 0px;
  padding: 2px;
}

.hg {
  z-index: -1;
}

.blume {
  position: relative;
  z-index: 1;
  height: 200px;
}

.blume:hover {
  cursor: url('angefasst.png?v=1') 64 64, auto !important;
}

.info {
  position: absolute;
  top: -8px;
  left: -18px;
}

#popup {
  position: fixed;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: auto;
  background-color: rgb(136, 0, 255);
  border: 2px solid rgb(136, 0, 255);
  box-shadow: 0px 0px 60px 0px rgb(255, 253, 208);
  font-family: monospace;
  padding: 5px;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  color: rgb(255, 253, 208);
}

#popup .title {
  font-size: 20px;
  color: rgb(255, 253, 208) !important;
  font-weight: bold;
  margin-bottom: 15px;
}

#popup .content {
  font-size: 11.5px;
  line-height: 1.25;
  color: rgb(255, 253, 208) !important;
}

#popup .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  z-index: 9998;
  color: #000000;
}

#popup3 {
  position: fixed;
  top: 30%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 520px;
  background-color: rgb(255, 253, 208);
  box-shadow: 0px 0px 60px 0px rgb(136, 0, 255);
  font-family: monospace;
  font-size: 15px;
  font-weight: 600;
  line-height: 160%;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
  display: none;
  color: rgb(0, 0, 0); /* Ensure text is visible */
}

/* Smartphone popup & popup3 */
@media screen and (max-width: 768px) and (orientation: portrait) {
  #popup, #popup3 {
    width: 90%; /* Adjust as needed for better fit */
    left: 80%;
    transform: translateX(-50%);
    position: relative;
    top: 0;
    margin: 10px auto; /* Add some margin for spacing */
  }
  
  #popup3 {
    margin-top: 20px; /* Add space between popup and popup3 */
  }
}

/* Add media query for small screens in landscape mode */
@media screen and (max-width: 768px) and (orientation: landscape) {
  #popup, #popup3 {
    width: 45%; /* Adjust as needed for better fit */
    position: relative;
    top: 0;
    margin: 10px;
    transform: none;
  }
  
  #popup3 {
    margin-left: 10px; /* Add space between popup and popup3 */
  }
}


#overlay3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #39393981;
  z-index: 9998;
  display: none;
}

.large-symbol {
  font-size: 3em;
  vertical-align: sub;
  position: relative;
  top: 4.5px;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgb(234, 0, 255);
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #39393981;
  z-index: 9998;
  display: none;
}

.image-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#popup-trigger {
  z-index: 9999;
}

#content-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  font-family: Arial, sans-serif;
}

.content-element {
  color: rgb(229, 255, 0);
  font-family: monospace;
  font-size: 40px;
  font-weight: 700;
  text-align: left;
  margin-top: -460px;
  margin-right: 40px;
  margin-left: 1300px;
  transform: rotate(-3deg);
  padding: 10px;
  position: relative;
  z-index: 10000;
  overflow: auto;
  white-space: pre-line;
  text-shadow: 1px 1px 2px rgb(238, 255, 0), 0 0 1em rgb(255, 255, 255), 0 0 0.2em rgb(14, 9, 9);
}

.piracylink {
  color: rgb(136, 0, 255);
  text-decoration: none;
}

.piracylink:hover {
  text-decoration: underline;
}
