:root {
  --main-color: #e0e7ff;
  --action-color: #7957f5;
  --blue-main: #4070f4;
  --blue-light: #1e90ff;
  --main-gray: #f0f0f0;
  --light-gray: #f9f9f9;
  --white: #ffffff;
  --text-primary-color: black;
  --text-secondary-color: #555;
}

body {
  font-family: "PT serif";
  margin: auto;
  background: var(--main-gray);
}

.name-position {
  padding: 10px;
  border-bottom: 4px solid black;
  text-align: center;
}

.actionBtn {
  background: var(--action-color);
}

/* Container to center the form */
.container-center {
  max-width: 500px;
  background: var(--main-color);
  margin: 20px auto;
  width: 100%;
  /* Full viewport width */
  padding: 30px;
  /* Add padding for better spacing */
  box-sizing: border-box;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.container-center h1 {
  margin-bottom: 25px;
  text-align: center;
}

.container-center .resume-form {
  width: 100%;
}

.container-center .resume-form .input-box {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.container-center .resume-form .input-box label {
  width: 200px;
  color: var(--text-primary-color);
  margin-right: 10px;
  font-size: 14px;
}

.container-center .resume-form .input-box input,
textarea {
  width: 100%;
  outline: none;
  border: 2px solid var(--blue-light);
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.container-center .resume-form .input-box input:focus,
textarea:focus {
  border: 2px solid var(--action-color);
}

.selectImg label {
  display: block;
  width: 100px;
  background: var(--blue-light);
  padding: 6px;
  cursor: pointer;
  color: #ffffff;
  border-radius: 5px;
}

.selectImg:hover label {
  background: var(--action-color);
}

.selectImg input {
  display: none;
}

.container-center .resume-form .input-box button {
  width: 100%;
  padding: 8px 10px;
  font-size: 15px;
  border: 0;
  background: var(--blue-light);
  cursor: pointer;
  border-radius: 3px;
  color: white;
}

.container-center .resume-form .input-box button:hover {
  background-color: var(--blue-main);
}

@media (max-width: 420px) {
  .container-center .resume-form .input-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Resume template styling */

.header {
  background: var(--blue-main);
  color: white;
  text-align: left;
  padding: 20px 0px;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  column-gap: 50px;
  justify-content: center;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.main-content {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 40px;
  padding-right: 40px;
  padding-left: 40px;
  color: var(--text-primary-color);
  background: white;
  justify-content: center;
}

a {
  text-decoration: none;
  color: #ffffff;
}

.myimg {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  /* Ensures the image maintains its aspect ratio */
}

.card {
  padding-top: 10px;
  padding-bottom: 10px;
}

#fullnameT {
  font-weight: 980;
}

.card-header,
.card-body {
  margin-top: 10px;
  margin-bottom: 10px;
}

#edDiscriptionT {
  margin-top: 1%;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  margin-bottom: 5px;
}

.header h1 {
  font-size: 2em;
  margin: 0;
}

.header h2 {
  font-size: 1.5em;
  font-weight: 400;
  font-style: italic;
}

#companyT {
  font-style: italic;
}

#weT {
  padding-left: 0;
  /* Remove default padding */
  margin: 0;
  /* Remove any default margins */
}

li {
  list-style: none;
}

#EdT {
  padding-left: 0;
  /* Remove default padding */
  margin: 0;
  /* Remove any default margins */
}

#EdT li {
  padding-bottom: 1%;
  list-style: none;
}

li {
  padding-left: 0;
  margin: 0;
  padding-bottom: 1%;
  list-style: none;
}

#SkT li {
  padding-bottom: 2%;
}

.contact-info p {
  margin: 2px 0;
  font-size: 0.9em;
  color: #ffffff;
}

.contact-info a {
  color: #ffffff;
  text-decoration: none;
}

.profile-photo {
  align-items: flex-start;
  width: 120px;
  height: 120px;
  border-radius: 50%;
}

.section h3 {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--blue-main);
  position: relative;
  display: inline-block;
  width: max-content;
  padding-bottom: 10px;
}

.section h3::after {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--blue-main);
  /* Color of the underline */
  margin-top: 5px;
  /* Spacing between the heading and underline */
  margin-bottom: 50px;
}

.section p,
.section ul {
  font-size: 0.9em;
  color: var(--text-primary-color);
}

.section ul {
  list-style-type: disc;
}

.skills div,
.projects ul {
  margin: 5px 0;
}

i {
  width: 20px;

  color: rgb(255, 255, 255);
}

@media print {
    body * {
        visibility: hidden;
      -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
   body,
  html {
    margin: 0;
    padding: 0;
  }
    #resume-template, #resume-template * {
        visibility: visible;
    }
    #resume-template {
        position: absolute;
        top: 0;
       background: white !important; /* Ensure white background */
        color: var(--text-primary-color) !important; /* Use primary text color */
    }

    .header {
        background: var(--blue-main) !important;
        color: white !important; /* Ensure header text stays white */
    }

    .section h3::after {
        background-color: var(--blue-main) !important;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 20px 0px;
    text-align: center;
    flex-direction: column;
    column-gap: 0px;
    margin: 0px;
  }

  .contact-info {
    padding: 0px;
    text-align: center;

    gap: 20px;
    margin: 0px;
  }

  #nameT {
    font-size: 1.8rem;
  }

  #jobtitleT {
    font-size: 1rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
    margin-top: 15px;
  }

  .header p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px;
    gap: 0px;
  }

  .contact-info {
    padding: 0px;
    text-align: center;
    flex-direction: column;
    gap: 0px;
    margin: 0px;
  }

  #nameT {
    font-size: 1.5rem;
  }

  #jobtitleT {
    font-size: 0.9rem;
  }

  .profile-photo {
    width: 80px;
    height: 80px;
  }

  .header p {
    font-size: 0.75rem;
  }
}

/* Responsive Design for Small Screens */
@media (max-width: 480px) {
  .resumeContainer {
    padding: 10px;
  }

  .header {
    flex-direction: column;
    /* Stack items vertically */
    align-items: center;
    text-align: center;
  }

  .header img {
    width: 80px;
    /* Resize the profile picture */
    height: 80px;
  }

  .main-content {
    display: block;
    /* Stack left and right sections */
    width: 100%;
    padding: 0px 10px;
  }

  .contact-info p,
  .contact-info a {
    font-size: 14px;
    /* Adjust text size for smaller screens */
  }

  .section {
    padding: 10px;
    margin: 0;
  }
}

/* Ensure box-sizing applies to all elements */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  font-family: "PT Serif", serif;
  line-height: 1.6;
}

/* General Container Fix */
.resumeContainer {
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin: 0px;
  max-width: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scrolling */
}

/* Header Fix */
.header {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 10px;
}

.header img {
  max-width: 100px;
  height: auto;
  border-radius: 50%;
}

/* Content Adjustments */
.main-content {
  display: flex;

  padding: 10px 20px;
  gap: 20px;
}

/* Media Query for Screens Smaller than 480px */
@media (max-width: 480px) {
  .resumeContainer {
    padding: 5px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header h2 {
    font-size: 1rem;
  }

  .contact-info p,
  .contact-info a {
    font-size: 0.9rem;
  }

  .main-content {
    display: block;
    /* Stack left and right sections */
    width: 100%;
  }

  .section {
    padding: 10px;
  }

  #left,
  #right {
    width: 100%;
    /* Ensure no side-by-side layout on small screens */
  }
}
