/* ========================================
   RESET AND BASIC STYLES
    ======================================== */
* {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========================================
     COMMON TO ALL PAGES
     ======================================== */

/* Body */
body {
  font-family: 'Roboto', sans-serif;
}

/* Main */
main {
  background-image: url('./images/background.png');
  background-repeat: no-repeat;
  background-color: #1d1d1dde;
  background-size: cover;
}

/* Navigation */
nav {
  background-color: #474646;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

nav img {
  height: 100%;
  margin-left: 10px;
  padding: 10px;
  width: 13%;
}

nav .menu-hamburger {
  display: none;
  top: 32.5px;
  right: 20px;
  width: 40px;
  margin: 24px 20px;
}

nav ul {
  display: flex;
  margin: 24px 0px;
}

nav li a {
  padding: 14px 16px;
  margin: 20px 10px;
  font-family: Arial;
  font-size: 20px;
  text-decoration: none;
  color: #fffefe;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  text-align: center;
  background-color: #1d1d1d;
  color: #fffefe;
  padding: 30px 100px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto 80px auto;
}

.footer-colonne {
  width: max-content;
}

.footer-colonne * {
  display: block;
  width: max-content;
}

footer h3 {
  margin-bottom: 20px;
  font-size: 25px;
}

footer a {
  text-decoration: none;
  color: #fffefe;
  padding: 5px 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
}

footer img {
  margin-right: 20px;
  width: 2.5rem;
  height: 2.5rem;
}

.footer-bottom img:hover {
  opacity: 60%;
  cursor: pointer;
}


/* button */
.button {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 24px;
  background-color: #002e83;
  color: #f9f9f9;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 8px #0000001a;
  transition: all 0.3s ease;
}

.button:hover {
  background-color: #002976;
  box-shadow: 0 6px 12px #00000026;
  transform: translateY(-2px);
}

/* ========================================
     HOME PAGE (INDEX)
     ======================================== */

.home {
  height: 200px;
  padding-top: 14%;
  padding-bottom: 13%;
  background-image: url("../static/images/background.png");
  background-color: #1d1d1dde;
  text-align: center;
}

.home h1 {
  color: #fffefe;
  font-size: 2em;
  margin-bottom: 10px;
}

.home h2 {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #B5C3F7;
}

.home-buttons {
  margin-top: 20px;
}

.container-top,
.container {
  color: #0c0c0c;
  background-color: #474646;
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

.container-top {
  padding-top: 20px;
}

.container {
  background-image: url('./images/mascotte-test.png');
  background-repeat: no-repeat;
  padding-bottom: 20px;
}

.container-top img,
.container img {
  margin-top: 10% !important;
  display: block;
  margin: auto;
  width: 4rem;
  height: 4rem;
}

.container-top h1,
.container h1 {
  margin-top: 5%;
  font-size: 1.3em;
}

.container-top h2,
.container h2 {
  color: #444;
  margin-top: 2%;
  margin: 5px;
  font-size: 17px;
}

.box-1,
.box-2,
.box-3,
.box-4,
.box-5,
.box-6 {
  text-align: center;
  margin: 20px;
  background-color: #bcbcbc;
  width: 300px;
  height: 250px;
  font-size: 19px;
}


/* ========================================
     VIDEO PAGE AND PLAYLIST PAGE
     ======================================== */
#zone_input {
  height: 200px;
  padding-top: 14%;
  padding-bottom: 13%;
  background-image: url('./images/mascotte-test.png');
  background-repeat: no-repeat;
  text-align: center;
}

#zone_input h2 {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #B5C3F7;
}

#zone_input h1 {
    color: #fffefe;
    font-size: 2em;
    margin-bottom: 10px;
}

form {
  display: flex;
  align-items: center;
  justify-content: center;
}

#url {
  height: 35px;
  width: 40%;
  max-width: 500px;
  padding-left: 10px;
  font-size: 17px;
  border: none;
  background-color: #ffffff;
  font-weight: 700;
  color: #000000;
}

#button-convert {
  cursor: pointer;
  height: 35px;
  width: 10%;
  font-size: 17px;
  background-color: #e33122;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

#choice_mp3_mp4 {
  text-align: center;
  cursor: pointer;
  height: 35px;
  width: 13%;
  font-size: 17px;
  background-color: #0f2781;
  color: white;
  border: none;
  transition: background-color 0.3s ease;
}

#button-convert:hover {
  background-color: #c72c1e;
  box-shadow: 0 12px 16px 0 #0000003d, 0 17px 50px 0 #00000030;
}

#choice_mp3_mp4:hover {
  background-color: #002e83;
  box-shadow: 0 12px 16px 0 #0000003d, 0 17px 50px 0 #00000030;
}

/* Alertes */
.alert-warning {
  margin-top: 5%;
  margin-left: 35%;
  margin-right: 35%;
  font-size: 15;
  text-align: center;
  color: #ffffff;
  background-color: #474646;
}

/* ========================================
     DONATION PAGE
     ======================================== */
#chibi-donation {
  display: block;
  margin-left: 40%;
}

.donation-container {
  text-align: center;
  border-radius: 10px;
  padding: 120px;
  max-width: 500px;
  margin: auto;
}

.box-donation {
  background-color: #ffffff;
  padding: 20px;
}

.qrcode {
  margin-top: 20px;
}

.btc {
  margin-top: 20px;
}

.btc-address {
  font-family: monospace;
  background-color: #cacaca;
  padding: 10px;
  border-radius: 5px;
  word-wrap: break-word;
}


/* ========================================
    404 PAGE
     ======================================== */

.error404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px;
  color: #dadada;
}

.error404 img {
  height: 300px;
}

.error404 p {
  font-size: 1.25rem;
  margin-bottom: 1em;
}

/* ========================================
     PAGES TERMES ET PRIVACY
     ======================================== */

.terms,
.privacy {
  display: block;
  margin: auto;
  font-family: Arial, sans-serif;
  max-width: 900px;
  padding: 40px 20px;
  line-height: 1.7;
  color: #1f2937;
  background-color: #f9fafb7a;
  border-radius: 7%;
}

.terms h1,
.terms h2,
.privacy h1,
.privacy h2 {
  color: #111827;
}

.terms h1,
.privacy h1 {
  font-size: 2.5em;
  margin-bottom: 0.2em;
}

.terms h2,
.privacy h2 {
  font-size: 1.4em;
  margin-top: 1.5em;
}

.terms p,
.privacy p {
  margin-bottom: 1em;
}

/* ========================================
     MEDIA QUERIES - RESPONSIVE DESIGN
     ======================================== */

@media screen and (max-width:900px) {

  #zone_input {
    background-image: url('tile_background.png');
  }

  #zone_input h2 {
    font-size: 14px;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  #button-convert {
    height: 35px;
    width: 20%;
    font-size: 17px;
  }

  #choice_mp3_mp4 {
    height: 35px;
    width: 36%;
    font-size: 17px;
  }

  #url {
    width: 80%;
    height: 35px;
    font-size: 17px;
  }

  .nav-liens ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-liens li {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  nav .menu-hamburger {
    display: block !important;
    z-index: 2;
  }

  #nav-logo {
    width: 50%;
    padding-bottom: 0.5em;
  }

  .nav-liens {
    top: 0;
    left: 0;
    position: absolute;
    background-color: #2d3047f8;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -100%;
    transition: all 0.5s ease;
  }

  .nav-liens.mobile-menu {
    margin-left: 0;
  }

  #zone_input {
    padding-top: 15%;
    padding-bottom: 15%;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-colonne {
    margin-bottom: 20px;
  }

  .footer-colonne li {
    margin-bottom: 20px;
  }

  .footer-colonne img {
    width: 227px;
  }

  .footer-colonne * {
    display: revert;
    width: revert;
  }

  .footer-top h3 {
    margin-bottom: 20px;
    font-size: 19px;
  }

  .donation-container {
    padding: 20px;
  }

}
