/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set default font */
body {
  font-family: Arial, sans-serif;
}

/* Style the header */
header{
  background-image: url('/images/DALL·E\ 2023-06-11\ 14.27.21\ -\ A\ beautifull\ zoom\ on\ a\ classical\ marble\ statue\ of\ the\ mythical\ Atlas\,\ carying\ the\ world\ as\ a\ globe\ on\ his\ shoulders\,\ with\ a\ bit\ yellow\ but\ colorful\ ba.png');
  background-size: cover;
  background-position-y: 16%;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  height: 260px;
  position: relative;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: -1;
}

header img {
  max-height: 160px;
  margin-left: 10px; /* Add margin to the left */
}

nav {
  display: flex;
  justify-content: space-between;
  flex-grow: 1; /* Make the navigation links fill the available space */
}

nav ul {
  display: flex;
  list-style: none;
  z-index: 1;
}

nav li {
  margin-left: 20px;
}

nav a {
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  background-color:  rgba(0, 0, 0, 0.09);
  transition: all 0.2s ease;
}

nav a:hover {
  color: #f9d648;
}

/* Style the main content */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

section {
  margin-bottom: 40px;
    align-items: center;
  }

section h1 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-right: 20px;
}

section h1::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #f9d648;
  transform: translateY(-50%) rotate(45deg);
}

section p {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 20px;
}

section ul {
  list-style: none;
  margin-left: 20px;
}

section li {
  margin-bottom: 10px;
}

section li strong {
  font-weight: bold;
}


footer {
  background-color: #333;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 14px;
}

footer p {
  margin: 0;
}

footer a {
  color: #fff;
  text-decoration: none;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  header nav ul {
      flex-direction: column;
      align-items: flex-end;
  }

  header nav li {
      margin: 10px 0
  }
}

.search-bar {
  margin-bottom: 20px;
}

#search-input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #f9d648;
  border-radius: 5px;
  outline: none;
}

#search-input::placeholder {
  color: #999;
}

/* Here is the syle for the buttons on the index page*/
/* The different pictures are managed in the html file */
.visual {
  display: inline-block; /* Use display: inline-block instead of float: left */
  overflow: hidden;
  position: relative;
  background: #f1db86;
  border: 3px solid #f9d648;
  margin: 5px;
  box-shadow: 1px 1px 2px #d6d4d4;
  text-decoration: none; /* Remove text decoration from the anchor tag */
}

.visual .mask,
.visual .content,
.visual .image {
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  overflow: hidden;
  display: block;
}


.visual h2 {
  top: 10%;
  color: #fff;
  text-align: center;
  position: relative;
  font-size: 36px;
  font-family: Arial, sans-serif;
  padding: 5px;
  margin: 15px 0 0 0;
}

.visual p {
  top: 10%;
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 14px;
  position: relative;
  color: #fff;
  padding: 0px 20px 0px;
  text-align: center;
}

.visual:hover .mask { /* Apply hover effect to the .mask class when hovering over .visual */
  opacity: 1;
}


.lang img {
  transition: all 0.2s linear;
  width: 310px;
  height: 203px;
}

.lang .mask {
  opacity: 0;
  background-color: rgba(196, 161, 8, 0.51);
  transition: all 0.4s ease-in-out;
}

.lang h2,
.lang p {
  transform: translateY(100px);
  opacity: 0;
  font-family: Arial, sans-serif;
  transition: all 0.2s ease-in-out;
}


.lang:hover .mask {
  opacity: 1;
}

.lang:hover h2,
.lang:hover p,
.lang:hover a.info {
  opacity: 1;
  transform: translateY(0px);
  transition-delay: 0.2s;
}


/* flashcard */
.flashcard {
  position: relative;
  margin-left: 25%;
  width: 50%;
  height: 25%;
  perspective: 1000px;
  margin-bottom: 20px;
}

.front,
.back {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backface-visibility: hidden;
  transition: transform 0.4s;
}

.front{
  border: 3px solid #77aae4;
}

.back {
  background-color: #3a94c4;
  transform: rotateY(180deg);
  position: absolute;
  top: 0;
}


.flashcard:hover .front {
  transform: rotateY(180deg);
}

.flashcard:hover .back {
  transform: rotateY(0);
}








