@tailwind base;
@tailwind components;
@tailwind utilities;

/*Start Animations*/
@-webkit-keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@keyframes animatetop {
  from {
    top: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}
@-webkit-keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
@keyframes zoomIn {
  0% {
    opacity: 0;
    -webkit-transform: scale3d(0.3, 0.3, 0.3);
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
/*End Animations*/
/*
-- Start BackGround Animation 
*/

.area {
  background: #a18e8e;
  background: -webkit-linear-gradient(to left, #3e46d6, #1e29f8);
  width: 100%;
  height: 100vh;
  border-radius: 6px;
  position: absolute;
  z-index: -10;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 96%;
  overflow: hidden;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: #2a02f5;
  animation: animate 25s linear infinite;
  bottom: -150px;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 30px;
  height: 30px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 130px;
  height: 130px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 35px;
  height: 35px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 130px;
  height: 130px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }

  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}
/*
-- End BackGround Animation 
*/

/* Styles pour l'impression (A4)*/
.a4-container {
  width: 794px; 
  height: 1122px;
  padding: 10px;
  display: flex;
  flex-direction: row;
}

.left-section {
  width: 30%;
  max-height: 100%;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
}

.left-section img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.left-section h2 {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.left-section p {
  text-align: center;
  font-size: 14px;
  color: #555;
}

.section-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.left-section ul {
  padding-left: 4px;
  list-style-type: disc;
}

.right-section {
  width: 70%;
  padding: 10px;
}

.skills{
  display: flex;
  gap: 60px;
}

.aboutMeField ,.phoneField {
  position: relative;
}

.aboutMeField:invalid,.phoneField:invalid {
  border-color: #f62d2d;
  /* box-shadow: 0 0 5px #f53030; */
}

.aboutMeField:valid, .phoneField:valid{
  border-color: #03dd03;
  /* box-shadow: 0 0 5px #32f332; */
}

.aboutMeField + #aboutMeError {
  display: block;
  color: #999;
  font-size: 0.8rem;
  padding-top: 4px;
}

  .phoneField + #phoneError {
  display: block;
  color: #999;
  font-size: 0.8rem;
  padding-top: 4px;
}

.aboutMeField:invalid + #aboutMeError {
  color: #f92929;
  display: inline-block;
}

.aboutMeField:valid + #aboutMeError {
  display: none;
}
  
.phoneField:invalid + #phoneError {
  color: #f92929;
  display: inline-block;
}

.phoneField:valid + #phoneError {
  display: none;
}



