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

body {
  background: linear-gradient(
    221deg,
    rgba(142, 155, 167, 1) 0%,
    rgba(81, 85, 101, 1) 34%,
    rgba(97, 121, 113, 1) 74%,
    rgba(196, 246, 194, 1) 100%
  );
  /* margin: 0; */
  height: 100vh;
  width: 100vw;
}

h1 {
  text-align: center;
  font-size: 40px;
  /* margin-bottom: 3.5em; */
  /* font-weight: bolder; */
  text-decoration: overline underline;
  font-family: cursive;
  color: black;
  /* margin-bottom: 10%; */
  font-weight: lighter;
}

input {
  font-size: 38px;
  text-align: center;
  border: 2px solid black;
  margin-right: 10px;
  /* padding: 0.1em 5px; */
  border-radius: 10px;
  height: 40px;
  width: 150px;
  /* background-color: deepskyblue; */
  background: rgb(142, 155, 167);
  background: linear-gradient(
    221deg,
    rgba(142, 155, 167, 1) 0%,
    rgba(81, 85, 101, 1) 34%,
    rgba(97, 121, 113, 1) 74%,
    rgba(196, 246, 194, 1) 100%
  );
}

.devise {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5em 0;
}

.egal {
  margin: 0 20px;
}

.time {
  text-align: center;
  margin-top: 6em;
  font-family: cursive;
  font-size: 1.5rem;
  /* margin-bottom: 5%; */
  color: black;
  padding: auto;
}

div {
  text-align: center;
}

/* html { */
/* background: transparent; */
/* background-color: deepskyblue; */
/* background: rgb(142, 155, 167); */
/* height: 50vh; */

/* background: linear-gradient( */
/* 221deg, */
/* rgba(142, 155, 167, 1) 0%, */
/* rgba(81, 85, 101, 1) 34%, */
/* rgba(97, 121, 113, 1) 74%, */
/* rgba(196, 246, 194, 1) 100% */
/* ); */
/* } */

select {
  /* font-weight: bold; */
  width: 150px;
  height: 40px;
  border-radius: 10px;
  font-family: cursive;
  font-size: 1.5em;
  text-align: center;
  /* background-color: deepskyblue; */
  /* background: rgb(142, 155, 167); */
  background: linear-gradient(
    221deg,
    rgba(142, 155, 167, 1) 0%,
    rgba(81, 85, 101, 1) 34%,
    rgba(97, 121, 113, 1) 74%,
    rgba(196, 246, 194, 1) 100%
  );
  border: 2px solid black;
  color: black;
  text-transform: uppercase;
}

/* .design { */
/* margin-top: 50h;  */
/* transform: translateY(10%); */
/* } */

#container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 20px auto;
  z-index: 1;
  /* width: 100%; */
  max-width: 800px;
  position: relative;
}

img {
  /* height: 100px; */
  /* width: 100px; */
  border-radius: 10px;
}

/* Bidirectional Arrows */
.arrowbi {
  color: black;
  font-size: 50px;
  /* font-family: cursive; */
}

/* Logo with rotating arrows */
#logo {
  /* position: relative; */
  /* width: 100px; */
  /* height: 100px; */
  /* margin-bottom: 20px; */
  z-index: 0;
}

.circle {
  /* position: absolute; */
  /* top: 0; */
  /* left: 0; */
  /* width: 100%; */
  /* height: 100%; */
  border-radius: 50%;
  animation: rotate 5s linear infinite;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  /* margin-bottom: 100px; */
}

.arrow {
  width: 20px;
  height: 20px;
  background-color: black;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  position: absolute;
}

.arrow:nth-child(1) {
  transform: rotate(0deg) translateX(40px);
}

.arrow:nth-child(2) {
  transform: rotate(120deg) translateX(40px);
}

.arrow:nth-child(3) {
  transform: rotate(240deg) translateX(40px);
}

#animation-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.currency-symbol {
  font-size: 50px;
  font-family: cursive;
  /* font-weight: bold; */
  color: black;
  position: absolute;
  /* top: 0; */

  /* top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

button {
  border-radius: 10px;
  background: linear-gradient(
    221deg,
    rgba(142, 155, 167, 1) 0%,
    rgba(81, 85, 101, 1) 34%,
    rgba(97, 121, 113, 1) 74%,
    rgba(196, 246, 194, 1) 100%
  );
  border: 2px solid black;
}

@media (max-width: 800px) {
  /* Conteneur principal des blocs */
  .blocks {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre les éléments en colonne */
  }

  /* Le conteneur de l'input et select */
  #container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  /* Les champs de saisie et les boutons s'étendent sur toute la largeur */
  #input-value,
  #output-value,
  #input-currency,
  #output-currency,
  .arrowbi {
    width: 100%;
    max-width: 400px; /* Ajustement facultatif pour éviter trop d'étirement */
    margin: 10px 0; /* Espace entre les éléments */
  }

  /* L'en-tête et le design central */
  .design {
    text-align: center;
  }

  /* Le logo (arrows) centré */
  #logo {
    margin-bottom: 20px; /* Espace en bas du logo */
  }

  /* Ajuster l'affichage de l'animation (facultatif) */
  #animation-container {
    display: none;
    /* flex-direction: column;
    align-items: center; */
  }

  .currency-symbol {
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .blocks {
    height: 100vh;
    width: 100vw; /* Assure que le conteneur occupe presque toute la largeur de l'écran */
    background: linear-gradient(
      221deg,
      rgba(142, 155, 167, 1) 0%,
      rgba(81, 85, 101, 1) 34%,
      rgba(97, 121, 113, 1) 74%,
      rgba(196, 246, 194, 1) 100%
    );
  }
}
