li {
    /*list-style-type: none;*/
    margin: 0.4em 0;
}

li.none {
    font-style: italic;
}

p {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Damit der Footer immer am unteren Rand bleibt */
}

/*
header,
main {
    flex: 0 0 auto;
    /* Header und Hauptinhalt nehmen nur so viel Platz ein, wie sie benötigen 
}*/

header {
    /*background: radial-gradient(circle, rgba(0, 0, 0, 1), lightgrey, rgba(0, 0, 0, 1));*/
    background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgb(97, 97, 97) 50%, rgba(0, 0, 0, 1) 100%);
    /* Hintergrundfarbe des Headers (hellblau) */
    color: white;
    padding: 5px;
    gap: 5px;
}

footer {
    
    /*background: radial-gradient(circle, rgba(0, 0, 0, 0.99), lightgrey, rgba(0, 0, 0, 1));*/
    background: linear-gradient(to right, black 0%, black 40%, white 90%);
    /* Hintergrundfarbe des Headers (hellblau) */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    height: 10vh;
    margin-top: auto;
}

main {
    flex: 1;
    overflow-y: auto;
}


.head-container {
    display: flex;
    align-items: center;
}

.head-logo img {
    display: flex;
    height: 50px;
    width: auto;
    gap: 5px;
}

.head-center {
    display: flex;
    flex: 1;
    height: 50px;
    gap: 5px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.head-center a {
    color: white;        /* makes the link white */
    text-decoration: underline; /* optional: keeps it underlined */
}

/*
.head-center a:hover {
    color: black;      
}*/

.head-info {
    display: flex;
    flex-direction: column;
    height: 50px;
    width: auto;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* Abstand zwischen den Links */
}

nav a {
    text-decoration: none;
    font-size: 24px;
    color: white;
    font-weight: bold;
}

.footer-center {
    margin: 0 auto;
    text-align: center;
    flex: 1;
}

.footer-leftbox {
    display: flex;
    align-items: center;
    flex: 1;
}

.footer-rightbox {
    display: flex;
    align-items: center;
    flex: 1;
}

.footer-rightbox img {
    margin-left: auto;
}


/* Body Boxes ------- */

.top-flex {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: lightgrey;
    border: 1px solid black;
}

.main-flex {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: lightgrey;

}

.left-flex {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100vh;
    padding: 20px;
    background: lightgrey;
}

.left-flex img {
    margin-right: auto;
}

.right-flex {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100vh;
    padding: 20px;
    background: lightgrey;
}

/* ------------------About Us-----------------------*/
.about-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: lightgrey;

}


.about-infobox {
    display: flex;
    flex: 1;
    flex-direction: row;
    width: 100%;

}

.about-left {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: auto;
    padding: 20px;
    background: linear-gradient(135deg, white 0%, grey 100%)
}

.about-left img {
    max-height: 100%;
    max-width: auto;
    object-fit: contain;
}

.about-right {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: auto;
    padding: 20px;
    background: linear-gradient(135deg, white 0%, grey 100%)
}

.about-right img {
    max-height: 100%;
    max-width: auto;
    object-fit: contain;
}

.contact-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120vh;
    padding: 50px;
    background: linear-gradient(135deg, white 0%, grey 100%)
}

/* ------------------ Main Vier ---------------------------*/

.main-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: 1px solid #000;
    padding: 10px;
    gap: 5px;
    background: lightgrey;
}

.topline-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    border: none;
    padding: 10px;
    background: gray;
}

.js-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex: 3;
    justify-content: center;
    align-items: center;
    margin: 10px;
    /*border: 2px solid black;*/
    background-color: White;
    border-radius: 10px;
    color: white;
}

.operator-panel {
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
    height: auto;
    width: auto;
    flex: 1;
    justify-content: center;
    align-items: center;
    margin-top: 400px;
    gap: 10px;
    margin: 10px;
    background: lightgrey;
    color: black;
}

.thumbnail-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: white;
    border-radius: 10px;
    color: white;
    padding: 10px;

}

.on {
    background-color: #76a878; /* Green */
    color: white;
}

.off {
    background-color: #e7e7e7; /* Gray */
    color: black;
}

.thumbnail-container img {
    max-width: 100%;
    display: none;
}

.button-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    width: 100%;
    height: auto;
    background: white;
    border-radius: 10px;
    color: black;
    padding: 10px;
}


.roi-sel-container {
    display: flex;

    flex-direction: row;

    background: white;
    border-radius: 10px;
    color: black;
    padding: 10px 10px 10px 10px;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    align-items: center;    /* vertical centering */
    justify-content: center; /* horizontal centering */
    text-align: center;     /* optional: center-align the text itself */
    font-family: 'TT Norms', sans-serif;
    /* allow text to wrap */
    white-space: normal;
    word-wrap: break-word;     /* break long words if needed */
}


.ROI-container {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    width: 45%;
    height: 100%;
    background: transparent;
    border-radius: 10px;
    color: black;
    margin: 5px;
}

.Annotation-container {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    width: 45%;
    height: 100%;
    background: transparent;
    border-radius: 10px;
    color: black;
    margin: 5px;
}



.Learning-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: white;
    border-radius: 10px;
    color: black;
    padding: 10px;
}

.Scoring-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 10px;
    color: black;
    padding: 5px;
    margin: 5px;
}

.Scoring-result-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 70%;
    height: auto;
    background: transparent;
    border-radius: 10px;
    color: black;
    padding: 10px;
    margin: 10px;
    justify-content: center; /* vertical alignment */
    align-items: center;     /* horizontal alignment */
    text-align: center; 
}

.Diagnose-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    height: auto;
    background: transparent;
    color: black;
    padding: 5px;

}

.Result-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 80%;
    height: auto;
    background: transparent;
    border-radius: 15px;
    color: white;
    padding: 10px;
    margin: 10px;
}

.scroll-container {
    max-height: 300px; /* Set height as needed */
    overflow-y: auto;  /* Enables vertical scroll */
    padding-right: 10px; /* Optional: for spacing scrollbar */
    border: 1px solid #ccc; /* Optional: for visual clarity */
    width: 100%;
}

.scroll-container-wsi {
    max-height: auto; /* Set height as needed */
    overflow-y: auto;  /* Enables vertical scroll */
    padding-right: 10px; /* Optional: for spacing scrollbar */
    border: 1px solid #ccc; /* Optional: for visual clarity */
    width: 100%;
}

/*
.text-field {
    margin: 5px;
    padding: 5px;
    border: 1px;
    border-radius: 5px;
    
    width: 90%;
    height: auto;
    box-sizing: border-box;
}*/

#text-output {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    white-space: pre-wrap;
    /* Erlaubt Zeilenumbrüche im angezeigten Text */
}

/* Mainly to structure tje grid for multiple choise options*/
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
    margin: 20px auto;
}

.grid-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.center-login {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering */
    min-height: 70vh;       /* full viewport height */
    min-width: 95vw;
}


/* Style inputs and button inside the center-login form */
.center-login form input,
.center-login form button {
    font-size: 18px;       /* larger text */
    padding: 10px;         /* add inner spacing */
    margin: 5px 0;         /* spacing between fields */
    width: 100%;           /* make inputs full width of form */
    box-sizing: border-box; /* ensures padding doesn't break layout */
    border-radius: 10px;    /* slightly rounded corners */
}

/* Optional: style button specifically */
.center-login form button {
    cursor: pointer;
    font-weight: bold;
    background-color: #D34876; /* darker red*/
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.center-login form button:hover {
    background-color: #3BCC8E; /* nice green color on hover */
    
}

.login-flex {
    width: 400px; /* or any width you want */
}

/* Only for landing page */
body.landing-page {
    background-image: url('/static/images/landingBackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white; /* ensures text is readable */
}

.landing-page-title {
    font-size: 42px;
    margin-bottom: 10px;
    color: white;
}

.landing-page-subtitle {
    font-size: 36px;
    margin-bottom: 30px;
    color: white;
}

header.landing-page {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5), lightgrey, rgba(0, 0, 0, 0.5));
    /* Hintergrundfarbe des Headers (hellblau) */
    color: white;
    padding: 5px;
    gap: 5px;
}

footer.landing-page {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5), lightgrey, rgba(0, 0, 0, 0.5));
    /* Hintergrundfarbe des Headers (hellblau) */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    height: 10vh;
    margin-top: auto;
}

main.landing-page {
    flex: 1;
    overflow-y: auto;
    background: radial-gradient(lightgrey, rgba(0, 0, 0, 0.4));
    color: white;
    padding: 5px;
    gap: 5px;
}

.main-flex-files {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.card-container {
    flex: 1; 
    flex-direction: row; 
    display: flex;
    gap: 30px;                  /* space between left and right */
    padding: 20px;              /* space around the cards */
    background-color: #f0f0f0;  /* gray background for border effect */
    box-sizing: border-box; 
}

.left-section,
.right-section {
    flex: 1;                /* equal width */
    display: flex;
    flex-direction: column; /* stack cards if you have more than one */
    gap: 30px;              /* space between multiple cards */
}

.card-login {
    position: absolute;        /* position relative to viewport */
    top: 50%;                  /* move to 50% from top */
    left: 50%;                 /* move to 50% from left */
    transform: translate(-50%, -50%); /* shift back by half width/height */

    display: flex;
    flex-direction: column;
    width: 40%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
    background: white;
    /* Center horizontally */
    margin: 0 auto;
}

.card-login-header {
    background: #7bd7a6;
    padding: 15px 20px;
    text-align: center;
}

.card-login-header h2 {
    color: white;
    margin: 0;
}

.card-login-body {
    padding: 20px;
    background: white;
    flex: 1;
    text-align: center;
}






.card-score {
    position: relative;   /* return to normal flow */
    margin: 80px auto;    /* push down from top + center horizontally */
    width: 60%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
    background: white;
    display: flex;
    flex-direction: column;
}


.card-score-header {
    background: #7bd7a6;
    padding: 15px 20px;
    text-align: center;
}

.card-score-header h2 {
    color: white;
    margin: 0;
}

.card-score-body {
    padding: 20px;
    background: white;
    flex: 1;
    text-align: center;
}



.card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
    background: white;
}

.card-header {
    background: #3BCC8E;
    padding: 15px 20px;
}

.card-header-help {
    background: #3BCC8E;
    border-radius: 20px;
    overflow: hidden;
    /* Remove flex: 1 so it doesn't stretch */
    /* flex: 1; */
    box-shadow: 0px 4px 20px rgba(0,0,0,0.1);
    padding: 5px 15px; /* adjust padding to taste */
    color: white;
    margin: 0 0 10px 0;  /* bottom margin adds space below */
    font-size: 12px;
    display: inline-block; /* makes the box wrap tightly around the text */
    text-align: center;  /* center text horizontally */
}


.card-header h2 {
    color: white;
    margin: 0;
}

.card-body {
    padding: 20px;
    background: white;
    flex: 1;
}

.card-body nav a {
    display: block;
    padding: 10px 0;
    font-size: 20px;
    text-decoration: none;
    /*color: #0077aa; */
    color: white;
    font-weight: 600;
}

/* Right side buttons styled like center-login buttons */
.card-right-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers buttons horizontally */
    gap: 20px;             /* space between buttons */
    padding-top: 10px;
}

.card-task-wsi-help-sel {
    display: block;
    width: 100%;          /* similar size to your login form */
    text-align: center;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.card-task-wsi-help-sel:hover {
    background-color: #3BCC8E;
}

.card-task-btn {
    display: block;
    width: 350px;          /* similar size to your login form */
    text-align: center;
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}

.card-task-btn-wsi {
    display: block;
    width: 100%;          /* similar size to your login form */
    text-align: center;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.card-task-btn-gland {
    display: block;
    width: 350px;          /* similar size to your login form */
    text-align: center;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    /* Center horizontally */
    margin: 0 auto;
}

.card-task-btn-login {
    display: block;
    width: 350px;          /* similar size to your login form */
    text-align: center;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    /* Center horizontally */
    margin: 20px auto;
}

.card-task-btn-single-gland {
    display: block;
    width: 90%;          /* similar size to your login form */
    text-align: center;
    font-size: 12px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}

.card-task-btn-single-wsi {
    display: block;
    width: 90%;          /* similar size to your login form */
    text-align: center;
    font-size: 14px;
    padding: 10px 30px;
    margin: 0 auto;  
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid transparent;
    white-space: nowrap;      /* optional: keep text on one line */
}

.card-task-btn-training {
    display: block;
    width: 60%;          /* similar size to your login form */
    text-align: center;
    font-size: 18px;
    padding: 10px;
    border-radius: 10px;
    background-color: #D34876; 
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: 2px solid transparent;
}

.card-task-btn:hover {
    background-color: #3BCC8E;
    border-color: #3BCC8E;
}

.card-task-btn-wsi:hover {
    background-color: #3BCC8E;
}

/* stays green when selected */
.card-task-btn-wsi.active {
    background-color: #3BCC8E !important;
}

.card-task-btn-wsi.on {
    background-color: #3BCC8E !important;
}

.card-task-btn-gland:hover {
    background-color: #3BCC8E;
}

.card-task-btn-gland:active {
    background-color: #3BCC8E;
}

.card-task-btn-gland.on {
    background-color: #3BCC8E !important;
}

.card-task-btn-login:hover {
    background-color: #3BCC8E;
}

.card-task-btn-login:active {
    background-color: #3BCC8E;
}

.card-task-btn-single-gland:hover {
    background-color: #3BCC8E;
    border-color: #3BCC8E;
}

.card-task-btn-single-wsi:hover {
    background-color: #3BCC8E;
    border-color: #3BCC8E;
}

.card-task-btn-training:hover {
    background-color: #3BCC8E;
    border-color: #3BCC8E;
}

.about-image-container {
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;        /* vertical center */
    height: 100%;               /* or a fixed height */
}

/* Apply font to all links inside nav */
nav a {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit;        /* optional: keeps the text color of nav */
}

/* Hover effect */
nav a:hover {
    border-bottom: 2px solid #3BCC8E; /* green underline on hover */
}

/* Font */
div span {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

/* Font */
div p {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

/* Hover effect */
div a:hover {
    border-bottom: 2px solid #3BCC8E; /* green underline on hover */
}

div li {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

div h1 {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

div h2 {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

div a {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

div label {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}

div {
    font-family: 'TT Norms', sans-serif;
    text-decoration: none; /* optional: removes underline */
    color: inherit; 
}



/* Hide the default checkbox */
.grid-item input[type="checkbox"] {
    display: none;
}

/* Style the label as the visible checkbox area */
.grid-item label {
    display: inline-block;
    width: 100%;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    /*border-bottom: 2px solid transparent;  default: no line */
    border: 2px solid transparent;
}

/* 🔹 Hover (not selected): green underline */
.grid-item input[type="checkbox"] + label:hover {
    /*border-bottom: 2px solid #3BCC8E;  green */
    border: 2px solid #3BCC8E; /* green */
}

/* 🔹 Checked: green background */
.grid-item input[type="checkbox"]:checked + label {
    background-color: #3BCC8E;
    color: white;
    border-color: transparent; /* optional */
}

/* 🔹 Hover while checked: red underline */
.grid-item input[type="checkbox"]:checked + label:hover {
    border: 2px solid #D34876; /* red */
}

.gland-result-box {
    display: flex;
    flex-direction: column;   /* stack text + image vertically */
    width: 100%;
    background: white;
    border-radius: 10px;
    color: black;
    padding: 10px;
    text-align: center;
    font-family: 'TT Norms', sans-serif;

    /* Important: allow shrinking! */
    height: auto;

    /* Optional: smooth open/close animation */
    transition: all 0.3s ease;
}

#gland-result-box img {
    max-width: 100%;
    height: auto;           /* keeps image scaled correctly */
    border-radius: 10px;
    display: none;          /* default hidden */
    margin-top: 10px;
}

.gland-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers the buttons horizontally */
}

.gland-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;

    display: flex;
    flex-direction: column;
    align-items: center;   /* centers nested buttons too */
}


.gland-list li {
    width: 100%; /* let the li span full width */
    display: flex;
    justify-content: center; /* center the button inside */
}


.wsi-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers the buttons horizontally */
}

.wsi-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers nested buttons too */
}


.wsi-list li {
    width: 100%; /* let the li span full width */
    display: flex;
    justify-content: center; /* center the button inside */
}
