
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(200deg, #6bb9f0, #07294a);
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow: hidden;
}

.impressum {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: darkgray;
}

#news {
    display: none;
    position: absolute;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    border-radius: 13px;
    width: 95%;
    max-width: 650px;
    height: 75dvh;
    padding: 8px;
    overflow-y: auto;
}
#news h3 {
    text-align: center;
}
#news li {
    margin-top: 5px;
}
.openNews {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

#MessageBox {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 300px;
    background-color: #1f2937;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    cursor: pointer;
    font-family: sans-serif;
}

#MessageBox.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}


#loadingContainer{
    display: none;
    position: absolute;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
#loadingBackground {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 999;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.422);
}
.loader {
    width: 70px;
    height: 70px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #loadingMsg {
    display: none;
    color: white;
    background-color: rgb(124, 0, 0);
    width: 90%;
    border-radius: 15px;
    text-align: center;
    z-index: 1000;
    position: absolute;
    bottom: 10%;
  }

#loginError {
    display: none;
    position: fixed;
    padding: 5px;
    padding-bottom: 10px;
    top: 21dvh;
    width: 90dvw;
    max-width: 400px;
    left: 50%;
    transform: translate(-50%);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: white;
    color: black;
    z-index: 1300;
}
#loginError h3 {
    text-align: center;
}
#loginError button {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    color: white;
    background-color: #0056b3;
}

#startupInformation {
    position: fixed;
    top: 13dvh;
    width: 74dvw;
    max-width: 400px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffcc00;
    padding: 15px;
    border: 1px solid #916e05;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1300;
}
#closeInfoBox {
    margin-top: 10px;
    padding: 5px 10px;
    border: none;
    background-color: #484231;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
}
#closeInfoBox:hover {
    background-color: #b38900;
}


#AdminPage {
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    z-index: 999;
    height: 100dvh;
    width: 100dvw;
    background-color: white;
    overflow: hidden;
}
#AdminPage h2 {
    color: black;
    text-align: center;
}
#AdminLogout{
    width: 50dvw;
    position: absolute;
    left: 50%;
    bottom: 3dvh;
    transform: translateX(-50%);
    color: white;
    background-color: red;
}
#AdminLogout:hover {
    background-color: rgb(255, 103, 103);
}


#adminAnzeige {
    width: 100%;
    height: 80dvh;
    position: absolute;
    left: 0;
    top: 0;
}

#adminPageButtonContainer {
    position: absolute;
    bottom: 10dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: space-around;
}


.admin-report-container {
    position: absolute;
    width: 90%;
    max-width: 100%;
    height: 65dvh;
    overflow-y: auto;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.report-section {
    padding: 15px;
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.report-info {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delete-button {
    background: none;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.delete-button:hover {
    color: darkred;
    transform: scale(1.2);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
}

.report-table th, .report-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    word-break: break-word;
}

.report-table th {
    background-color: #f4f4f4;
    width: 20%;
}




.admin-competition-container {
    position: relative;
    z-index: 1;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    border-radius: 10px;
    height: 62dvh;
    box-shadow: 0px 0px 10px rgba(0, 0, 255, 0.2);
    overflow-y: auto;
}

.competition-section {
    background: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 5px rgba(0, 0, 255, 0.1);
}

.competition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.competition-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.competition-table th, .competition-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
}

#createCompBtn {
    position: relative;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

#compCreationPanel {
    display: none;
    position: absolute;
    z-index: 2;
    width: 100%;
    top: 10dvh;
    height: 72dvh;
    background-color: #2d2d2d;
    color: white;
    text-align: center;
}
#compCreationPanel input {
    position: relative;
    width: 63%;
    top: 18dvh;
}

#compCreationPanel div {
    position: absolute;
    top: 55dvh;
    left: 50%;
    transform: translateX(-50%);
}
#compCreationPanel button {
    color: white;
}

.competition-card {
    background-color: ghostwhite;
}















.goBack-Btn {
    height: 5%;
    width: auto;
    position: absolute;
    top: 5px;
    left: 5px;
}

.goBack-Btn:hover {
    cursor: pointer;
    height: 6%;
}

/* Style for Login / Register Page*/
#headline {
    color: white;
    text-align: center;
    position: absolute;
    left: 50%;
    width: 100%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
}
#headline h1 {
    text-decoration: solid;
}

#login_mask {
    background: white;    
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 70dvw;
    max-width: 400px;
    text-align: center;
    z-index: 10;
}

#login_mask h2 {
    margin-bottom: 20px;
    color: #2c6693;
}

input {
    width: 90%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
}

#login_mask button {
    width: 100%;
    padding: 12px;
    background-color: #2c6693;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}
#login_mask button:hover {
    background-color: #1e4d73;
}

.stay-logged-in {
    display: flex;
    align-items: center;
    justify-content: start;
    margin: 10px 0;
    font-size: 14px;
    color: #333;
    gap: 8px;
    padding-left: 5%;
}

.stay-logged-in input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2c6693;
    cursor: pointer;
}

#errorMsg {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

#registration_mask {
    background: white;    
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 70dvw;
    max-width: 400px;
    text-align: center;
    z-index: 10;
}

#registration_mask h2 {
    margin-bottom: 20px;
    color: #2c6693;
}

#registration_mask button {
    width: 100%;
    padding: 12px;
    background-color: #2c9355;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}
#registration_mask button:hover {
    background-color: #20663c;
}
#errorMsgRegister {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}






                        /*Content Page*/
#content {
    display: none;
    z-index: 10;
}

                        /*Account Editing*/
#editNameBtn {
    position: absolute;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    top: 55dvh;
    color: #2c6693;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

#nameEdit{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    top: 56dvh;
    background-color: #ededed;
}

#nameEdit input {
    padding: 5px;
    margin: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.safeBtn {
    padding: 7px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 50%;
    transform: translateX(-50%);
}

.safeBtn:hover {
    background-color: #45a049;
}

.cancleBtn {
    padding: 7px 15px;
    background-color: #7f2c2c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 50%;
    margin-top: 5px;
    transform: translateX(-50%);
}

.cancleBtn:hover {
    background-color: #4a1c1c;
}

#editPasswordBtn {
    position: absolute;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    top: 60dvh;
    color: #2c6693;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

#passwordEdit {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    top: 56dvh;
    background-color: #ededed;
}

#passwordEdit input {
    padding: 5px;
    margin: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.checkboxContainer {
    position: absolute;
    white-space: nowrap;
    left: 50%;
    transform: translateX(-50%);
    top: 65dvh;
    color: #2c6693;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
  }
  
  .checkboxLabel {
    font-size: 18px;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .accOptCheck {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
    cursor: pointer;
  }
  



#adminPwdChangeWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 1000;
}

#adminPwdChange {
    position: absolute;
    width: 90%;
    top: 30%;
    max-width: 400px;
    background: #1e1e1e;
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: Arial, sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

#adminPwdChange h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

#exitAdminPwd {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
}

#exitAdminPwd img {
    filter: invert(100%);
    width: 30px;
    height: 30px;
}


#adminPwdChange_name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

#adminPwdChange_pwd {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 5px;
    background: #2e2e2e;
    color: white;
    outline: none;
    transition: border-color 0.3s ease-in-out;
}

#adminPwdChange_pwd:focus {
    border-color: #007bff;
}

#adminPwdChange_safe {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    font-size: 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

#adminPwdChange_safe:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#adminPwdChangeWrapper.show {
    display: flex;
}


#userOptions{
    position: relative;
    width: 42dvw;
    height: 30dvw;
    max-width: 200px;
    max-height: 150px;
    color: white;
    background-color: rgb(62 170 62);
    font-size: larger;
}

#userOptions:hover {
    background-color: rgb(33, 90, 33);
}

/*Report Objects*/
#reportIssue {
    position: relative;
    width: 42dvw;
    height: 30dvw;
    max-width: 200px;
    max-height: 150px;
    color: red;
    background-color: #cccccc;
    font-size: larger;
}

#reportIssue:hover {
    background-color: #695858;
}

/* Grundstil für das Formular */
#createReport {
    display: none;
    position: absolute;
    top: 10dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 80dvw;
    max-width: 500px;
    height: 480px;
    background-color: #180606;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
}

#createReport h2 {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

#createReport input,
#createReport textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    box-sizing: border-box;
}

#createReport textarea {
    height: 150px;
    resize: vertical;
}

#createReport button {
    color: white;
    background-color: #ff5733;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 18px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#createReport button:hover {
    background-color: #e03e00;
    transform: translateY(-2px);
}

#createReport #cancleReport {
    background-color: #888;
    margin-top: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    padding: 12px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#createReport #cancleReport:hover {
    background-color: #666;
    transform: translateY(-2px);
}

#createReport label {
    color: #bdbdbd;
}

#createReport select#reportType {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

#createReport select#reportType:focus {
    border-color: #ff5733;
    outline: none;
    box-shadow: 0 0 5px rgba(255, 87, 51, 0.5);
}

#reportList {
    position: relative;
    margin-top: 25px;
    width: 100%;
}
.report-card {
    background-color: #2f2f2f;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.report-card h3 {
    border-bottom: 1px solid #888;
    padding-bottom: 5px;
    margin-bottom: 10px;
}







#logoutBtn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: 70%;
    max-width: 375px;
    padding: 7px;
    transform: translateX(-50%);
    background-color: rgb(255, 170, 0);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    z-index: 100;
}
#logoutBtn:hover {
    background-color: rgb(135, 91, 3);
}

#delBtn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 70%;
    max-width: 375px;
    padding: 7px;
    transform: translateX(-50%);
    background-color: rgba(181, 10, 10, 0.993);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    z-index: 100;
}
#delBtn:hover {
    background-color: rgba(90, 7, 7, 0.993);
}

#requestDelAcc,
#secureRoutineCopy,
#ratingRoutine {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 57dvw;
    max-width: 400px;
    padding: 20px;
    background: #1e1e1e;
    color: white;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
}

#requestDelAcc h2,
#secureRoutineCopy h2 {
    margin-bottom: 10px;
    font-size: 20px;
}

#requestDelAcc h3,
#secureRoutineCopy h3 {
    font-size: 16px;
    font-weight: normal;
    opacity: 0.8;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

button {
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.delete-btn {
    background: #d9534f;
    color: white;
}

.delete-btn:hover {
    background: #c9302c;
}

.cancel-btn {
    background: #6c757d;
    color: white;
}

.cancel-btn:hover {
    background: #5a6268;
}


                        /*Profile Data*/
.profilePicture {
    display: block;
    width: 120px;
    height: 120px; 
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    margin: 60px auto;
    margin-top: 85px;
}

#accountOptionsWrapper {
    position: absolute;
    display: none;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.201);
}

#accountOptions {
    position: absolute;
    z-index: 1;
    width: 85%;
    height: 86dvh;
    left: 50%;
    transform: translateX(-50%);
    top: 3dvh;
    background-color: rgb(237, 237, 237);
    border-radius: 15px;
}




#colorContainer {
    position: absolute;
    display: flex;
    left: 50%;
    top: 40dvh;
    transform: translateX(-50%);
    z-index: 1;
    width: 50dvw;
    justify-content: space-between;
    background: none;
}

.colorPick {
    width: 7vw;
    height: 7vw;
    border-radius: 50%;
    cursor: pointer;
    margin: 5px;
    border: 2px solid #000;
    max-width: 35px;
    max-height: 35px;
}

.colorPick:hover {
    border: 2px solid #fff;
}


#nameView {
    text-align: center;
    margin-top: 15px;
    font-size: 25px;
    font-weight: bold;
    color: #2c6693;
}

#nameView span {
    display: block;
    margin-top: 5px;
}

#mainPage {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.488);
    width: 72dvw;
    max-width: 500px;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 10dvh;
    max-height: 50dvh;
    overflow-y: auto;
}
#welcomeUser {
    color: #2c3e50;
    margin-top: 1px;
}
#welcomeTxt {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}
.download-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 5px;
    font-size: 16px;
    color: white;
    background-color: #27ae60;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}
.download-btn:hover {
    background-color: #219150;
}

#downloadPage {
    display: none;
    position: absolute;
    height: 50%;
    width: 77%;
    max-width: 600px;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: left;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.488);
    overflow-y: auto;
}

.seperator {
    width: 98%;
    height: 1px;
    background-color: black;
    position: relative;
    left: 1%;
    margin-top: 5px;
}

.hide-download-btn {
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #ae4427;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 10px;
}
.hide-download-btn:hover {
    background-color: #80311b;
}



                        /*Bottom Menue Style*/
#menue {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10dvh;
    background-color: #ffffff1a;
    border-top: 2px solid #2f2f2f;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 100;
    align-items: center;
    justify-content: space-around;
}

#settingsBtn{
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#settingsBtn img {
    width: 45px;
    height: auto;
}
#settingsBtn:hover {
    transform: scale(1.2);
}

#equipmentBtn{
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#equipmentBtn img {
    width: 70px;
    height: auto;
}
#equipmentBtn:hover {
    transform: scale(1.2);
}

#profilesBtn {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#profilesBtn img {
    width: 70px;
    height: auto;
}
#profilesBtn:hover {
    transform: scale(1.2);
}
#personalBtn{
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#personalBtn img {
    width: 50px;
    height: auto;
}
#personalBtn:hover {
    transform: rotate(15deg);
}




                                /*Style for different Panels*/
.panel {
    position: absolute;
    top: -110%;
    left: 0;
    width: 100%;
    height: 90dvh;
    transition: top 0.5s ease-in-out;
    z-index: 15;
    background-color: #f4f4f4;
}
.panel.visible {
    top: 0;
}

.panel h2 {
    position: absolute;
    left: 50%;
    top: 1dvh;
    font-style: oblique;
    transform: translateX(-50%);
    white-space: nowrap;
}


                                /** Member List **/


#memberSwitchPage {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: relative;
    top: 10dvh;
}
#memberSwitchPage button{
    color: white;
    background-color: rgb(14, 149, 129);
    border-radius: 7px;
    width: 30%;
    max-width: 200px;
}


#memberList {
    width: 100%;
    max-width: 700px;
    height: 72dvh;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 17dvh;
    overflow: auto;
    background-color: #f5f5f5;
}

.member {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
}
.member:hover {
    background: #c9c9c9;
}

.member img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.member span {
    margin-right: 5px;
}



                    /*Dahboard*/
#dashboard {
    width: 100dvw;
    height: 72dvh;
    position: absolute;
    top: 17dvh;
    overflow: auto;
    background-color: #f5f5f5;
}

#dashboardInfo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
}
#dashboardInfo p {
    margin-top: 12dvh;
    text-align: center;
}


#elementListEdits {
    display: flex;
    justify-content: space-evenly;
}

#sortType {
    text-align: right;
    margin: 0;
    margin-right: 5px;
    margin-top: 30px;
}

#editFilter {
    color: white;
    background-color: rgb(90, 59, 0);
}

#filterWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 999;
    backdrop-filter: blur(5px);
}

#filterPanel {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
}

.back-button img {
    width: 25px;
    filter: invert(1);
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.filter-group button {
    background-color: #444;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}

.filter-group button:hover {
    background-color: #666;
}

.active-filter {
    background-color: #007bff;
    color: white;
    font-weight: bold;
}

.checkbox-toggle {
    display: flex;
    align-items: center;
    margin-left: 50%;
    transform: translateX(-50%);
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-family: sans-serif;
    font-size: 1rem;
  }
  
  .checkbox-toggle input {
    display: none;
  }
  
  .checkbox-toggle .slider {
    width: 45px;
    height: 24px;
    background-color: #ccc;
    border-radius: 999px;
    position: relative;
    transition: background-color 0.3s;
  }
  
  .checkbox-toggle .slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  
  .checkbox-toggle input:checked + .slider {
    background-color: #4caf50;
  }
  
  .checkbox-toggle input:checked + .slider::before {
    transform: translateX(16px);
  }
  

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

#filterWrapper.show {
    display: block;
}






                            /** Equipment View **/
#equipmentView {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
    justify-content: flex-start;
    width: 100%;
    max-width: 800px;
    position: absolute;
    top: 20dvh;
    left: 50%;
    transform: translateX(-50%);
}

.equSlide {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
    text-align: center;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
    padding: 20px;
    scroll-snap-align: center;
    transition: transform 0.2s;
}

.equSlide:hover {
    transform: scale(1.05);
}

.categories img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.deviceName {
    margin-top: 10px;
    font-size: 16px;
    color: #444;
}


.name-de {
    font-weight: bold;
    display: block;
    font-size: 18px;
}

.name-en {
    font-size: 14px;
    color: #777;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 10px;
    position: absolute;
    right: 5%;
}



#EquipmentExercise {
    display: none;
    width: 100dvw;
    height: 89dvh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 16;
    background-color: white;
}

#DeviceImage{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 10%;
    margin-bottom: -10px;
}
#exerciseTitle {
    text-align: center;
    color: black;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10%;
}


#infoBlock {
    position: absolute;
    width: 90%;
    left: 50%;
    top: 20%;
    transform: translateX(-50%);
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    max-width: 500px;
    text-align: left;
}

#infoBlock h3 {
    color: #444;
    margin-bottom: 8px;
}

#infoBlock ul {
    list-style: none;
    padding: 0;
}

#infoBlock ul li {
    background: #e3e3e3;
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 5px;
}

#createRoutineBtn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#createRoutineBtn:hover {
    background: #0056b3;
}





#exerciseCreationPanel {
    position: absolute;
    z-index: 16;
    top: 15dvh;
    left: 0;
    width: 100%;
    height: 74dvh;
    display: none;
    overflow-y: auto;
}

#exerciseCreationButtonPanel {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

#add-exercise-btn {
    width: 25%;
    max-width: 300px;
    color: white;
    background-color: green;
}
#changeRoutineType {
    width: 25%;
    max-width: 300px;
    color: white;
    background-color: rgb(128, 45, 0);
}

#closeElementSelection {
    width: 80%;
    position: relative;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: red;
}

#elementSelection {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 98%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



#elementList {
    flex-grow: 1;
    display: flex;
    position: relative;
    top: 1dvh;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 60dvh;
    overflow-y: auto;
    justify-content: space-evenly;
}

#rightColumn{
    width: 49.5%;
    height: 100%;
}
#leftColumn {
    width: 49.5%;
    height: 100%;
}

.exercise-item {
    width: 85%;
    min-height: 180px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.exercise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.exercise-item img {
    width: 70%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 10px;
}

.exercise-item p {
    margin-top: 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}



#detailedElementInfo {
    display: none;
    position: absolute;
    z-index: 16;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 550px;
    height: 60dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    -webkit-box-shadow: 5px 5px 15px 5px #000000;
    box-shadow: 5px 5px 15px 5px #000000;
    overflow-y: auto;
}

#closeDetailedViewBtn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 35px;
    height: 35px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s;
}

#closeDetailedViewBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

#elementTitle {
    white-space: normal;
    text-align: center;
    font-size: clamp(18px, 4dvw, 32px);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    max-width: 90%;
}


#elementImage {
    display: block;
    max-width: 80%;
    height: auto;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    position: relative;
    top: 20%;
}

#moreInformation {
    background: rgba(0, 0, 0, 0.05);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    margin: 20px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#elementName {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

#elementGroup,
#elementDifficulty,
#validEnding {
    font-size: 16px;
    color: #555;
    background: rgba(0, 0, 0, 0.07);
    padding: 5px 10px;
    border-radius: 8px;
    display: inline-block;
}




#detailedElementInfo #addToList {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#detailedElementInfo #addToList:hover {
    background-color: #45a049;
}

#isLearned {
    margin-bottom: 3px;
    background-color: rgb(27, 61, 95);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
#isLearned:hover {
    background-color: rgb(38, 85, 133);
}



#closeElementSelection {
    position: relative;
    left: 50%;
    bottom: 0;
    width: 40dvw;
    transform: translateX(-50%);
    margin-top: 6dvh;
    background-color: red;
    color: white;
}






#selected-exercises-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 10%;
    width: 93dvw;
    max-width: 650px;
    left: 50%;
    transform: translateX(-50%);
}

.exercise-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.exercise-number {
    font-size: 18px;
    font-weight: bold;
    width: 40px;
    text-align: center;
}

.exercise-image {
    width: 82%;
    height: auto;
    border-radius: 5px;
}

.exercise-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.5em;
    max-height: 4.5em;
}


.trash-icon {
    font-size: 20px;
    color: #ff4d4d;
    cursor: pointer;
}

.exercise-item:hover {
    background-color: #f0f0f0;
}


.exercise-table img {
    max-width: 100px;
    display: block;
    margin-top: 5px;
}
.exercise-table img {
    max-width: 100px;
    display: block;
    margin-top: 5px;
}


.exercise-table {
    width: 90%;
    border-collapse: collapse;
    margin-top: 15px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.exercise-table th {
    border: 1px solid black;
    padding: 5px;
    text-align: left;
}

.exercise-table th {
    background-color: #f4f4f4;
}

.exercise-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border: 1px solid #ddd;
    margin: 5px 0;
}

.trash-icon {
    cursor: pointer;
    color: red;
    font-size: 18px;
}

.exercise-table tr {
    border-bottom: 1px solid black;
}

.exercise-table tr:active {
    background-color: #f0f0f0;
}

.action-cell {
    display: flex;
    align-items: center;
    gap: 5px;
}


#safeRoutineBtn {
    color: white;
    background-color: #8c7c34;
}


#exercise-summary-container {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    color: #333;
}

#exercise-summary-container p {
    margin: 5px 0;
    font-size: 14px;
}

#exercise-summary-container p[style*="color: orange"] {
    background: rgba(255, 165, 0, 0.1);
    padding: 8px;
    border-left: 4px solid orange;
    border-radius: 5px;
}

#exercise-summary-container p[style*="color:red"] {
    background: rgba(255, 0, 0, 0.1);
    padding: 8px;
    border-left: 4px solid red;
    border-radius: 5px;
}



















#memberExerciseList {
    display: none;
    position: absolute;
    z-index: 1;
    top: 11%;
    left: 0;
    width: 100%;
    height: 89%;
    background-color: white;
    overflow-y: auto;
    height: 89%;
}
#hideMemberExercise {
    background-color: transparent;
}
#memberExerciseList h2 {
    text-align: center;
    color: black;
}
#memberExerciseList h3 {
    text-align: left;
    color: black;
}

#exerciseContainer {
    width: 90%;
    margin: 0 auto;
    margin-top: 8%;
    overflow-y: auto;
}

.device-button {
    width: 100%;
    padding: 10px;
    background-color: #ddd;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    margin-top: 5px;
    display: flex;
}

.device-button:hover {
    background-color: #bbb;
}

.device-name {
    text-align: left;
    flex-grow: 1;
}

.device-difficulty {
    text-align: right;
    font-weight: bold;
}




.ratingBtn {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4c7636;
    color: white;
}

#StarRating {
    font-size: 30px;
    color: #ccc;
    cursor: pointer;
    margin-bottom: 10%;
}

#StarRating .star.filled {
    color: gold;
}

#rating-InfoPanel {
    border-radius: 15px;
    background-color: #dfdfdf;
    text-align: center;
}
#rating-InfoPanel h2{
    position: relative;
    margin-bottom: 1px;
}




#listBox {
    display: flex;
    justify-content: space-evenly;
}