/* css styles */
.button-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: white;
  color: #2c3e50;
  text-decoration: none; /* Removes the text underline */
  border-radius: 10px;
  border-width: 2px;
  border-style: solid;
  border-color: #2c3e50;
  font-family: sans-serif;
  text-align: center;
  margin-top: 5px;
  margin-bottom: 2px;
  margin-right: 5px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.button-link:hover {
  background-color: #2c3e50; /* Darkens the button on hover */
  color: white;
  border-color: #2c3e50;
  transition: background-color 0.3s, color 0.3s;
}
.button-link:active {
  background-color: #2c3e50; /* Darkens the button on hover */
  color: white;
  border-color: #2c3e50;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.info-box {
  background-color: #D6E4ED;
  color: black;
  border-width: 2px;
  border: 2px solid #2c3e50;
  border-radius: 10px;
  font-family: sans-serif;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

.stacked-list dt {
  font-weight: bold;
  margin-top: 15px; /* Adds space before the next name */
}

.stacked-list dd {
  margin: 0 0 2px 0 !important;   /* Forces bottom margin to 2px, resets everything else */
  padding: 0 !important;
  color: #555;      /* Optional: makes the description slightly lighter */
}


/* R packages software styles */

.pyramid-container {
  display: flex;
  align-items: center;
  min-height: 400px;
  flex-wrap: wrap;
}
.pyramid {
  display: inline-block;
  padding-right: 70px;
  padding-left: 70px;
  border-right-style: solid;
  border-right-color: rgba(127, 126, 209, 0.3);
  border-right-width: 1px;
  margin-right: 40px;
  width: 470px;
  min-width: 470px;
  height: 100%;
}
.hexa {
  margin-right: 7px;
  margin-left: 7px;
  vertical-align: middle;
  height: 100px !important
}
.pyramid:hover .hexa:not(:hover) {
  opacity: 0.3;
  transition: opacity 0.2s ease-in-out;
}
.pyramid:has(.hexa:hover) .hexa:not(:hover) {
  opacity: 0.3;
  transition: opacity 0.2s ease-in-out;
}
.pyramid .hexa:hover {
  transform: scale(1.25);
  opacity: 1;
  transition: transform 0.2s ease-in-out;
}
.first-row {
  margin-top: 10px;
  margin-left: 115px;
  height: 122px;
}
.second-row {
  margin-top: -55px;
  margin-left: 65px;
  padding-top: 20px;
  height: 122px;
}
.third-row {
  margin-top: -15px;
  margin-left: 14px;
  height: 122px;
}

.first-row, .second-row, .third-row { font-size: 0; }

#hexagon-text {
  width: 350px;
  margin-left: 40px;
  font-family: sans-serif;
  flex: 1;
}

.info {
  display: none;
}

.info.active {
  display: block;
}

.lightbold {
  font-weight: 700;
}

/* ####### Shiny app carousel ######## */

.carousel {
  width: 650px;
  height: 344px;
  margin: 50px auto;
  position: relative;
  padding: 0;
}

/* The visible window */
.carousel-viewport {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}

/* Contains all cards */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  margin-bottom: 10px;
}

/* Individual cards */
.card {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: 0px;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  width: 650px;
  height: 344px;
  border-style: solid;
  border-width: 2px;
  border-color: #2c3e50;
}

/* Left/right buttons */
.carousel-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 15px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 20px;
  z-index: 2;
}

.carousel-button.left {
  left: -20px;
}

.carousel-button.right {
  right: -20px;
}

/* Indicator dots */
.carousel-indicators {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.indicator {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
}

.indicator.active {
  background: #2c3e50;
}


/* Shiny apps grid styles */

.thumbnail-anchor {
  display: block;
  height: 50px;
  max-height: 50px;
  width: 100%;
  object-fit: cover; /* Fills the frame and crops excess */
  object-position: center;
}
.thumbnail-picture {
  object-fit: cover; /* Fills the frame and crops excess */
  object-position: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
  height: 280px;
  margin-bottom: 4px;
}
.thumbnail-picture:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease-in-out;
}
.thumb-descr {
  font-family: sans-serif;
  margin-bottom: 0px;
  margin-top: 0px;
  margin-left: 0px;
  padding-bottom: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
}





.job-card-container {
  border-style: none;
  min-width: 400px;
  margin-bottom: 10px;
}

.job-card {
  border-style: solid;
  border-width: 1px;
  border-color: #2c3e50;
  color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.job-header {
  font-weight: bold;
  color: #2c3e50;
  margin-left: 8px;
  margin-top: 4px;
  font-size: 16pt;
}

.job-ind {
  color: #2c3e50;
  font-weight: bold;
}

.job-text {
  color: #2c3e50;
}

.col-container {
  display: flex;
  margin: 0;
  padding: 0;
  margin-left: 30px;
  gap: 16px;
}

.col-container2 {
  display: flex;
  margin: 0;
  padding: 0;
  margin-left: 30px;
  margin-bottom: -5px;
  gap: 16px;
}

.col1 {
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  margin-left: 8px;
  margin-right: 16px;
}

.col12 {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  margin-left: 8px;
  margin-right: 16px;
}

.col13 {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  margin-left: 8px;
  margin-right: 16px;
}

.col2 {
  flex: 1;
  flex-shrink: 0;
  margin-left: 16px;
  padding-right: 32px;
}


.justification {
  text-align: justify !important;
  width: 96%;
}

.inform-card {
  border-style: none;
}


/* Limitiert die maximale Breite jeder einzelnen Grid-Karte */
.quarto-grid-item.card {
  max-width: 280px; /* Hier gewünschte Breite anpassen */
  width: 280px;
  min-width: 280px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  border-color: #2c3e50;
}

.quarto-grid-item.card:hover {
  background-color: #2c3e50; /* Darkens the button on hover */
  color: white;
  transition: background-color 0.3s, color 0.3s;
}

.quarto-grid-item.card:hover .listing-reading-time.card-text {
  color: #F2F2F2 !important;
  transition: color 0.3s !important;
}

.quarto-grid-item.card:hover .card-attribution.card-text-small.justify .listing-date {
  color: #F2F2F2 !important;
  transition: color 0.3s !important;
}

.quarto-grid-item.card:hover .card-attribution.card-text-small.justify .listing-author {
  color: #F2F2F2 !important;
  transition: color 0.3s !important;
}

.list.grid.quarto-listing-cols-3 {
  gap: 0px !important;
}
