body{
  box-sizing:border-box;
  margin:0;
  padding:0;
  color:white;
  background:white;
  overflow: hidden;
}

.reels{
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  overflow-x:hidden;
  overflow-y:auto;
  scroll-snap-type: y mandatory;
}

.proj_frame{
  transform:translateY(.3vh);
  scroll-snap-align: start;
  display:flex;
  width:100vw;
  height:99.5vh;
  top:0;
  left:0;
  margin:0;
  overflow:hidden;
}

#scroller{
  overflow:scroll!important;
  width:100vw;
  height:100vh;
  position:absolute;
  top:0;
  left:0;
  margin:0;
  z-index:999;
}

.proj_image{
  z-index:-1;
  height:100%;
}

.info_wrapper{
 /* position:absolute; */
  /*border:2px solid orange; */
  pointer-events: none;
  width:100%;
  bottom:0;
  color:white;
  /*padding:2rem;*/
}

.proj_desc{
  padding-left:.1rem;
}

/* Centered and cropped image */
.proj_frame {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  text-align: left;
}

.proj_image {
  flex: 1; /* Expand the image to fill the container vertically */
  object-fit: cover; /* Crop the image while maintaining its aspect ratio */
  width: 100%; /* Ensure the image takes up the full width */
  height: 100%; /* Ensure the image takes up the full height */
}

/* Info wrapper at the bottom */
.info_wrapper {
  background: rgba(0, 0, 0, 0.0); /* Add a semi-transparent background */
  color: #fff; /* Set text color to white */
  /*padding: 10px;  Adjust padding as needed */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  transition: opacity 0.2s; /* Add a smooth transition effect for visibility */
}

/* Show the info wrapper on hover */
.proj_frame:hover .info_wrapper {
  opacity: 1;
}

/* TODO Adjust styling for title and description */
.proj_title {
    font-size: clamp(2rem, 8vw, 7rem);
}

.proj_desc {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.logo{
  width:100%;
  position:fixed;
  z-index:999;
}

.logo img{
  width:50%;
  filter:invert();
}














.admin-menu {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
}

#admin-icon {
  background-color: #f4f4f4;
  border: none;
  cursor: pointer;
  font-size: 24px;
  padding: 10px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content.show {
  display: block; /* Show when 'show' class is added */
}

.dropdown-content button {
  background-color: #f9f9f9;
  border: none;
  color: black;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: block;
}

.dropdown-content button:hover {
  background-color: #ddd;
}

#modifyTextDialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border: 2px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dialog-content textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
}

.dialog-content button {
  margin-right: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
}

.drop-area {
  border: 2px dashed #ccc;
  padding: 20px;
  cursor: pointer;
}

.drop-area.hover {
  border-color: #333;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
}

.drop-area {
  border: 2px dashed #ccc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
  cursor: pointer; /* Show pointer on hover */
}

.drop-area.hover {
  border-color: #000; /* Change color on hover */
}
/* ---------- Repository slides (link_type "repo") ---------- */
.repo_slide {
  --repo-bg: #f6f7f9;
  --repo-fg: #16181d;
  --repo-muted: #5b6270;
  --repo-card: #ffffff;
  --repo-border: #d9dde3;
  --repo-accent: #1f5bd1;
  background: var(--repo-bg);
  color: var(--repo-fg);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 90px 16px 40px;
}
@media (prefers-color-scheme: dark) {
  .repo_slide {
    --repo-bg: #0f1216;
    --repo-fg: #e7ebf0;
    --repo-muted: #9aa3ae;
    --repo-card: #171b21;
    --repo-border: #2b313a;
    --repo-accent: #7aa7ff;
  }
}
.repo_inner {
  width: 100%;
  max-width: 900px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.repo_provider { margin: 0; color: var(--repo-muted); font-size: 0.9rem; }
.repo_title { margin: 0; font-size: clamp(1.6rem, 4vw, 2.6rem); }
.repo_title a { color: inherit; text-decoration: none; }
.repo_title a:hover, .repo_title a:focus-visible { text-decoration: underline; }
.repo_desc, .repo_writeup { margin: 0; line-height: 1.5; }
.repo_writeup { color: var(--repo-muted); white-space: pre-line; }
.repo_meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--repo-muted); font-size: 0.9rem; }
.repo_topics { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.repo_topics li { font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--repo-border); }
.repo_readme {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  max-height: 48vh;
  overflow: hidden;
  background: var(--repo-card);
  border: 1px solid var(--repo-border);
  border-radius: 10px;
  padding: 4px 20px;
  cursor: pointer;
}
.repo_readme::after { /* fade out: the README continues on the repository page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  background: linear-gradient(to bottom, transparent, var(--repo-card));
  pointer-events: none;
}
.repo_actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.repo_button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--repo-accent);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  line-height: 1.2;
}
@media (prefers-color-scheme: dark) { .repo_button { color: #0f1216; } }
.repo_button.secondary { background: transparent; color: var(--repo-fg); border: 1px solid var(--repo-border); }
.repo_button:focus-visible, .repo_title a:focus-visible { outline: 3px solid var(--repo-accent); outline-offset: 3px; }
.repo_error { margin: 0; color: #b42318; font-size: 0.85rem; }
@media (max-width: 600px) {
  .repo_slide { padding: 80px 16px 24px; }
  .repo_readme { max-height: 38vh; padding: 2px 14px; }
}

/* Visible part of the slide picture (admin: "Bildausschnitt"). The full picture stays in the
   page in full resolution; only its position inside the frame changes. Values are set per slide
   as CSS variables by landing.js; portrait screens (phones) can have their own crop. */
.proj_image {
  object-position: var(--focus, 50% 50%);
}
@media (orientation: portrait) {
  .proj_image {
    object-position: var(--focus-portrait, var(--focus, 50% 50%));
  }
}
