@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto Condensed', sans-serif;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  color: #0a1a2e;
}

/* LAYOUT */
.app {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  max-width: 150px;
}

.sidebar h1 {
  margin-bottom: 10px;
  text-align: center;
}

.sidebar h1 .title-1 {
  color: #103258;
}

.sidebar h1 .title-2 {
  color: #0a808d;
}

.sidebar p {
  margin-bottom: 20px;
  color: #0a1a2e;
  text-align: center;
  margin-bottom: 6px;
}

.exercise-list {
  list-style: none;
}

.exercise-list li {
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: 0.2s;
}

.exercise-list li:hover {
  background: #e0f2fe;
  transform: scale(1.02);
}

.exercise-list li.active {
  background: #0a808d;
  color: white;
}

/* MAIN */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* AREA */
#exercise-area {
  width: 500px;
  height: 500px;
  background: black;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

#exercise-area:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
}

/* BALL */
#ball,
#ball2 {
  width: 20px;
  height: 20px;
  background: #0a808d;
  border-radius: 50%;
  position: absolute;
  display: none;
  transition: opacity 0.05s;
}

/* Ponto inativo no modo saccade */
#ball.saccade-inactive,
#ball2.saccade-inactive {
  opacity: 0.25;
  background: #0a808d;
}

/* FULLSCREEN: bolas maiores */
#exercise-area:fullscreen #ball,
#exercise-area:fullscreen #ball2 {
  width: 40px;
  height: 40px;
}

/* OPTOKINETIC */
#optokinetic {
  position: absolute;
  width: 300%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    white 0px,
    white 60px,
    black 60px,
    black 120px
  );
  display: none;
}

/* CONTROLES */
.controls {
  margin-top: 20px;
  text-align: center;
}

button,
select {
  padding: 10px;
  margin: 5px;
  border: none;
  border-radius: 8px;
}

button {
  background: #0a808d;
  color: white;
  cursor: pointer;
  opacity: 0.9;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
  opacity: 1;
}

button:active {
  transform: scale(0.95);
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  padding: 20px;
  margin: 20% auto;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FULLSCREEN */
#exercise-area:fullscreen {
  width: 100vw;
  height: 100vh;
  cursor: none;
}