/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/

html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
}

body {
    line-height: 1;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

nav ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

a {
    margin: 0;
    padding: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    text-decoration: none;
}

/* change colours to suit your needs */
ins {
    background-color: #ff9;
    color: #000;
    text-decoration: none;
}

/* change colours to suit your needs */
mark {
    background-color: #ff9;
    color: #000;
    font-style: italic;
    font-weight: bold;
}

del {
    text-decoration: line-through;
}

abbr[title],
dfn[title] {
    border-bottom: 1px dotted;
    cursor: help;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* change border colour to suit your needs */
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #cccccc;
    margin: 1em 0;
    padding: 0;
}

input,
select {
    vertical-align: middle;
}

/*Stylesheet begin!*/
img {
    width: 100%;
}

header {
    /*Level 1*/
    display: flex;
    flex-direction: column;
    background-color: antiquewhite;
    margin-bottom: 0;
}

#logoHolder {
    /*Level 2 - header*/
    text-align: center;
}

#actualHeaderHolder {
    /*Level 2 - header*/
    display: flex;
    flex-direction: column;
    background-color: linear-gradient;
}

#title {
    /*Level3-actualHeaderHolder*/
    vertical-align: middle;
    width: 100%;
    text-align: center;
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: var(--mainHeaderSize);
    font-weight: bold;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: middle;
    background: transparent;
}

#menuBar {
    /*Level 3 - actualHeaderHolder*/
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#sessionControlDiv {
    /*Level 4 - menuBar*/
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
    border-radius: 1em;
    width: 50%;
}

#sessionControlDiv * {
    margin: 0.5em;
}

#sessionDiv {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#exerciseForm[hidden] {
    display: none !important;
}

#check[hidden] {
    display: none !important;
}

#sessionDiv[hidden] {
    display: none !important;
}

#menuContainer {
    /*Level 4 - menuBar*/
    display: flex;
    flex-direction: row;
    padding-left: 3%;
}

#inlineSignupButton,
#inlineLoginButton,
#logoutButton,
#inlineUsernameDisplay {
    /*Level 5 - currentUser*/
    width: 5em;
    text-align: center;
    height: 100%;
    padding: 10px;
    margin-right: 10px;
}

#inlineUsernameDisplay {
    /*Level 5 - currentUser*/
    font-size: 18px;
    font-weight: bold;
    color: var(--menu-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

#currentUser {
    /*Level 4 - menuBar*/
    justify-self: flex-end;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

#menuLogo {
    width: 4em;
    margin-left: -3%;
    padding: 4px;
    display: flex;
    align-items: center;
}

#menuTitle {
    /*Level 4 - menuContainer [ALSO menuObject]*/
    width: 3em;
    padding-left: 0.3em;
    padding-right: 0.3em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#menuOptionBar {
    /*Level 4 - menuContainer [ALSO menuObject]*/
    display: flex;
    flex-direction: row;
    width: 100%;
}

#darkmodeButton {
    /*Level 3 - siteBodyp*/
    transform: scale(1.2);
}

.menuObject {
    /*Level5 - menuOptionBar [BOTH menuTitle and menuOption]*/
    font-size: 20px;
}

.menuOption {
    /*Level 5 - menuOption Bar AND Level 4 - menuContainer*/
    padding-left: 1em;
    padding-right: 1em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.siteBody {
    /* Level1 */
    padding-left: 7em;
    padding-right: 7em;
    padding-top: 2em;
    padding-bottom: 5em;
    margin-top: 0;
    margin-left: var(--bodyMargin);
    margin-right: var(--bodyMargin);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

:root {
   --bodyMargin: 10em;
   --defaultFont: Arial, Helvetica, sans-serif;

   --mainHeaderSize: 2.5em;
   --middleMainHeaderSize: 2em;
   --smallHeaderSize: 1.5em;

   --link-color: rgb(255, 230, 0);
   --link-color-hover: rgb(237, 255, 75);
   --link-color-active: rgb(222, 255, 152);

   --border-color: rgb(255, 230, 0);
   --devider-color: rgb(239, 219, 0);

   --table-button-color: rgba(255, 255, 255, 0.146);
   --table-button-color-hover: rgba(255, 255, 255, 0.189);
   --table-button-color-active: rgba(255, 255, 255, 0.231);
   --table-button-color-textcolor: rgb(255, 230, 0);
   --table-cell-background-color: rgba(255, 255, 255, 0.075);
   --table-object-background-color: rgba(255, 255, 255, 0.146);
   --table-object-background-color-hover: rgba(255, 255, 255, 0.237);
   --table-object-background-color-active: rgba(255, 255, 255, 0.308);

   --header-gradiant: linear-gradient(to top, rgba(42, 61, 155, 1) 0%, rgba(36, 201, 174, 1) 91%);
   --header-color: rgb(255, 230, 0);
   --button-input-color: rgb(223, 201, 0);

   --title-color: rgb(240, 240, 240);
   --text-color: rgb(240, 240, 240);

   --menu-bar-background: rgba(49, 49, 49, 0.648);
   --menu-deviders-color: rgba(193, 193, 193, 0.42);
   --menu-text-color: rgb(220, 220, 220);
}

h1, h2, h3 {
    text-align: center;
    margin-top: 0.5em;
    margin-bottom: 2em;
}

h1 {
    font-size: var(--mainHeaderSize);
}

h2 {
    font-size: var(--middleMainHeaderSize);
}

h3 {
    font-size: var(--smallHeaderSize);
}

button {
    padding: .5em;
    margin-top: 1em;
    margin-bottom: 1em;
}

body {
    font-family: var(--defaultFont);
}

#exercise-tables, table, tr, th, td {
    border: solid .1em;
    padding: 1em;
    text-align: center;
    vertical-align: middle;
}

#exercise-tables, table {
    margin-top: 2em;
}

#plan-section, #exercise-tables, table, tr {
    width: 100%;
}

.linkButton {
    padding: .5em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.section div div h3, .section div h3 {
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    border-top: solid;
    border-bottom: solid;
    margin-top: 2em;
}

.section div h2 {
    margin-top: 2em;
    margin-bottom: -0.5em;
}

#sessionDiv {
    width: 100%;
}

#startStopSession, #startSkipExercise, #resumePauseSession {
    width: 100%;
    height: 5em;
    font-size: large;
}

.defaultButton {
    text-decoration: none;
    padding: .75em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    margin-top: .5em;
    margin-bottom: .5em;
    border: none;
    border-radius: .5em;
    -webkit-border-radius: .5em;
    -moz-border-radius: .5em;
    -ms-border-radius: .5em;
    -o-border-radius: .5em;
}

.tableButtonContainer {
    padding: 0;
}

.tableButton {
    width: 100%;
    height: 6em;
    margin-top: 0;
    margin-bottom: 0;
    border: none;
    font-weight: bold;
}

#viewSection {
    padding-bottom: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
    border-collapse: collapse;
    display: flex;
    flex-direction: column;
}

#viewSection span {
    margin-top: 1em;
}

#plan-table-table tr td input {
    width: 5em;
}

#exercise-tables table tr td input {
    width: 3em;
}

#signupButton,
#logoutButton,
#loginButton {
    padding: 1em;
}

#exercise-tables table tr td select, 
#exercise-tables table tr td input, 
#plan-table-table tr td input,
#plan-table-table tr td select {
    text-align: center;
    padding: 1em;
    border: none;
    border-radius: .4em;
    -webkit-border-radius: .4em;
    -moz-border-radius: .4em;
    -ms-border-radius: .4em;
    -o-border-radius: .4em;
}

#username,
#password,
#email,
#weight,
#size,
#birthday,
.styledInput,
.styledArea {
    padding: .5em;
    text-align: center;
    border: none;
    border-radius: .4em;
    transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -webkit-border-radius: .4em;
    -moz-border-radius: .4em;
    -ms-border-radius: .4em;
    -o-border-radius: .4em;
}

/* input[type="checkbox"]:checked {
    color: yellow;
} */

.gameDiv {
    width: 100%;
}

#gameDiv canvas {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

canvas {
      width: 100%;
      max-width: 900px;
      border-radius: 12px;
      color: #a6a6a6;
      -webkit-border-radius: 12px;
      -moz-border-radius: 12px;
      -ms-border-radius: 12px;
      -o-border-radius: 12px;
}

textarea {
    resize: none;
}

#formContainer {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#exerciseForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#liveGraph {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
}

#exerciseDescription {
    width: 100%;
    max-width: 40em;
}

/* Ersetze die vorhandene breite-Regel */
#plan-section, table {
    width: 100%;
}

/* Zentriere das exercise-tables-Container */
#exercise-tables {
    width: auto;
    max-width: 900px; /* anpassen nach Wunsch */
    margin: 2em auto; /* oben/unten 2em, horizontal zentriert */
    box-sizing: border-box;
}

/* Responsive table wrapper — erlaubt Scroll statt Rauslaufen */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 0 1rem; /* verhindert Kontakt mit Seitenrand */
  margin: 0 auto;
}

/* Exercise-tables: begrenzte Breite und zentriert */
#exercise-tables {
  width: auto;
  max-width: 1200px; /* anpassen */
  margin: 2em auto;
  box-sizing: border-box;
  overflow: visible;
}

/* Table selbst skalierbar und mit festem Layout für vorhersehbares Verhalten */
#exercise-tables table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* Zellen: erlauben Umbruch und keine Mindestbreite */
#exercise-tables th,
#exercise-tables td {
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
  padding: 0.5em; /* kleiner als vorher für mobiles */
  box-sizing: border-box;
}

/* Formularelemente in Zellen passen sich an */
#exercise-tables input,
#exercise-tables select,
#exercise-tables textarea,
#exercise-tables .tableButton {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

#exercises {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.exerciseObject {
    border-radius: 1em;
    display: flex;
    flex-direction: column;
    margin-top: 2em;
    padding: 2em;
    width: 50%;
}

.exerciseTitle {
    text-align: center;
    font-weight: bold;
    font-size: larger;
}

.exerciseObject * {
    margin-bottom: 0.5em;
}

.exerciseObject div {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* Checkbox-Container linksbündig ausrichten - nur im Edit-Modus */
.exerciseObject .checkboxContainer {
    justify-content: flex-start;
}

/* Checkbox-Container im Formular linksbündig ausrichten */
#exerciseForm > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    margin: 0.5em 0;
}

#exerciseForm > div label {
    margin: 0;
}

#exerciseForm > div input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* Checkbox-Container für Edit-Funktion */
.checkboxContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5em;
    margin: 0.5em 0;
}