/* Übergang für Opazitätsänderungen */
#undoButton, #fillButton, #drawButton, .tool-stroke {
    transition: opacity 0.5s ease;
}

/* Faded-Zustand mit 10% Opazität */
.faded {
    opacity: 0.1;
}

/* Optional: Sichtbarer Zustand mit 100% Opazität */
.visible {
    opacity: 1;
}

/* Sicherstellen, dass die Buttons angezeigt werden */
#undoButton, #fillButton, #drawButton {
    display: inline-block; /* oder 'flex', je nach Layout */
}

#colorPalettesWrapper {
    display: flex;
    flex-direction: row; /* Paletten nebeneinander */
}

@media (min-width: 766px) {
    #colorPalettesWrapper {
        flex-direction: row;
        order: 2;
    }
    
    #colorPalettesWrapper .colorPalette {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
    }
}

@media (max-width: 765px) {
    #colorPalettesWrapper {
        flex-direction: column;
        order: 1;
    }
    
    #colorPalettesWrapper .colorPalette {
        flex-direction: row;
        margin-bottom: 5px;
    }
}

/* Zusätzliches CSS für die 4-Spalten-Struktur */
@media (min-width: 766px) {
    #palette1, #palette2, #palette3, #palette4 {
        display: flex;
        flex-direction: column;
        order: 2;
        flex: 0 0 auto;
    }
}

@media (max-width: 765px) {
    #palette1, #palette2, #palette3, #palette4 {
        flex-direction: row;
        order: 1;
        margin-bottom: 5px;
    }
}

/* Verstecke leere Paletten */
.colorPalette:empty {
    display: none !important;
}

/* CSS für den Loader */
.loader {
    border: 16px solid #f3f3f3; /* Light grey */
    border-top: 16px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

/* Halbtransparenz für den Hauptinhalt, während der Ladeanimation */
.loading {
    opacity: 0.5; /* Halbtransparente Deckkraft */
    pointer-events: none; /* Deaktiviert alle Interaktionen */
    position: relative; /* Sicherstellen, dass der Hauptinhalt relativ positioniert ist */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* like */
  #invite {
      align-items: center;
      justify-content: center;
      flex-direction: row;
	  margin-bottom: 10px;
  }

  #likeBtnContainer {
      margin-right: 10px;
	  margin-top: 18px;
	  z-index: 10;
  }
 
span.lb-fi-thmb7-u.likebtn-icon.lb-like-icon.lb-fi {

background-image:none !important; }

  button {
      margin-top: 0; 
  }

span.lb-count {

    font-size: 14px !important;
    font-family: Arial !important;
    font-weight: bold !important;
}


span.likebtn-label.lb-like-label {

    font-size: 14px !important;
    font-family: Arial !important;
    font-weight: bold !important;
}
/* Modal-Stil */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.7);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    max-width: 350px;
    position: relative;
}

/* Stil für das Schließen-Kreuz */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Blinkender Cursor für das Eingabefeld */
#nameInput {
    caret-color: red; /* Farbe des blinkenden Cursors */
}

input::placeholder {
    color: #ccc; /* Farbe des Platzhalters */
}



#svg-play svg,
#svg-playcont {
  height: 75vh;
  width: 100%;
  max-width: 100%;
  display: flex;

}


@media (max-width: 750px) {
  #svg-play svg,
  #svg-playcont {
    height: auto;
  }
}



        #modalHeader {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 10px;
        }

        .modal2 {
            display: none;
            position: fixed;
            z-index: 1;
            padding-top: 60px;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.9);
        }

        .modal-cont2 {
            position: relative;
            margin: auto;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
			height: 95%;
        }

        .modal-image {
            display: block;
            margin: auto;
            max-width: 100%;
            height: auto;
			max-height: 95%;
        }

        .nav-buttons {
            display: flex;
            justify-content: space-between;
            width: 100%;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }

        .nav-button {
            cursor: pointer;
            color: white;
            font-weight: bold;
            font-size: 150px;
            user-select: none;
            z-index: 2;
            background-color: rgba(0,0,0,0.5);			
        }

        #prevButton {
            margin-left: 20px;
        }

        #nextButton {
            margin-right: 20px;
        }

        #modalTitle {
            text-align: center;
            color: white;
            font-size: 18px;
            margin-left: 10px;
        }

        .clos2 {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #f1f1f1;
            font-size: 100px;
            font-weight: bold;
            cursor: pointer;
			z-index: 10;
        }


/* Eltern-Container, damit Overlay positioniert werden kann */
.thumb-container {
  position: relative;       /* Wichtig, damit absolute Kindelemente sich daran orientieren */
  display: inline-block;    /* oder was du schon nutzt */
  text-align: center;       /* falls du das weiterhin willst */
  margin: 5px;              /* etwas Abstand */
}

/* Overlay-Kreis */
.thumb-play-circle {
border: 2px solid white;
pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin-left: -20px; /* halb so breit wie das Element selbst */
  margin-top: -20px;  /* halb so hoch wie das Element selbst */
  background: rgba(0,0,0,0.5); /* leichter Schatten */
  border-radius: 50%;
  transition: background 0.3s ease;
}

/* Der "Play"-Dreieck über ein Pseudo-Element */
.thumb-play-circle::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  width: 30px;
  height: 20px;
  border-left: 15px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}


.thumb-container:hover .thumb-play-circle::before {
    border-left-color: red ;
}

/* Optionale Hover-Effekte */
.thumb-container:hover .thumb-play-circle {
  background: rgba(0,0,0,0.9);
}


#animatedSvgContainer svg,
#animatedSvgContainer {
  height: 75vh;
  width: 100%;
  max-width: 100%;
  display: flex;

}


@media (max-width: 750px) {
  #animatedSvgContainer svg,
  #animatedSvgContainer {
    height: auto;
  }
}

.thumbclicktool {
    border: 1px solid black;
    opacity: 0.4; /* Transparenz 20% */
    transition: opacity 0.3s ease-in-out; /* Weicher Übergang */
}

.thumbclicktool:hover {
    opacity: 1; /* Voll sichtbar bei Hover */
}

.modal-body {
    padding-top: 0px !important
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    margin-top: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    border: none;
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: background-color 0.3s;
}

.share-btn i {
    margin-right: 8px;
    font-size: 20px;
}

.share-btn.facebook {
    background-color: #3b5998;
}

.share-btn.facebook:hover {
    background-color: #2d4373;
    color: #f2f2f2;
}

.share-btn.facebook:visited {
    background-color: #2d4373;
    color: #f2f2f2;
}

.share-btn.whatsapp {
    background-color: #25D366;
}

.share-btn.whatsapp:hover {
    background-color: #1DA851;
    color: #f2f2f2;
}

.share-btn.whatsapp:visited {
    background-color: #1DA851;
    color: #f2f2f2;
}

.share-btn.twitter {
    background-color: #1DA1F2;
}

.share-btn.twitter:hover {
    background-color: #0d8ddb;
    color: #f2f2f2;
}

.share-btn.twitter:visited {
    background-color: #0d8ddb;
    color: #f2f2f2;
}

.share-btn.email {
    background-color: #dd4b39;
}

.share-btn.email:hover {
    background-color: #bf392e;
    color: #f2f2f2;
}

.share-btn.email:visited {
    background-color: #bf392e;
    color: #f2f2f2;
}

.share-btn.clipboard {
    background-color: #4CAF50;
}

.share-btn.clipboard:hover {
    background-color: #388E3C;
    color: #f2f2f2;
}

.share-btn.clipboard:visited {
    background-color: #388E3C;
    color: #f2f2f2;
}

@media (max-width: 600px) {
    .share-btn {
        padding: 5px 10px; 
		width: 18%;
        justify-content: center; 
    }

    .share-btn i {
        font-size: 30px; 
		margin-right: 0px;
    }

    .btn-text {
        display: none;
    }
	.colorSwatch {width: 30px !important;}
}

/* CSS-Styling für den Layer */
#generatingLayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    transition: opacity 0.5s;
    opacity: 0;
    visibility: hidden;
}

#generatingLayer.visible {
    opacity: 1;
    visibility: visible;
}

.container {
    width: inherit !important;
}

#flexContainer {
    display: flex;
    width: 100%;
    /* Stellt sicher, dass der Container die volle Breite des übergeordneten Elements einnimmt */
    height: 100%;
    /* Passt die Höhe an */
}

#svgContainer {

    flex: 0 1 auto;
    transition: box-shadow 0.5s;
    cursor: pointer;
    animation: none;
    transition: box-shadow 0.5s;
    position: relative;
}

#additionalContainer {
    flex-grow: 1;
    /* Nimmt den verbleibenden Platz ein */
    padding: 10px;
}


@media (max-width: 766px) {
    #textOverlay {
        display: none;
    }

    #additionalContainer {
        display: none;
    }

    #additionalDiv {
        display: none;
    }

    #colorfulText {
        display: none;
    }

    .modal-body {
        padding: inherit !important;
    }

    .button {
        padding: 5px 10px;
    }
}

@media (min-width: 767px) {
    #textOverlay {
        position: absolute;
        top: 120px;
        left: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        pointer-events: none;
    }

    #textContainer {
        background-color: rgba(48, 120, 170, 0.95);
        display: inline-block;
        padding: 70px;
        border-radius: 5px;
    }

    #colorfulText {
        font-size: 40px;
        color: #ddeff4;
    }
}

.hidden {
    display: none;
}

    .share-buttons.hidden {
        opacity: 0;
        transition: opacity 1.5s;
        display: none;
    }

    .share-buttons.visible {
        opacity: 1;
        display: flex; /* oder inline-flex, je nach Layout */
    }




@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
        /* Dunkelgrüner Schatten für bessere Sichtbarkeit */
    }

    50% {
        box-shadow: 0 0 0 15px rgba(0, 128, 0, 0);
        /* Erhöhte Ausbreitung des Schattens */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 128, 0, 0.7);
    }
}

.colorPalette {
    animation: pulse 2s infinite;
    /* Kürzere und schnellere Animation */
    display: flex;
    justify-content: space-around;
}



@media (min-width: 767px) {
    .content.col-sm-9 {
        -webkit-box-flex: 0;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .menu {
        display: none;
    }

    .sidebar.col-sm-3 {
        flex: 0 0 0%;
        max-width: 0%;
    }
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 5px 20px;
    font-size: 14px;
    border: none;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button .icon {
    margin-right: 8px;
    font-size: 20px;
}

#shareButton {
    background-color: #2c7cff;
    color: white;
}

#shareButton:hover {
    background-color: #45a049;
}

#undoButton {
    background-color: #555;
    color: white;
}

#undoButton:hover {
    background-color: #e53935;
}

#drawButton {
    background-color: #555;
    color: white;
}

#drawButton:hover {
    background-color: #828282;
}

#fillButton {
    background-color: #555;
    color: white;
}

#fillButton:hover {
    background-color: #828282;
}

/* Neue CSS-Klasse für den aktiven Zustand */
.active {
    background-color: #c3c3c3 !important;
    border: 2px solid #000000;
    color: black !important;
}

/* Add icons using Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

.fa-share-alt {
    /* Icon for share button */
}

.fa-undo {
    /* Icon for undo button */
}

.fa-fill {
    /* Icon for fill button */
}

.fa-pen {
    /* Icon for draw button */
}

@media (max-width: 765px) {
    #colorPicker-container {
        margin-right: 20px;
    }

    .pcfarb {
        display: none !important;
    }
}

@media (min-width: 766px) {
    .spfarb {
        display: none !important;
    }
}

#colorPicker-container {
    width: auto;
    margin-right: 20px;
    display: flex;
    flex-wrap: wrap;
}

#colorPicker {
    border: 2px solid #333;
    /* Dunkler Rahmen um das Farbauswahl-Element */
    display: inline-block;
    width: 50px;
    /* Breite des Farbauswahl-Buttons anpassen */
    height: 34px;
    /* Höhe des Farbauswahl-Buttons anpassen */
    vertical-align: middle;
}

label {
    font-size: 16px;
    font-family: Arial, sans-serif;
    margin-right: 10px;
    /* Abstand zwischen Beschriftung und Farbauswahl */
}

#svgContainer svg {
    height: auto;
    border: 1px solid black;
    display: block;

}

.colorPalette {
    display: flex;
    justify-content: space-around;
}

.colorSwatch {
    width: 20px;
    height: 40px;
    display: inline-block;
    cursor: pointer;
}

.painting-img {
    display: none;
}

.btn-orange.print {
    display: none;
}

#additionalDiv {
    padding: 10px;
    overflow: hidden;
    border: 1px solid black;
}

@media (min-width: 766px) {
    #flexContainer {
        display: flex;
        flex-direction: row;
    }
    #svgContainer {
        flex: 1;
        order: 1;
    }
    .colorPalette {
        display: flex;
        flex-direction: column;
        order: 2;

    }
    #additionalDiv {
        flex: 1;
        order: 3;
    }
}


@media (max-width: 765px) {
    #flexContainer {
        flex-direction: column;
    }
    #svgContainer {
        order: 2;
    }
    .colorPalette {
        flex-direction: row;
        order: 1;
    }
    #additionalDiv {
        order: 3;
    }
	#colorPicker-container {    margin-top: 40px;}
}


p {margin-bottom: -0.1rem !important;}

h1 {display: none;}

@media (min-width: 576px) and (max-width: 767px) {
  #invite {
    margin-top: 70px;
  }
}

