/* Nathan Ruffieux, 29.01.2024, Nations.css */

/* Resetting default styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  position: relative;
  height: 100vh;
}

/* Background */
body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url(../image/Nations.jpg);
  background-size: cover;
  z-index: -1;
}
.imageC {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

/* Panel for entering the code */
#myPanel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 3;
}

/* Content inside the panel */
#panelContent {
  background-color: #696464;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

/* Text area */
#inputInPanel {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  background-color: beige;
}

/* Images (plane, nuke, explosion) */
.slidingImage {
  position: absolute;
  transition: left 5s linear, top 3s linear, opacity 1s linear;
}

/* Plane */
#slidingImage1 {
  width: 300px;
  left: -100%;
}

/* Bomb */
#slidingImage2 {
  width: 100px;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Explosion */
#slidingImage3 {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s linear;
}

/* Main content container */
.blurred-rectangle {
  position: relative;
  width: 60%;
  max-width: 1300px;
  height: 50vh;
  max-height: 650px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  margin-top: 5vh;
  z-index: 2;
  overflow: auto;
  box-sizing: border-box;
}

/* Text inside the container */
.text {
  color: #333;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  margin: 10px;
  width: 90%;
  word-wrap: break-word;
  max-height: 1500%;
  overflow-y: auto;
  box-sizing: border-box;
  margin-top: 50px;
}

/* Navigation bar */
#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  color: #333;
}

/* Table containing text in the container */
#tableau {
  width: 80%;
  height: 500px;
  padding: 20px;
  overflow: auto;
  font-size: 24px;
}

/* Index */
#left-menu {
  width: 150px;
  background-color: #333;
  border: 1px solid #000000;
  border-style: ridge;
  height: 90vh;
  position: fixed;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  padding-top: 20px;
  transition: width 0.3s;
  z-index: 3;
}

/* Adjustments for different screen sizes */
@media (max-width: 768px) {
  #left-menu {
    width: 100%;
    height: 60px;
    padding-top: 0;
    bottom: 0;
  }

  #left-menu a {
    padding: 15px;
  }

  #content {
    margin-left: 0;
  }

  .blurred-rectangle,
  .text {
    width: 90%;
  }

  #left-menu.horizontal {
    height: 60px;
  }
}

@media (max-width: 600px) {
  #left-menu {
    width: 100%;
    height: 200px;
    padding-top: 0;
    bottom: 0;
  }

  #left-menu a {
    padding: 10px;
  }

  #content {
    margin-left: 0;
  }

  .blurred-rectangle,
  .text {
    width: 90%;
  }

  #left-menu.horizontal {
    height: 40px;
  }
}

/* Link styles */
#left-menu a {
  padding: 28px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: block;
  transition: 0.3s;
}

/* Active link style */
#left-menu a.active {
  background-color: #000000;
}
