/*
 * Studiengang MultiMediaTechnology / FHS
 * Autor: Lisa Buchendorfer
 * Zweck: MultiMediaProjekt 1 
 */

/************************************************************/
/** Fonts **/
/************************************************************/

/* RUBIK REGULAR (400) */
@font-face {
  font-family: 'Rubik';
  src: url('fonts/Rubik-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* RUBIK MEDIUM (500) */
@font-face {
  font-family: 'Rubik';
  src: url('fonts/Rubik-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

/* RUBIK BOLD (700) */
@font-face {
  font-family: 'Rubik';
  src: url('fonts/Rubik-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/************************************************************/
/** Global **/
/************************************************************/
body {
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  font-weight: 400;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Rubik', sans-serif;
  font-size: 20px;
  background-color: #1A1A1A;
  color: #F5F6FA;
}

main {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

main h1 {
  margin-bottom: 0;
}

main p {
  margin-top: 0;
}

.btn {
  background-color: #1E5BC3;
  color: #EAEAEA;
  border: none;
  width: 170px;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #16428e;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/************************************************************/
/** Header **/
/************************************************************/
nav {
  position: relative;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: transparent;
  z-index: 999;
  height: 48px;
  padding: 1rem 1rem 0.2rem 1rem;
  border-bottom: 1px solid #333333;
}

nav ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin-right: 1rem;
}

nav a {
  display: block;
  text-decoration: none;
  color: #888888;
  font-weight: 500;
  padding: 0.5rem 1.3rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s;
}

nav a:hover,
nav a.active {
  border-bottom-color: #1E5BC3;
  color: #F5F6FA;
}

nav ul.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  background-color: #222;
  border: 1px solid #333333;
  border-radius: 4px;
  min-width: 160px;
  padding: 0;
  z-index: 1000;
}

nav ul.dropdown-menu li {
  margin: 0;
}

nav ul.dropdown-menu li a {
  padding: 0.5rem 1rem;
  color: #888888;
  text-align: center;
  white-space: nowrap;
}

nav ul.dropdown-menu li a:hover {
  background-color: #1E5BC3;
  color: #F5F6FA;
}

nav li.dropdown {
  position: relative;
}

nav li.dropdown:hover>ul.dropdown-menu {
  display: block;
}

.nav-link {
  height: 34px;
}

.disabled {
  color: #555;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
  border-bottom-color: transparent;
}

.login-link {
  float: right;
  margin-right: 2rem;
}

/************************************************************/
/** Footer **/
/************************************************************/
footer {
  position: relative;
  bottom: 0;
  left: 0;
  width: 100%;
  font-weight: 500;
  background-color: transparent;
  color: #888888;
  padding: 0.8rem;
  z-index: 1000;
  border-top: 1px solid #333333;
}

footer ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin: 0 2rem 0 1rem;
  padding: 0;
}

footer ul li {
  margin: 0;
}

footer a.impressum-link {
  text-decoration: none;
  color: #888888;
  font-weight: 500;
}

footer a.impressum-link:hover {
  color: #F5F6FA;
}

/************************************************************/
/** Simulator **/
/************************************************************/
#cube {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 27vw;
}

#controls {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 0.3rem;
}

.upper-text {
  position: fixed;
  top: 5rem;
  text-align: center;
  color: #888888;
  font-size: 1.1rem;
}

.solution-left {
  position: fixed;
  left: 1rem;
  top: 4rem;
  width: 32vw;
  color: #888888;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-right {
  position: fixed;
  right: 1rem;
  top: 4rem;
  width: 32vw;
  color: #888888;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
}

.solution-container {
  display: flex;
  align-items: center;
  vertical-align: middle;
}

.solution-text {
  margin-left: 1rem;
}

.solution-steps {
  margin-bottom: 0.5rem;
  margin-top: 2.5rem;
}

.solution-container img {
  height: 5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  width: auto;
  vertical-align: middle;
}

.right {
  text-align: right;
}

.toggleBtn {
  position: fixed;
  bottom: 6rem;
  left: 1rem;
}

.hidden {
  display: none !important;
}

/************************************************************/
/** Timer **/
/************************************************************/

.timer-display {
  font-size: 8rem;
  margin: 1rem 0;
  min-height: 1em;
  color: #FF3B30;
}

.scramble {
  font-size: 2rem;
  word-spacing: 0.5rem;
  margin: -3rem 0 6rem 0;
}

.layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1rem;
}

.stats-panel {
  position: fixed;
  font-size: 18px;
  left: 0.5rem;
  top: 67px;
  width: 275px;
  overflow-y: auto;
  border-collapse: collapse;
  margin-top: 1rem;
  bottom: 100px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#stats-list th,
#stats-list td {
  text-align: right;
  padding: 0.2em 0.6em;
}

.stats-summary {
  padding: 0 0 0.5em 0.5em;
}

.summary {
  margin-top: -2rem;
}

.timer-area {
  text-align: center;
  margin-left: 120px;
  padding: 1rem;
}

.timer-display {
  font-size: 7rem;
  color: #FF3B30;
  margin: 2rem 0;
}


/************************************************************/
/** Trainingsarea **/
/************************************************************/
table {
  width: 65%;
  border-collapse: collapse;
  margin-bottom: 3rem;
}

th {
  padding: 0.7rem;
  text-align: center;
  border: 1px solid #333333;
}

td {
  padding: 0.4rem;
  text-align: center;
  border: 1px solid #333333;
}

img {
  height: 110px;
}

.description {
  width: 60vw;
}

/************************************************************/
/** Login/Register **/
/************************************************************/
form {
  border: 1px solid #333333;
  border-radius: 12px;
  height: auto;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

form h2 {
  text-align: center;
  margin-top: -0.8rem;
  color: #1E5BC3;
}

.userbtn {
  display: block;
  margin: 0 auto;
  justify-content: center;
}

input[type="text"],
input[type="password"] {
  font-size: 18px;
  margin: 0.5rem 0;
  padding: 0.35rem;
  border-radius: 12px;
}

.link {
  margin-top: -1rem;
}

.link a {
  color: #1E5BC3;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}

/************************************************************/
/** Impressum/Datenschutz **/
/************************************************************/

.impressum {
  color: #1E5BC3;
  margin: 3rem 0 1.5rem 0;
}

.impressum-border {
  margin: 2rem 0;
  border: 2px solid #1E5BC3;
  width: 65%;
  height: auto;
  padding: 2rem 0;
  border-radius: 12px;
  text-align: center;
}

.impressum-border h1 {
  margin-top: 0rem;
}

.impressum-text {
  text-align: justify;
  font-size: 16px;
  padding: 0 2rem;
}

.link {
  color: white;
}