/* Allgemeine Einstellungen */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

header {
    background-color: #4caf50;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

/* Buttons */
button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #45a049;
}

/* Galerie */
#gallery-container {
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
    background-color: #fff; /* Weißer Hintergrund */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}
.gallery {
    display: grid; /* Grid-System verwenden */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamisch spaltenbasiert */
    gap: 20px; /* Abstand zwischen den Karten */
    justify-content: center; /* Zentrierung */
    align-items: start;
}

.section-divider {
    border: none; /* Entfernt den Standardrand */
    border-top: 5px solid #ddd; /* Dünne, graue Linie */
    margin: 20px 0; /* Abstand über und unter der Linie */
    width: 100%; /* Linie nimmt die volle Breite ein */
}

#center-circle {
    transition: cx 0.3s ease, cy 0.3s ease;
    fill: #4caf50;
    stroke: #000;
    stroke-width: 3;
}

.flavor-text {
    transition: x 0.3s ease, y 0.3s ease;
}



.gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.gallery img:hover {
    border-color: #4caf50;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Modal Layout */
.modal-layout {
    display: flex;
    gap: 20px;
}

.modal-left {
    flex: 1;
    text-align: center;
    overflow: auto;
}

.modal-left img {
    max-width: 100%;
    max-height: 250px;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
    object-fit: cover;
}

.modal-right {
    flex: 1;
    overflow-y: auto;
    padding-left: 10px;
    border-left: 1px solid #ddd;
}


/* Close-Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff0000;
}

/* Terpen-Wheel */
#terpene-wheel-container {
    overflow-y: auto;
    text-align: center;
    margin: 0 auto;
    width: 50%;
    max-width: 250px; /* Halb so groß */
}

#terpene-wheel {
    width: 100%;
    max-height: 250px; /* Reduzierte Höhe */
    margin: 0 auto;
    display: block;
}

#flavors path {
    cursor: pointer;
    transition: fill-opacity 0.3s ease, stroke 0.3s ease;
    stroke: #000000;
    stroke-width: 1px;
}

#flavors path.selected {
    fill-opacity: 0.6;
    stroke: #FF0000;
    stroke-width: 3px;
}

/* Ausgewählte Geschmacksrichtungen */
#selected-flavors-list {
    margin-top: 10px;
    padding: 0;
    list-style: none;
}

#selected-flavors-list li {
    background-color: #f3f3f3;
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#selected-flavors-list li:hover {
    background-color: #e0e0e0;
}

/* Scroll-Einstellungen */
.modal-right::-webkit-scrollbar {
    width: 8px;
}

.modal-right::-webkit-scrollbar-thumb {
    background-color: #4caf50;
    border-radius: 4px;
}

.modal-right::-webkit-scrollbar-thumb:hover {
    background-color: #45a049;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .modal-layout {
        flex-direction: column;
        align-items: center;
    }

    .modal-left,
    .modal-right {
        width: 100%;
        text-align: center;
    }

    #terpene-wheel-container {
        width: 100%;
        max-width: 200px; /* Kleinere Größe für Mobilgeräte */
    }
}

#new-rating-container {
    margin-top: 20px;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#new-rating-text {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 10px;
    resize: none;
}

#new-rating-stars {
    margin: 10px 0;
    padding: 5px;
    border-radius: 4px;
}



#submit-rating-btn {
    background-color: #4caf50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submit-rating-btn:hover {
    background-color: #45a049;
}

.strain-container {
    text-align: center;
    margin: 10px;
    display: inline-block;
    width: 150px;
}

.strain-name {
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    color: #333;
    word-wrap: break-word;
}

#search-container {
    position: absolute;
    top: 10px;
    right: 20px;
}

#search-input {
    width: 250px;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#image-gallery-container {
    text-align: center;
    margin-top: 20px;
}

#image-gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

#image-gallery img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

#image-gallery img:hover {
    border-color: #4caf50;
    transform: scale(1.1);
}





.rating-entry {
    border: 1px solid #ddd; /* Leichter Rahmen */
    border-radius: 8px; /* Abgerundete Ecken */
    padding: 10px; /* Innenabstand */
    margin-bottom: 10px; /* Abstand zwischen den Bewertungen */
    background-color: #f9f9f9; /* Hellgrauer Hintergrund */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Leichter Schatten */
}

.rating-entry p {
    margin: 5px 0; /* Weniger Abstand zwischen den Texten */
}

.delete-rating-btn {
    background-color: #ff6b6b; /* Rot für Löschen-Button */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    margin-top: 10px; /* Abstand zum oberen Inhalt */
}

.delete-rating-btn:hover {
    background-color: #ff4c4c; /* Etwas dunkleres Rot bei Hover */
}