*
{
    margin: 0;
    padding: 0;
    outline: none !important;
}

::-webkit-scrollbar {
    display: none !important;
}

::-webkit-scrollbar-button {
    display: none !important;
}

#nav {
    width: 100%;
    display: flex;
    list-style-type: none;
}

#nav .nav
{
    flex: 1;
    height: 3rem;
    align-content: center;
    text-align: center;
    cursor: pointer;
    background-color: lightcyan;
}

#nav .nav.active
{
    font-weight: bold;
    text-decoration: underline;
    background-color: skyblue;
}


#board
{
    position: relative;
    box-sizing: border-box;
    max-width: 120rem;
    width: 100rem;
    height: 50rem;
    left: 50%;
    margin-top: 1.25rem;
    transform: translateX(-50%);
    background-color: #f4d89b; /* Light cork-like color */
    background-image: url("../images/cork.jpg"); /* Burlap texture to simulate cork */
    background-size: auto;
    border: 1rem solid #a67c52; /* Border color resembling cork's edge */
    border-radius: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

/* Optional: Add some 'pins' on the board */
.pin {
    width: 1.25rem;
    height: 1.25rem;
    background-color: #a67c52;
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.2);
}

/* Unpaid task marker */
.post-it.unpaid {
    opacity: 0.8;
    filter: grayscale(30%);
}
.unpaid-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #dc3545;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
}

.post-it
{
    position: absolute;
    transform: translateX(-50%);
    min-height: 7.5rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    width: 16.25rem;
    font-family: "Dancing Script", cursive;
    cursor: pointer;
    padding: 0.625rem 0.625rem 1.875rem;
    top: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}



.post-it[data-value="Sonstiges"]
{
    background-image: url("../images/sonstiges_bg.png");
}

.post-it[data-value="Haushalt"]
{
    background-image: url("../images/haushalt_bg.png");
}

.post-it[data-value="Sexuell"]
{
    background-image: url("../images/sexuell_bg.png");
}


#MeineAufgaben .post-it.opened
{
    background-image: none;
}

.post-it-header input
{
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
}

.post-it-description textarea
{
    margin-top: 0.625rem;
    font-size: 1.25rem;
    text-align: center;
    resize: none;
    height: 100%;
    width: 100%;
    background-color: transparent;
    border: none;
    overflow: hidden;
    font-family: "Dancing Script", cursive;
}

.post-it-amount
{
    position: absolute;
    bottom: 1.875rem;
    left: 1.25rem;
    font-size: 0.75rem;
    color: #666;
}

.post-it-value
{
    position: absolute;
    bottom: 0.625rem;
    right: 1.25rem;
    font-size: 1rem;
    font-weight: bold;
    color: #f50;
}

.post-it .post-it-value .amount
{
    width: 5rem;
    color: red;
    text-align: right;
    font-size: 1rem;
    margin: 0;
    padding: 0;
}


.post-it-value .hidden
{
    color: black;
    margin-right: 1rem;
}

.post-it-close
{
    display: none;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    border: none;
    color: red;
    background-color: transparent;
    font-family: "Dancing Script";
    cursor: pointer;
    z-index: 9999;
}

.post-it .hidden
{
    display: none;
}

.post-it input
{
    background-color: transparent;
    border: none;
    font-family: "Dancing Script";
    width: 100%;
    text-align: center;
}

.post-it.urgent {
    box-shadow: 0 0 12px rgba(214, 40, 40, 0.6);
}

.post-it-urgent-label {
    margin-top: 0.5rem;
    font-weight: 700;
    color: #d62828;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.6rem;
}

.post-it-urgent-edit label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-it-urgent-edit input
{
    background-color: transparent;
    border: none;
    font-family: "Dancing Script";
    display: inline-flex;
    width: fit-content;
    text-align: center;
}

.post-it-reoccuring-edit input
{
    background-color: transparent;
    border: none;
    font-family: "Dancing Script";
    display: inline-flex;
    width: fit-content;
    text-align: center;
}

.post-it.opened .post-it-urgent-label, .post-it.opened .post-it-urgent-edit,
.post-it.opened .post-it-reoccuring-label, .post-it.opened .post-it-reoccuring-edit
{
    font-size: 2rem !important;
}

.post-it-buttons, .post-it-playerbuttons
{
    position: absolute;
    height: 5.5rem;
    bottom: 0.625rem;
    left: 0;
    right: 0;
    padding: 0.5rem;
}

.post-it-buttons button, .post-it-playerbuttons button
{
    width: 5.5rem;
    height: 5.5rem;
    margin-right: 0.5rem;
    border: none;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.post-it-playerbuttons {
    justify-content: end;
}

.post-it-buttons .editPostIt
{
    background-image: url("../images/edit.png");
}

.post-it-buttons .savePostIt
{
    background-image: url("../images/save.png");
}

.post-it-buttons .cancelEditPostIt
{
    background-image: url("../images/cancelEdit.png");
}

.post-it-buttons .deletePostIt
{
    background-image: url("../images/delete.png");
}

.post-it-playerbuttons .finishedPostIt
{
    background-image: url("../images/finish.png");
}

.post-it-buttons .typeOfPostIt[data-type="Sonstiges"]
{
    background-image: url("../images/sonstiges.png");
}

.post-it-buttons .typeOfPostIt[data-type="Sexuell"]
{
    background-image: url("../images/sexuell.png");
}

.post-it-buttons .typeOfPostIt[data-type="Haushalt"]
{
    background-image: url("../images/haushalt.png");
}

.post-it.opened
{
    position: relative;
    box-sizing: border-box;
    max-width: 120rem;
    width: 100rem;
    height: 50rem;
    left: 50% !important;
    top: 0 !important;
    margin-top: -2.25rem;
    padding: 4rem;
    cursor: initial;
    z-index: 9999;
}

.post-it.opened .post-it-header input
{
    font-size: 4rem;
    text-align: left;
    border-bottom: 2px solid black;
}

.post-it.opened .post-it-description
{
    margin-top: 1rem;
    height: calc(100% - 16rem);
}

.post-it.opened .post-it-description textarea
{
    font-size: 3rem;
    text-align: left;
    margin-top: 0;
}

.post-it.opened .post-it-value
{
    font-size: 3rem;
}

.post-it.opened .post-it-value .amount
{
    font-size: 3rem;
    width: 9rem;
    color: red;
    text-align: right;
}

.post-it.opened .post-it-value.raised, .post-it.opened .post-it-amount.raised
{
    bottom: 6.625rem;
}

.post-it.opened .hidden
{
    display: inline-flex;
}

.post-it.opened .post-it-close
{
    display: block;
}

#newTask,#filterTask  {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 4rem;
    height: 4rem;
    z-index: 10;
    background-color: #0056b3;
    color: white;
    border: none;
    border-radius: 2rem;
    font-size: 2rem;
    display: none;
    line-height: 4rem;
}

/* Larger screens (1025px+) */
@media (max-width: 1024px) {
    #board {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 3rem;
        transform: none;
        border: none;
        margin: 0;
        border-radius: 0;
        padding: 0.25rem;
        height: auto;
        min-height: auto;
    }

    .post-it
    {
        box-sizing: border-box;
        position: initial;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        transform: none;
        padding-bottom: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .post-it-amount
    {
        margin-top: 0.5rem;
        position: initial;
        float: left;
    }

    .post-it-value
    {
        margin-top: 0.5rem;
        position: initial;
        float: right;
    }
    .post-it-description textarea {
        min-height: 7.5rem;
    }

    .post-it.opened
    {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        margin: 0;
        border-radius: 0;
        padding: 0.25rem;
        left: 0 !important;
        top: 0 !important;
        position: absolute;
        bottom: 0;
        min-height: auto;
        height: auto;
    }

    .post-it.opened .post-it-header input
    {
        font-size: 2.5rem;
        border-bottom: 1px solid black;
    }

    .post-it.opened .post-it-description textarea
    {
        font-size: 1.75rem;
    }

    .post-it.opened .post-it-value input
    {
        font-size: 1.75rem !important;
        width: 4.5rem !important;
    }

    .post-it.opened .post-it-value
    {
        text-align: right;
        font-size: 1.75rem !important;
    }

    .post-it .post-it-buttons, .post-it .post-it-playerbuttons
    {
        height: 3rem;
    }

    .post-it .post-it-buttons button, .post-it .post-it-playerbuttons button
    {
        height: 3rem;
        width: 3rem;
    }

    .post-it.opened .post-it-close
    {
        top: 0;
        right: 0;
    }

    #newTask, #filterTask {
        display: block;
    }
}

/******************************************************** AUSWERTUNG ********************************************************/

/* Container for all task sections */
.tasks-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    padding: 20px;
}

/* Task Box (for each section) */
.task-box {
    flex: 1;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.task-box.small
{
    max-width: 800px;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* Task Row (for user data and other user tasks) */
.task-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.task-label {
    font-weight: bold;
}

/* Task Cards (for user's tasks with actions) */
.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-top: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.task-info {
    display: flex;
    flex-direction: column;
}

.task-name {
    font-weight: bold;
    font-size: 1.1em;
}

.task-description {
    color: #666;
}

.task-money {
    font-weight: bold;
    color: #28a745;
}

.task-days {
    font-size: 0.9em;
    color: #dc3545;
}

/* Task Actions */
.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.btn-accept {
    background-color: #28a745;
    color: white;
}

.btn-decline {
    background-color: #dc3545;
    color: white;
}

.btn-logout {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    background-color: #0056b3;
    color: white;
    width: 10rem;
    margin-left: 50%;
    transform: translateX(-50%);
}

.task-actions button:hover {
    opacity: 0.8;
}

.streak-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
    font-weight: bold;
    font-size: 1.2em;
    color: #007bff;
    max-height: 80px;
}

.streak-box
{
    flex: 1;
    max-width: 80px;
    max-height: 80px;
    width: 80px;
    height: 80px;
    border: 1px solid #007bff;
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
    box-shadow: #007bff 0 0 5px;
    background-size: contain;
    position: relative;
    background-image: url('/images/10.png');
}

.streak-value {
    position: absolute;
    left: 22%;
    font-size: 71%;
    top: 21%;
    color: #456930;
}

.streak-value::after {
    content: "€"
}

.streak-box.glow
{
    box-shadow: #FFEB3B 0 0 20px, #ffeb3b 0 0 30px, #ffeb3b 0 0 40px;
    cursor: pointer;
}

.task-row.noborder
{
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#streak-container
{
    flex-direction: column;
}

.noborder
{
    border: none !important;
}

.center {
    text-align:      center !important;
    justify-content: center !important;
}

@media (max-width: 1024px) {
    .task-box.small
    {
        max-width: 100%;
        margin-left: 0;
        transform: none;
    }

    .task-actions
    {
        flex-direction: column;
    }

    .task-description
    {
        display: none;
    }
}


/***************************************************** Filtermenu ******************************************************/

#filterMenu
{
    position: absolute;
    display: none;
}

#filterMenu .toggleFilter[data-show="yes"]
{
    color: #28a745;
}

#filterMenu .toggleFilter[data-show="no"]
{
    color: #dc3545;
    text-decoration: line-through;
}


@media (max-width: 1024px) {
    #filterMenu
    {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        background-color: #cccccc;
        color: white;
        z-index: 9;
    }

    #filterMenu > div
    {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    #filterMenu > div > img
    {
        width: 3rem;
        height: 3rem;
        cursor: pointer;
    }

    #filterMenu > div > span
    {
        flex: 1;
        font-weight: bold;
        font-size: 2.5rem;
        line-height: 3rem;
    }


    .streak-row {
        gap: 2px;
    }

    .streak-box {
        max-width: initial;
        max-height: initial;
        width: initial;
        height: initial;
        aspect-ratio: 1 / 1;
    }

    .streak-value {
        font-size: 1%;
    }
}