@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");

/*variables*/
:root {
  --textcolor: rgb(0, 0, 0);
  --color: rgb(217, 137, 67);
  --bordercolor: rgb(255, 255, 255);
  --backgroundcolor: rgb(134, 134, 134);
  --borderradius: 5px;
  --bordersmall: 0.1rem solid;
  --ti-cursor-font-size: 4rem;
}

/*all Stylings*/
* {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
  line-height: 1.5;
}
html {
  scroll-behavior: smooth;
}
/*text Stylings*/
h1,
h2,
h3,
p {
  color: var(--textcolor);
  margin: 0;
  padding-left: 10px;
  padding-right: 10px;
}
a {
  display: flex;
  margin-bottom: 5px;
  color: rgb(182, 12, 12);
  border-color: var(--bordercolor);
}

p {
  font-size: 1rem;
}

h1 {
  font-size: 2.5rem;
}

body {
  background-color: var(--backgroundcolor);
  margin: 0;
}

article,
section {
  width: 100%;
  margin: 0 auto;
  text-align: justify;
  hyphens: auto;
}

article {
  margin-bottom: 10px;
}

/*navigation*/
.navbar,
.navsiteleft,
.default {
  transition: width 0.5s, height 1s, opacity 1s;
  transition-timing-function: ease-out;
  grid-row-start: 2;
  border-radius: var(--borderradius);
  border: var(--bordersmall);
}

.default {
  overflow: hidden;
}

.expandl {
  width: 5rem;
  height: 13rem;
  background-color: var(--color);
  grid-column: 1;
}

.expandr {
  width: 5rem;
  height: 13rem;
  background-color: var(--color);
  grid-column: 3;
}

.initLoad {
  background-position: center;
  margin: 2px;
  width: calc(2.5rem - 2px - (2px * 2));
  height: calc(2.5rem - 2px - (2px * 2));
  background-image: url(/marian/ressource/menu.png);
  background-size: contain;
}

/*navbar*/
.navbar {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color);
  grid-column: 3;
}

.navbar p {
  font-size: 1.5rem;
}

.navbar .content {
  transition: opacity 0.2s;
  transition-timing-function: ease-out;
  opacity: 0;
  overflow: hidden;
}

.expandr .content {
  transition: opacity 2s;
  opacity: 1;
  overflow: hidden;
}

/*navsite*/
.navsiteleft {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--color);
  grid-column: 1;
}

.navsiteleft .content {
  transition: opacity 0.5s;
  opacity: 0;
}

.expandl .content {
  transition: opacity 2s;
  opacity: 1;
}

/*main section*/
.main_sec {
  background-color: var(--color);
  grid-row-start: 2;
  grid-row-end: 6;
  grid-column: 2;
  width: 100%;
  border: var(--bordersmall);
  border-color: var(--bordercolor);
  border-radius: var(--borderradius);
  display: grid;
  grid-template-columns: repeat(2, 50%);
  grid-auto-rows: min-content;
}

#wrapper {
  background-color: var(--backgroundcolor);
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: 5rem repeat(3, auto);
  gap: 0.2rem;
}

#header {
  grid-row: 1;
  grid-column: 1/4;
  text-align: center;
}

#header h1 {
  font-size: 4rem;
}

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

#Canvas {
  grid-column: 2;
  grid-row: 2;
}

#canvas1 {
  width: 100%;
  background-color: rgb(255, 255, 255);
  border: var(--bordersmall);
  display: block;
}

#topic {
  grid-row: 1;
  grid-column: 1/3;
}

#buttonarray {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

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

#video {
  grid-column: 1;
  grid-row: 3;
}

#video video {
  width: 100%;
  height: 100%;
}

#canvas3d_text {
  display: flex;

  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#canvas3d {
  grid-column: 2;
  grid-row: 4;
  width: 100%;
}

#canvas3d canvas {
  width: 100% !important;
  height: 100% !important;
}

#pdf iframe {
  width: 100%;
  aspect-ratio: 1/1;
}

#pdf {
  width: 100%;
  grid-row: 5;
  grid-column: 1;
}

#audio {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  grid-column: 2;
  grid-row: 6;
}

#audio_text {
  grid-column: 1;
  grid-row: 6;
}

@media only screen and (max-width: 1800px) {
}
@media only screen and (max-width: 600px) {
  .expandr {
    display: none;
  }
  .navbar {
    display: none;
  }

  .main_sec {
    display: block;
  }
  #canvas3d {
    max-width: 600px;
  }

  #pdf iframe {
    width: 500px;
  }
  #Canvas {
    width: 400px;
  }
  #header h1 {
    font-size: 1.4rem;
    --ti-cursor-font-size: 1.4rem;
  }

  #wrapper {
    grid-template-rows: 2rem repeat(3, auto);
  }
}
