/* Reset für einige Browser-Standards */
body,
h1,
h2,
h3,
p,
img,
button {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: 'Helvetica', sans-serif;
  /* Hier können Sie auch andere Schriftarten wie 'Roboto' oder 'Helvetica' verwenden */
  box-sizing: border-box;
}

/* NAV BAR 

a {
    display: table;
    padding: 3vh;
    text-decoration: none;
    font-family: "Inter", "DM Sans", Arial, sans-serif;
    color: #e69c1d;
  }
  
  ul {
    list-style-type: none;
    margin-top: 0.5vh;
    margin-left: 0.5vh;
    padding: 0px;
    display: flex;
    justify-content: center;
  }
  
  li :hover {
    background-color: #ebdbdb52;
    border-radius: 12px;
  }
  
  /*       -       */
  
  

body {
    background: #252525;
  
    /* background-image: url("Pics/background.png"); */
    background-repeat: no-repeat;
    background-size: cover;
    cursor: crosshair;
  }
  


.lavishly-yours-regular {
    font-family: "Lavishly Yours", cursive;
    font-weight: 400;
    font-style: normal;
  }

h1.title{
    font-family: "Dancing Script", cursive;
    font-weight: 400;
    font-size: 100px;
}

/* STYLING PRODUKTE */

.buy-button {
    background-color: #6b167c; /* Lebhaftere Farbe für den Button */
    color: white;
    padding: 10px 18px;
    font-weight: bold; /* Fetter Text */
    letter-spacing: 1px; /* Buchstabenabstand erhöhen für Lesbarkeit */
    transition: background-color 0.3s ease; /* Weicher Übergang für Hover-Effekt */
    border-radius: 8px; /* Abgerundete Ecken */
    margin-top: auto; /* Drückt den Button an den unteren Rand des Flex-Containers */
    
}

.buy-button:hover {
    background-color: #3f19e6; /* Dunklere Farbe beim Drüberfahren */
    /* transform: translateY(-100px); */
}



.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Basislayout für Desktop */
    gap: 0.6rem;
    padding: 1rem;
}

.product {
    background: #0a0a0a75; 
    border-radius: 16px;
    box-shadow: 0 12px 22px rgba(0,0,0,0.2); /* Weichere und tiefere Schatten für eine subtilere Tiefe */
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(212, 0, 255, 0.25); /* Dynamischerer Schatten beim Hover */

    
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    padding: 6px;
    border-radius: 12px;
    display: block;
    overflow: hidden;
    

}

.product-info {
    padding: 10px;
    font-size: 9px;
}

.product-name {
    padding-top: 5px;
    color: #5bf5eda8;
    font-size: medium;

}

.product-price {
    color: #42bbb5a8;
    font-size: medium;
    
}
.product-quantity {
    font-size: small; /* Etwas kleiner als der restliche Text für subtile Darstellung */
    color: #a30101; /* Dunkelgrau für bessere Lesbarkeit ohne Dominanz */
    padding-bottom: 4px;
    text-align: start;
}


/* Verbessert die Lesbarkeit der Texte auf kleinen Bildschirmen */
.product-info, .product-name, .product-price{
    text-align: center; /* Zentriert den Text */
}




/* Responsive Anpassungen */
@media (max-width: 768px) {
    /* Für Tablets und kleinere Geräte */
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }
}

@media (max-width: 400px) {
    /* Für Mobiltelefone */
    .products-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Ermöglicht bis zu 4 Produkte nebeneinander, abhängig von der Gerätebreite */
    }
    .product-info {
        padding: 5px; /* Reduziert den Innenabstand für kleinere Bildschirme */
    }
    .product-title, .product-price, .product-quantity, .buy-button {
        font-size: 0.8rem; /* Passt die Schriftgröße an, um auf kleineren Bildschirmen besser zu passen */
    }
    .buy-button {
        padding: 5px; /* Reduziert den Button-Innenabstand für eine schlankere Darstellung */
    }
}



.error-popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Stellt sicher, dass das Popup über anderen Inhalten liegt */
}

.error-popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    min-width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-button {
    float: right;
    font-size: 25px;
    cursor: pointer;
}

.error-popup-content.error {
    background-color: #e65662; /* Rot für Fehler */
}

.error-popup-content.success {
    background-color: #b5eec2; /* Grün für Erfolg */
}

.recent-purchases {
    list-style-type: none; /* Keine Bullet Points */
    padding-left: 0; /* Kein Padding links */
    max-width: 70%;
    color: #dbdadad3;
    
}

.recent-purchases li {
    display: block; /* Jedes Listenelement als Block darstellen */
    margin-bottom: 10px; /* Abstand zwischen den Listeneinträgen */
    background-color: #1312123a; /* Hintergrundfarbe für jedes Listenelement */
    padding: 8px; /* Padding innerhalb jedes Listenelements */
    border-radius: 5px; /* Abgerundete Ecken für jedes Listenelement */
}

.recent-purchases li:hover {
    background-color: #e2e2e210; /* Hintergrundfarbe beim Hover */
}

.leaderboardText {
    list-style-type: none; /* Keine Bullet Points */
    padding-left: 0; /* Kein Padding links */
    color: rgb(144, 157, 168);
}

button[disabled] {
    color: #aaa;
    background-color: #ccc;
    cursor: not-allowed;
}
