body {
    font-family: 'Quicksand', sans-serif;
    color: white;
    background-image: url('experience.jpg'); 
    background-color: rgba(95, 166, 92, 0.67);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;  /*Ensure the background image is centered*/
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;  /* Ensure the body always takes up at least the full height of the viewport*/
    /*overflow-x: hidden;*/
}

.title {
   text-align: center;
   margin-bottom: 5px; /* Add spacing between the title and the timeline */
}

label {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding-right: 10px;
}

/* Style the select element */
select {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  padding: 2px 5px;
  border: 1px solid #ccc; /* Add a border */
  border-radius: 3px; /* Add rounded corners */
  background-color: #fff; /* Background color for the dropdown */
  color: #333; /* Text color */
}

/* Style the options within the dropdown */
select option {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  background-color: #fff; /* Background color for options */
  color: #333; /* Text color for options */
}

/* Style the hover effect for options */
select option:hover {
  background-color: #e0e0e0; /* Background color on hover */
  color: #333; /* Text color on hover */
}

h1 {
    font-size: 40px; 
}

h2 {
    font-size: 25px; 
}

h5 {
    font-size: 16px; 
}

.timeline {
    position: relative;
    width: 2px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
}

/* Add the following CSS to adjust the positioning of left and right cards */
.left {
    align-self: flex-start; /* Align left cards to the left */
}

.right {
    align-self: flex-end; /* Align right cards to the right */
}

.dot {
    width: 20px;
    height: 20px;
    background-color: #f7cf07;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    position: relative; /* Make sure the dot container is a positioned element */
}

.date-left,.role-left{
    font-size: 20px;
    text-align: center;
    color: white;
    display: inline-block; /* Make the date appear on the same line as the dot */
    position: absolute; /* Position the date element within the dot container */
    top: -50%; /* Adjust vertical alignment as needed */
    left: -50%; /* Adjust horizontal alignment as needed */
    transform: translate(-100%, 0%); /* Center the date element within the dot container */
    white-space: nowrap; /* Prevent the text from wrapping */
    padding: 10px 20px; /* Increase the padding to make the box larger */
    border-radius: 5px; /* Add rounded corners to the box */
}

.date-right, .role-right{
    font-size: 20px;
    color: white;
    display: inline-block; /* Make the date appear on the same line as the dot */
    position: absolute; /* Position the date element within the dot container */
    top: -50%; /* Adjust vertical alignment as needed */
    left: 20%; /* Adjust horizontal alignment as needed */
    transform: translate(10%, 0%); /* Center the date element within the dot container */
    white-space: nowrap; /* Prevent the text from wrapping */
    padding: 10px 20px; /* Increase the padding to make the box larger */
    border-radius: 5px; /* Add rounded corners to the box */
}

.date-left,.date-right{
    background-color: rgba(202, 112, 125, 0.67);
}

.role-left, .role-right{
    background-color: rgba(95, 166, 92, 0.67);
}

.logo {
    width: 90px; /* or the width you want */
    height: 90px; /* or the height you want */
    vertical-align: middle;
    margin-right: 10px; /* space between logo and text */
}

.job {
    position: relative;
    width: 100%;
}

.card {
    width: 350px;
    height: 300px;
    perspective: 1000px;
    padding: 20px;
    margin: 30px 10px;
    opacity: 1; /* Initially fully visible */
    transition: opacity 0.6s; /* Add a smooth transition effect */
    position: relative;
    border-radius: 5px; /* Add rounded corners to the box */
}

.card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
    position: relative;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.front,
.back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(95, 166, 92, 0.67);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.click-sign {
    position: absolute;
    margin: -15px 200px;
    width: 30px;
    background-color: antiquewhite;
    border-radius: 9px;
    top: 28px;
    right: -185px;
}

.front{
    display: relative;
    text-align: center;
    max-height: 300px; /* Adjust the max height to control card size */
}

.back {
    transform: rotateY(180deg);
    text-align: left;
    padding: 15px;
    /*margin: 15px; /* This margin may cause the card to be pushed to the right */
    max-height: 300px; /* Adjust the max height to control card size */
    overflow: hidden; /* Enable vertical scrolling if content overflows */
    z-index: 1;
}

.back .scroll-container {
    overflow-y: auto; /* Enable vertical scrolling for the inner container */
}

li {
    position: relative;
    padding-left: 5px;
    margin-bottom: 5px;
}

.card p {
    margin: 0px;
}

/* CSS for the "Back to Home" button */
.back-button {
    position: fixed;
    background-color: #b30000;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.back-button:hover {
    background-color: #ffda08;
    font-color: #000000;
}

/* Position the button in the top-left corner */
.top-left {
    top: 20px;
    left: 20px;
}

/*CSS for mobile devices (adjust styles as needed)*/
@media (max-width: 600px) {
    body {
    transform: translateX(260px);
    }
    /* Position the button in the top-left corner */
    .top-left {
        left: auto;
        right: 500px;
        white-space: nowrap;*/
    }
}
