*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  transition: all 0.8s ease;
}

body{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #040e47;
}

.body-dark{
  background-color: #5f6aab;
}

.card{
  position: relative;
  width: 40em;
  height: 20em;
  border-radius: 0.5em;
  box-shadow: 0 0 10px #000417;
  margin: 10em;
  background-color: #ffffff;
  overflow: hidden;
}

.card-dark {
  background-color: #040e47;
}

.card-box{
  width: 100%;
  height: 90%;
  background-image: linear-gradient(90deg, #29c6ff, #2949ff);
  display: flex;
  flex-direction: row;
  padding: 1em;
}

#front-card{
  display: flex;
  border-radius: 0.5em 0.5em 0.5em 67% / 0.5em 0.5em 0% 84% ;
}

#back-card{
  display: none;
  border-radius: 0.5em 0.5em 67% 0.5em / 0.5em 0.5em 84% 0% ;
}

.M{
  position: absolute;
  top: -45%;
  right: -20%;
  font-size: 30em;
  color: #ffffff;
  opacity: 0.2;
  font-style: italic;
}

.col-40{
  flex: 0.4;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.col-60{
  flex: 0.6;
  display: flex;
  justify-content: left;
  align-items: center;
  z-index: 2;
}

.text-box{
  margin-left: 1em;
  animation: bounce 4s infinite;
}

button{
  position: absolute;
  padding: 0.2em;
  background-color: #ffffff;
  color: #040e47;
  border-radius: 50%;
  border: none;
  font-weight: bold;
  width: 2em;
  height: 2em;
  cursor: pointer;
  z-index: 3;
}

button:hover{
  background-color: #040e47;
  color: #ffffff;
}

.btn-turn{
  top: 4%;
  right: 2%;
}

.btn-dark{
  top: 4%;
  right: 8%;
}

h1{
  color: #040e47;
  background-color: #ffffff;
  padding: 0.4em;
  border-radius: 2em;
  text-align: center;
  font-size: 2.5em;
  width: 8em;
  animation: glow-effect 4s infinite;
}

.h1-dark{
  color: #ffffff;
  background-color: #040e47;
  animation: glow-effect-dark 4s infinite;
}

p{
  color: #ffffff;
  font-style: italic;
  text-align: center;
  font-size: 1.2em;
  margin-top: 10px;
}

span{
  color: #2949ff;
  animation: color-changer 5s infinite;
}

img{
  border-radius: 50%;
  border: 0.2em solid #ffffff;
  width: 80%;
  height: 80%;
}

img:hover{
  scale: 1.05;
}

.img-dark{
  border: 0.2em solid #040e47;
}

ul{
  padding: 1em;
}

li{
  color: #ffffff;
  padding: 0.2em;
  margin-bottom: 1em;
}

.stars{
  margin-left: 1em;
  color: #2949ff;
  font-weight: bold;
  font-style: italic;
  background-color: #ffffff;
  padding: 0.5em;
  border-radius: 1em;
}

.stars-dark{
  background-color: #040e47;
}

.shine-box{
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0 0 10px 20px #ffffff;
  opacity: 0.1;
  z-index: 4;
  animation: shine-effect 3s infinite;
}

@keyframes color-changer {
  from {color: #2949ff;}
  to {color: #29c6ff;}
}

@keyframes glow-effect {
  from {box-shadow: 0px 0px 0px #ffffff;}
  to {box-shadow: 0px 0px 10px #ffffff;}
}

@keyframes glow-effect-dark {
  from {box-shadow: 0px 0px 0px #29c6ff;}
  to {box-shadow: 0px 0px 10px #29c6ff;}
}

@keyframes bounce {
  0% {margin-bottom: 0;}
  50% {margin-bottom: 20px;}
  100% {margin-bottom: 0;}
}

@keyframes shine-effect {
  from {left: 0;}
  to {left: 100%;}
}

@media only screen and (max-width: 768px) {
  /* For mobile phones: */
  .M{
    right: -40%;
  }

  h1{
    font-size: 1.5em;
    width: 8em;
  }
  
  .btn-dark{
    right: 10%;
  }
}

