/* pb.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 18px;
    background-color: #3d293a;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

h1 {
  color: #b44ba3;
  text-align: center;
  text-transform: uppercase;
  height: 10%;
  margin: 0;
  padding: 10px 0;
  box-sizing: border-box;
  font-size: 3em;
  text-shadow: rgb(67, 17, 60) 2px 2px 4px, rgba(255, 65, 222, 0.75) -2px -2px 9px;
}

h2 {
    font-size: 2em;
}

form {
    background-color: #8f5787; /* Hintergrundfarbe des Formulars */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 720px;
    width: 100%;
    box-sizing: border-box;
}

form#pinboard {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #fff; /* Farbe der Labels */
    text-transform: uppercase; /* Labels als Versalien */
}

select, input[type="checkbox"], button {
    margin-bottom: 15px;
}

select {
    width: 100%; /* Vollständige Breite innerhalb des Formulars */
    font-size: 18px; /* Schriftgröße der Listboxen */
}

#main #title {
    flex: 0.1;
}

#main #content {
    flex: 1;
}

#response {
    margin-top: 20px;
}

.function-bttn {
    font-size: 24px;
    margin: 5px;
    padding: 10px;
    text-decoration: none;
    color: #dd85d0;
    background-color: #a22a90;
    border: 1px solid #dd85d0;
    border-radius: 5px;
    box-shadow: 0px 0px 21px 2px rgba(255,195,246,1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.function-bttn:hover {
    background-color: rgba(221, 133, 208, 0.87);
    color: #ca1baf;
    font-weight: bold;
    box-shadow: 0px 0px 25px 5px rgb(255, 217, 249);
    transform: scale(1.2);
}

#pickMeBtn.function-bttn {
  font-size: 32px;
  letter-spacing: 0.1em;
  padding: 1em;
}


/* Anpassung der Funktionsbuttons Pin Me, Unpin Me und Save Me */
.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.button-row .function-bttn {
    flex: 1;
    text-align: center;
    margin: 5px;
    padding: 10px;
    text-decoration: none;
    border: 1px solid #dd85d0;
    border-radius: 5px;
    box-shadow: 0px 0px 21px 2px rgba(255,195,246,1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-transform: uppercase;
}

.button-row .function-bttn:hover {
    font-weight: bold;
    box-shadow: 0px 0px 25px 5px rgb(255, 217, 249);
    transform: scale(1.2);
}

#index-names {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Hover-Effekt und Transition für #index-names a */
#index-names a {
    font-size: 18px;
    margin: 5px;
    padding: 12px;
    text-decoration: none;
    color: #dd85d0;
    background-color: #a22a90; /* Hintergrundfarbe der Links */
    border: 1px solid #dd85d0;
    border-radius: 5px;
    box-shadow: 0px 0px 21px 2px rgba(255,195,246,1);
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    text-transform: uppercase;
    flex: 1 1 0;
}

#index-names a.double-width {
    flex: 2 1 0 !important; /* Doppelte Breite für den "ALL"-Button */
    text-align: center;
}

#index-names a:hover {
    background-color: #dd85d0; /* Neue Hintergrundfarbe bei Hover */
    color: #ca1baf;
    font-weight: bold;
    box-shadow: 0px 0px 25px 5px rgb(255, 217, 249);
    transform: scale(1.2); /* Vergrößern um 5% */
}

#index-names a.selected {
    color: #ffc3f6; /* Textfarbe des ausgewählten Elements */
    background-color: #a22a90; /* Hintergrundfarbe des ausgewählten Elements */
    font-weight: bold;
    text-decoration: underline;
}

#pinboard > .form-group {
    flex-shrink: 0;
    min-height: fit-content;
}

.form-group {
    display: flex;
    flex-direction: column; /* Labels und Listenfelder in einer Spalte anordnen */
    margin-bottom: 12px; /* Abstand zwischen den Gruppen */
    box-shadow: -4px -4px 8px rgba(255, 255, 255, 0.1),
                 4px 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 8px;
}

.form-group select {
    margin-top: 5px; /* Abstand zwischen Label und Listenfeld */
}

.form-group .names-container { flex-grow: 4; }
.form-group .topics-container { flex-grow: 1; }
.form-group .channels-container { flex-grow: 1; }
.form-group .goal-container { flex-grow: 1.8; }
.form-group .pickme-container { flex-grow: 1.2; }

.button-container {
    display: flex;
    justify-content: center;
    width: 100%; /* Ensures the container spans the full width of the form */
}

.select-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Auswahllisten-Darstelllung */
.select-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-label {
    flex: 1;
    color: #fff;
    text-transform: uppercase;
    max-width:12%;
}

.select-row select {
    flex: 3;
}

.select-row .checkbox-inline {
    flex: 1;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    
}


.hidden{
    visibility: hidden;
    display: none;
}

.disabled-button {
    background-color: #6f5f6d !important; /* Grau für den Hintergrund */
    color: #a9a9a9 !important; /* Grau für den Text */
    border-color: #aaaaaa !important; /* Grauer Rahmen */
    cursor: not-allowed !important; /* Ändert den Mauszeiger */
    pointer-events: none; /* Verhindert Hover- und Klick-Events */
    opacity: 0.5;
}

.disabled-button:hover {
    background-color: #6f5f6d !important; /* Kein Hover-Effekt */
    color: #a9a9a9 !important; /* Grau für den Text */
    border-color: #aaaaaa !important; /* Grauer Rahmen */
    transform: none !important; /* Keine Transformation bei Hover */
    opacity: 0.25;
}

#goal-title {
    opacity: 1;
    transition: opacity 0.4s ease;
    margin: 0;
}

#goal-title.fade-out {
    opacity: 0;
}

#goal-title.fade-in {
    opacity: 1;
}

#goal-title .function-bttn {
    background-color: rgba(187, 99, 174, 0.87);
    color: #dd85d0;
    box-shadow: 0px 0px 25px 5px rgb(255, 217, 249);
    font-weight: bold;
    transition: all 0.4s ease;
}

#goal-title .function-bttn:hover {
    background-color: rgba(221, 133, 208, 0.87);
    color: #ca1baf;
}


/* Name-Bereich */
.names-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

/* Topics + Channels jeweils 10% */
.topics-container,
.channels-container {
    flex: 1;
}

/* Zielbereich (Emoji-Link) */
.goal-container {
    flex: 1.2;
}

/* PickMe-Button-Bereich */
.pickme-container {
    flex: 1.2;
}

#pickMeBtn {
    width: 100%;
    display: block;
}



/* Animierter Einblendeffekt (plopp) */
#goal-title.fade-in a.function-bttn {
    animation: popInScale 0.4s ease forwards;
}

/* Keyframes für ploppigen Scale-In */
@keyframes popInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}


/* Verbesserte Darstellung mobile Geräte */
@media (max-width: 600px) {

    body {
        font-size: 22px !important;
        padding: 10px;
    }

    h1 {
        font-size: 2.2em;
    }

    .form-group {
        padding: 8px;
        margin-bottom: 12px;
    }

    select {
        font-size: 2em;
    }

    .select-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .select-label,
    .select-row select,
    .checkbox-inline {
        flex: unset;
        width: 100%;
        max-width: 100%;
    }

    .checkbox-inline {
        justify-content: flex-start;
        padding-top: 5px;
    }

    .button-row {
        flex-direction: column;
        gap: 8px;
    }

    .button-row .function-bttn {
        width: 100%;
    }

    #pinboard {
        height: auto;
    }
    #index-names {
        justify-content: center;
    }
}


/* Anpassung des Submit-Buttons */
/*
    button[type="submit"],
    button[type="button"],
    #goal-title a.goal-target {
        font-size: 2em;
        text-decoration: none;
        color: #dd85d0;
        background-color: #a22a90
        border: 2px solid #dd85d0;
        border-radius: 5px;
        box-shadow: 0px 0px 21px 2px rgba(255,195,246,1);
        padding: 16px 20px;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s, transform 0.3s;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(67, 17, 60, 1),
                -2px -2px 9px rgba(221, 198, 217, 0.75);
        text-transform: uppercase;
    }

    button[type="submit"]:hover {
        font-size: 2.1em;
        background-color: #dd85d0;
        color: #ca1baf;
        box-shadow: 0px 0px 25px 5px rgb(255, 217, 249);
        transform: scale(1.03);
    }
*/