/* General styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  /* background-color: #f4f4f4; */
}

.container {
  width: 80%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

h1 {
  font-size: 2rem;
}

button {
  background-color: #093c9f;
  color: white;
  padding: 10px 15px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
}

button:hover {
  background-color:  #b4057a;
}

.form-section, .resume-section {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

textarea {
  height: 100px;
}

#resumePreview {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
}

@media only screen and (max-width: 768px) {
  .container {
    width: 95%;
  }

  button {
    width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  label {
    font-size: 0.9rem;
  }

  input, textarea {
    font-size: 0.9rem;
  }
}

/* Print styles */
@media print {
  /* Hide form elements, buttons, and the heading during print */
  button, input, textarea, header, footer, .form-section h2, .form-section label {
    display: none;
  }

  /* Only show the resume preview content */
  .container {
    width: 100%;
    margin: 0;
    padding: 20px;
    background-color: white;
  }

  #resumePreview {
    display: block;
    background-color: white; /* Ensure white background during print */
    padding: 20px;
    border-radius: 5px;
    box-shadow: none;
  }

  /* Hide resume heading when printing */
  .resume-section h2 {
    display: none;
  }

  /* Ensure the preview content is visible and formatted */
  #resumePreview h3, #resumePreview p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}
@media print {
  /* Hide form elements, buttons, and the heading during print */
  button, input, textarea, header, footer, .form-section h2, .form-section label {
    display: none;
  }

  /* Only show the resume preview content */
  .container {
    width: 100%;
    margin: 0;
    padding: 20px;
    background-color: white;
  }

  #resumePreview {
    display: block;
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: none;
  }

  /* Hide resume heading when printing */
  .resume-section h2 {
    display: none;
  }

  /* Ensure the preview content is visible and formatted */
  #resumePreview h3, #resumePreview p {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
}
