/* Reset styles */
body {
  margin: 0;
  padding: 0;
  background-image: linear-gradient(to top, #dfe9f3 0%, white 100%);
}

/* Main container */
#website-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
  background-position: 0 0, 10px 10px;
}


/* Controls */
.controls {
  
  text-align: center;
}

.controls label {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.controls input[type="range"] {
  width: 100%;
  margin: 10px;
  /* Add styling for physics theme */
  background: linear-gradient(to top, #dfe9f3 0%, white 100%);
  border: 1px solid #2b4293;
  cursor: pointer;
}

.controls button {

  padding: 0.5rem 1rem;
  font-size: 16px;
  font-weight: bold;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.controls button:hover {
  background-color: #6a91b9;
}

/* Concept list */
#concept-list {
  margin-top: 20px;
  list-style-type: none;
  padding: 0;
}

#concept-list li {
  margin-bottom: 10px;
}
/* Toggle container */
.toggle-container {
  text-align: center;
  margin-top: 20px;
}

#toggleBtn {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: bold;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

#toggleBtn:hover {
  background-color: #bea2e7;
}

#concept-list {
  display: none;
  margin-top: 10px;
}

#concept-list.visible {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
  margin-left: 200px;
  margin-right: 200px;
  padding: 4px;
}

#concept-list h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

#concept-list ul {
  list-style-type: none;
  padding: 0;
}

#concept-list li {
  margin-bottom: 3px;
  margin-left: 20px;
}

/* Media queries */
/* Media queries */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .controls input[type="range"],
  .controls button {
    width: 100%;
  }

  .toggle-container {
    text-align: center;
    margin-top: 20px;
  }
}
/* Canvas */
canvas {
  border: 1px solid #333;
  margin-top: 20px;
  padding-left: 0;
         padding-right: 0;
         margin-left: auto;
         margin-right: auto;
         display: block;
         height:auto;
}

/* Media query for small screens */
@media (max-width: 768px) {
  canvas {
    width: 100%; /* Make the canvas take up the full width of the screen */
    max-width: 100%; /* Set maximum width to prevent stretching */
    margin-left: 0; /* Remove left margin */
    margin-right: 0; /* Remove right margin */
  }
  
 
}


.newtons-cradle {
  --uib-size: 120px;
  --uib-speed: 1.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--uib-size);
  height: var(--uib-size);
  margin-left: 600px; 
  
}

.newtons-cradle_dot {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  width: 25%;
  transform-origin: center top;
}

.newtons-cradle_dot::after {
  content: "";
  display: block;
  width: 100%;
  height: 25%;
  border-radius: 50%;
  background-image: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
}

.newtons-cradle_dot:first-child {
  animation: swing var(--uib-speed) linear infinite;
}

.newtons-cradle_dot:last-child {
  animation: swing2 var(--uib-speed) linear infinite;
}

@keyframes swing {
  0% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }
  25% {
    transform: rotate(70deg);
    animation-timing-function: ease-in;
  }
  50% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
}

@keyframes swing2 {
  0% {
    transform: rotate(0deg);
    animation-timing-function: linear;
  }
  50% {
    transform: rotate(0deg);
    animation-timing-function: ease-out;
  }
  75% {
    transform: rotate(-70deg);
    animation-timing-function: ease-in;
  }
}

.controls label[for="angle-slider"] {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-right: 10px;
}

/* Additional styles for better alignment */
.controls input[type="range"] {
  width: 150px;
  margin: 10px;
  cursor: pointer;
}

.toggle-container {
  margin-top: 20px;
}

/* Media query for toggle container alignment */
@media (max-width: 768px) {
  .toggle-container {
    text-align: center;
  }
}






/* Example styling for the concept list */
#concept-list {
  margin-top: 20px;
  list-style-type: none;
  padding: 0;
}

#concept-list li {
  margin-bottom: 10px;
}

/* Example styling for the toggle button container */
.toggle-container {
  text-align: center;
}


ul {
  display: inline-grid;
  grid-auto-flow: row;
  grid-gap: 24px;
  justify-items: center;
  margin: auto;
}

@media (min-width: 500px) {
  ul {
    grid-auto-flow: column;
  }
}

a {
  color: rgb(39, 38, 38);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 hsla(0, 0%, 100%, 0.4);
}

a:hover {
  box-shadow: inset 0 -1.2em 0 hsla(0, 0%, 100%, 0.4);
}

.f:last-child {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}



/* below is just for demo styling */

#footer {
  display: flex;
  height: 10vh;
  width: 100%;
  background-image: linear-gradient(to top, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
  line-height: 1.3;
  font-family: Menlo, monospace;
}


