:root {
  --brand-color: linear-gradient(
    145deg,
    rgb(54, 169, 225) 0%,
    rgb(0, 124, 255) 100%
  );
}

*:last-child {
  margin-bottom: 0;
}

body {
    background-color: #FAFAF8;
    min-height: 100vh;
    font-family: "system-ui";
}

img {
  display: block;
  width: 100%;
  height: 100%;
}

#app {
  min-height: inherit;
  display: flex;
  flex-direction: column;
}

a.link[href] {
  --icon-width: 20px;
  padding-right: var(--icon-width);
  position: relative;
  &:after {
    position: absolute;
    content: "\1F517";
    aspect-ratio: 1;
    font-size: calc(0.75 * var(--icon-size));
    right: 0;
  }
}

main {
  width: 100%;
  & > * {
    margin-inline: auto;
    width: calc(100% - 2rem);
  }
}

.deleted {
  opacity: 0.5;
}

@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: white; /* Hintergrundfarbe anpassen, falls nötig */
    z-index: 1000; /* Z-Index anpassen, um sicherzustellen, dass der Footer über anderen Elementen bleibt */
    padding: 5px; /* Optional: Padding hinzufügen */
    border-top: 1px solid #ddd; /* Optional: Oberstrich hinzufügen */
    justify-self: anchor-center;
    justify-items: center;
}

.smaller-link {
    font-size: 0.75rem;
    color: #007bff;
    text-decoration: underline;
}

.drive-item-listing {
    padding: 0.5rem; /* Reduzieren Sie das Padding */
    max-width: 700px;
    align-self: center;
    padding-bottom: 50px;
}

.drive-item {
    padding: 0.5rem; /* Reduzieren Sie das Padding */
    gap: 0.5rem; /* Reduzieren Sie den Abstand zwischen den Elementen */
    height: 110px;
}

.drive-item-image img {
    width: 40px; /* Reduzieren Sie die Bildgröße */
    height: 40px; /* Reduzieren Sie die Bildgröße */
    place-items: center;
    padding: 0;
}

.drive-item h2 {
    font-size: 1rem; /* Reduzieren Sie die Schriftgröße */
    margin-bottom: 0.25rem; /* Reduzieren Sie den unteren Rand */
    overflow: hidden;
    text-overflow: ellipsis;
}

.smaller-link {
    font-size: 0.65rem; /* Noch kleinere Schriftgröße */
}


.btn-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    transition: background 0.2s, color 0.2s;
    min-width: 75px;
    height: 25px;
}

.btn-outline-black {
    font-size: 0.65rem;
}

.btn-black:hover, .btn-black:focus {
    background-color: #222;
    color: #fff;
}

.custom-checkbox-wrapper {
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 576px) {
    .filter-container .input-group {
        width: 100%;
    }

    .sticky-footer {
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .drive-item-listing {
        padding: 0.25rem;
        max-width: 100%;
    }

    .drive-item {
        height: auto;
        flex-direction: column;
    }

    .custom-checkbox-wrapper {
        margin-top: 0.5rem;
    }

    .drive-item .row {
        flex-wrap: nowrap !important;
    }

    .drive-explorer {
        padding-bottom: 100px;
        width: 100%;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .drive-item-image img {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 768px) and (max-width: 950px) {
    .drive-item {
        height: 125px;
    }
}