/************************************************************************/
/*                                                                      */
/*Ja, auch im CSS können natürlich Keys drin sein wenn man darauf achtet*/
/*                                                                      */
/************************************************************************/
/*                                                                      */
/* =========> !BIGBUg5q6bdOe7u2G8UHadSPIjds! <==========================*/
/*                                                                      */
/************************************************************************/
/* Video Background */

body {
    display: flex;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
}

.content {
    color: white;
    width: 80%;
    max-width: 1100px;
    margin: 0px auto;
    padding: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.title {
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.task {
    background-color: rgba(59, 59, 59, 0.8);
    border-radius: 10px;
    /*box-shadow: 1px 8px 20px #7d7c7c;*/
    padding: 20px;
    display: inline-block;
    /*margin-top: 50px;
    margin-bottom: 50px;*/
    width: 75%;
}
.task .task-content .row {
    width: 500px;
    margin: 10px auto 0 auto;
}
.task .task-content .sudokuButton {
    text-align: center;
}
.task .task-content .row.result{
    margin-top: 30px; padding: 30px; border: 1px solid white; border-radius: 10px; min-height: 50px; width: 340px;
}
.task .task-content .row.taskText {
    margin: 20px;
    text-align: center;
    width: auto;
}
.task .task-content .row label {
    display:inline-block;
    width: 200px;
}
.task .task-content .row label.big{
    width: 300px;
}
.task .task-content .row option {
    color: black
}


.task .task-content .row.taskText .tipp {
    font-weight: bold;
    margin-top: 10px;
}
h3 {
    text-align: center;
}

.task.paused {
    width: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.task.paused .title{
    -webkit-animation: blink 10s infinite both;
    animation: blink 10s infinite both;
}

.table {
    margin: auto;
}

@-webkit-keyframes blink {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}
@keyframes blink {
    0%,
    50%,
    100% {
        opacity: 1;
    }
    25%,
    75% {
        opacity: 0;
    }
}

/* Task Container Styles - based on Help Modal */
.task-modal {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin-top: 200px;
    padding-bottom: 70px;
}

.task-modal-content {
    background-color: rgba(30, 40, 60, 0.9);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(100, 150, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 auto;
}

/* Header styles */
.task-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(100, 150, 255, 0.2);
    background-color: rgba(40, 50, 80, 0.8);
}

.task-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(100, 150, 255, 0.5);
    font-weight: normal;
}

.task-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-button {
    background-color: rgba(80, 90, 120, 0.7);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    text-decoration: none;
}

.task-button i {
    margin-right: 6px;
}

.task-button:hover {
    background-color: rgba(90, 100, 140, 0.9);
}

.task-button.copy-url {
    background-color: #4a90e2;
}

.task-button.copy-url:hover {
    background-color: #3a80d2;
}

/* Body styles */
.task-body {
    padding: 20px;
    overflow-y: auto;
    color: #eee;
}

/* Form styling */
.task-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Input field rows */
.calculation-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    gap: 20px;
}

.calculation-label {
    text-align: right;
    min-width: 100px;
    font-size: 16px;
    color: #eee;
}

/* Input styling */
input[type="text"], 
input[type="number"], 
input[type="email"],
select,
textarea {
    background-color: rgba(30, 40, 60, 0.7);
    border: 1px solid rgba(100, 150, 255, 0.3);
    padding: 12px 15px;
    border-radius: 5px;
    font-size: 16px;
    color: #fff;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(100, 150, 255, 0.7);
    box-shadow: 0 0 8px rgba(74, 144, 226, 0.4);
}

/* Input placeholders */
input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Standard Submit Button Styling */
input[type="submit"], 
button[type="submit"] {
    background: linear-gradient(to right, #4a6cf7, #6a8bff);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
    transition: all 0.3s;
    margin: 20px auto;
    display: block;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="submit"]:hover, 
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(to right, #3a5ce7, #5a7bef);
}

input[type="submit"]:active, 
button[type="submit"]:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Result section styling */
.result-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 150, 255, 0.2);
}

.result-title {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
    font-weight: normal;
}

.result-display {
    background-color: rgba(40, 55, 80, 0.5);
    border: 1px solid rgba(100, 150, 255, 0.3);
    border-radius: 5px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 90%;
    padding: 15px;
    color: #eee;
    font-size: 16px;
}

.result-display.correct {
    background-color: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
}

.result-display.wrong {
    background-color: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.3);
}

/* Fix text colors */
p, h1, h2, h3, h4, h5, h6, span, div, label {
    color: #eee;
}

.taskText {
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    font-size: 1.1rem;
}

.row {
    margin: 15px 0;
    text-align: center;
}

/* Snackbar for copy notification */
.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: rgba(40, 50, 80, 0.95);
    color: #fff;
    text-align: center;
    border-radius: 30px;
    padding: 12px 20px;
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* Cosmic background */
.cosmic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1539321908154-04927596764d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1935&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.8;
}

.checkboxDiv,
.radioDiv {
    max-width: 500px;
    margin: auto;
}
.checkbox_container,
.radio_container {
    width: 50%;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .task-modal-content {
        width: 95%;
    }
    
    .task-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .task-header h2 {
        font-size: 1.4rem;
    }
    
    .task-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .task-body {
        padding: 15px;
    }
    
    .calculation-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .calculation-label {
        text-align: center;
        margin-bottom: 5px;
    }
    
    input[type="text"], 
    input[type="number"], 
    input[type="email"],
    select,
    textarea {
        max-width: 100%;
    }

}