main {
    flex: 1;
    margin-top: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 16px;
}

.wrapper {
    display: flex;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.wrapper.hide {
    transform: translateY(-100%);
}

.section {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
}

/* Section Home */
#section1 {
    transform: translateX(0);
    /*background-color: rgba(255, 0, 0, 0.5);*/
    justify-content: space-between;
}

.welcome-area {
    text-align: center;
    font-size: 2rem;
    pointer-events: none;
}

.welcome-statement-greetings {
    font-size: 0.75rem;
}

.welcome-statement-text {
    color: rgb(255, 88, 71);
}

.works-statement {
    margin-top: 1vh;
    font-size: 0.75rem;
}

.button-home-statement {
    text-decoration: underline;
}

.footer {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    height: 10%;
    /*background-color: rgba(128, 255, 0, 0.5);*/
    font-size: 0.75rem;
    opacity: 1;
    transition: none;
}

.dragAnimation {
    text-align: center;
}

.text-bar {
    margin-top: 5%;
    font-size: 0.5rem;
}

.shiny-bar {
    position: relative;
    width: 100%;
    height: 0.15rem;
    background-color: var(--secondary-color);
    overflow: hidden;
    border-radius: 50px;
    margin: 0 auto;
    /* Center the bar */
}

.shiny-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    background: white;
    border-radius: 50px;
    animation: shine 2s linear infinite;
    /* 2s for movement, 1s for the pause */
}

.previousPage,
.nextPage {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-0.5vh);
}

.previousPage {
    margin-left: 5%;
}

.nextPage {
    margin-right: 5%;
}

.changePageText {
    transform: translateY(-0.5vh);
    font-size: 0.5rem;
}

@keyframes shine {
    0% {
        left: 100%;
    }

    33% {
        left: -150%;
        /* End of the movement */
    }

    100% {
        left: -150%;
        /* Pause at the end */
    }
}

/* Section About */
#section2 {
    transform: translateX(100%);
    /*background-color: rgba(255, 255, 0, 0.5);*/
    justify-content: space-between;
    overflow: hidden;
}

.certificate{
    text-decoration: underline;
    color: white;
}

.aboutContent,
.contactContent {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card1,
.card2,
.card3,
.card4 {
    position: absolute;
    height: 85%;
    aspect-ratio: 2/3;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 2vh;
    padding-bottom: 5vh;
    border-radius: 2vh;
    font-size: 2vh;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    transition: none;
}

@media (max-width: 400px) {
    .card1,
    .card2,
    .card3,
    .card4{
        max-width: 90%;
    }
}

.card1 {
    align-items: normal;
}

.card2,
.card4 {
    transform: translateX(110%);
    opacity: 0;
    pointer-events: none
}

.aboutme-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(-3.5%);
}

.card2 h3 {
    position: absolute;
    font-size: 4vh;
    transition: none;
    top: 3vh;
}

.card3 {
    justify-content: unset;
    align-items: unset;
}

.card4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.changeCardBttn {
    top: 2%;
    width: 5vh;
    height: 5vh;
    border-radius: 50%;
    border: 0.15vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    z-index: 1000;
    /* Ensure it's above other content */
    pointer-events: auto;
    touch-action: manipulation;
    /* Ensure it can be clicked */
}

.changeCardBttn:hover {
    border: 0.15vh solid var(--tertiary-color);
    box-shadow: 0 0 0.25vh var(--tertiary-color), 0 0 1vh var(--tertiary-color);
    filter: drop-shadow(0 0 1vh var(--tertiary-color));
}

#bttn1,
#bttn3 {
    background: url('../assets/back-arrow.svg') center center/cover no-repeat;
    transform: scaleX(-1);
}

#bttn2,
#bttn4 {
    position: absolute;
    background: url('../assets/back-arrow.svg') center center/cover no-repeat;
    left: 5%;
}

.button-container-card1-3 {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    top: 2%;
    right: 5%;
}

.button-text {
    font-size: 2vh;
    margin-right: 1vh;
}

/* Section Contact */
#section3 {
    transform: translateX(100%);
    /*background-color: rgba(0, 0, 255, 0.5);*/
    justify-content: space-between;
}

/* Section Works */
#section4 {
    transform: translateY(100%);
    /*background-color: rgba(0, 128, 0, 0.5);*/
    transition: none;
    /*transition: 1.5s cubic-bezier(0.95, 0, 0.5, 1);*/
}

#section4.show {
    transform: translateY(0);
}

h3 {
    margin-top: 0;
    font-size: 4vh;
    margin-bottom: 1%;
    transition: none;
}

.contactForm {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    font-size: 2vh;
}

.contactForm label {
    font-size: 2.25vh;
    margin-top: 2%;
    margin-bottom: 1%;
}

.contactForm textarea {
    flex: 1;
    color: white;
    padding: 2%;
    border-color: var(--secondary-color);
    border-radius: 1vh;
    margin-bottom: 2%;
    font-size: 1.75vh;
    background-color: rgba(0, 0, 0, 0.5);
    resize: none;
    touch-action: pan-y;
    /* Allow vertical scrolling */
    -webkit-overflow-scrolling: touch;
    /* Enable momentum scrolling on iOS */
    overflow: auto;
    /* Ensure scrolling is enabled */
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: white;
    -webkit-box-shadow: 0 0 0px 1000px rgba(0, 0, 0, 0.5) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.contactForm input {
    color: white;
    padding: 2%;
    font-size: 1.75vh;
    border-color: var(--secondary-color);
    border-radius: 1vh;
    background-color: rgba(0, 0, 0, 0.5);
}

.contactForm textarea::placeholder,
input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.contactForm textarea:focus,
input:focus {
    outline: none;
    /* Removes the default focus outline */
    border-color: var(--tertiary-color);
}

/* Style for the button and spinner container */
.button-container {
    position: relative;
    font-size: 2vh;
    margin: 0 auto;
    width: 30%;
    margin-bottom: -2%;
    /* Relative positioning for the spinner to be positioned within this container */
}

/* Style for the submit button */
.submit-btn {
    width: 100%;
    height: 5vh;
    font-size: 2vh;
}

/* Prevent shrinking on focus and active states */
.submit-btn:focus,
.submit-btn:active {
    font-size: inherit;
    /* Ensure font size stays the same */
}

.submit-btn:hover{
    border-color: var(--tertiary-color);
}

/* Style for the loading spinner */
.spinner {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 0.5vh;
    right: -5vh;
    border: 1vh solid #f3f3f3;
    /* Light grey */
    border-top: 1vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    /* Blue */
    border-radius: 50%;
    width: 4vh;
    height: 4vh;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.timeline-bar {
    left: 20%;
    top: 15%;
    position: absolute;
    width: 0.35vh;
    height: 80%;
    border-radius: 1vh;
    background-color: var(--secondary-color);
}

.time-point {
    left: 20%;
    position: absolute;
    width: 2vh;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    z-index: 5;
    transform: translate(-40%);
}

#time-point3,
#time-point-line3,
#education-textbox3,
#end-time-point3,
#time-point-title3,
#time-point-date3 {
    top: 25%;
}

#time-point2,
#time-point-line2,
#education-textbox2,
#end-time-point2,
#time-point-title2,
#time-point-date2 {
    top: 55%;
}

#time-point1,
#time-point-line1,
#education-textbox1,
#end-time-point1,
#time-point-title1,
#time-point-date1 {
    top: 85%;
}

.time-point-line {
    position: absolute;
    width: 65%;
    left: 20%;
    height: 0.35vh;
    border-radius: 1vh;
    background-color: var(--tertiary-color);
    transform: translateY(0.75vh);
}

.end-time-point {
    right: 15%;
    position: absolute;
    width: 1vh;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    transform: translateY(40%);
}

.time-point-date {
    position: absolute;
    left: 15%;
    font-size: 2.5vh;
    transform: translate(-85%, -25%);
}

.education-textbox {
    left: 25%;
    position: absolute;
    width: 60%;
    height: 18%;
    transform: translateY(1.5vh);
    margin: 0;
    padding: 0;
    font-size: 1.75vh;
}

.txtcolor {
    color: var(--secondary-color);
}

.time-point-title {
    left: 25%;
    transform: translateY(-2vh);
    position: absolute;
    font-size: 2vh;
    color: var(--tertiary-color);
}

#time-point-title3 {
    transform: translateY(-4.5vh);
    padding-right: 0.5vh;
}

.card3-textbox {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5vh;
}

.selectableText {
    display: flex;
    width: fit-content;
    margin: 0;
    padding: 2.5%;
    padding-left: 0;
    flex-direction: column;
    gap: 1vh;
    cursor: text;
    text-decoration: none !important;
    outline: none !important;
}

.hiddenTextForm {
    position: absolute;
    bottom: 2.5%;
}

.card3 b, .card1 b {
    color: var(--secondary-color);
}

.socialIcons {
    margin: 10% 0;
    display: flex;
    flex-direction: column;
    row-gap: 2vh;
}

.social-Item {
    display: flex;
    align-items: center;
    gap: 2vh;
}

.iconLink {
    width: 5vh;
    height: 5vh;
    border-radius: 50%;
}

#iconLinkedIn {
    background: url('../assets/linkedin_icon.svg') center center/cover no-repeat;
}

#iconGithub {
    background: url('../assets/github_icon.svg') center center/cover no-repeat;
}

#iconFacebook {
    background: url('../assets/facebook_icon.svg') center center/cover no-repeat;
}

#iconInstagram {
    background: url('../assets/instagram_icon.svg') center center/cover no-repeat;
}

.iconLink:hover {
    box-shadow: 0 0 0.25vh var(--tertiary-color), 0 0 1vh var(--tertiary-color);
    filter: drop-shadow(0 0 1vh var(--tertiary-color));
}

/* Tablets and medium screens */
@media (min-width: 901px) and (max-width: 1240px) {

    /* Styles for tablets */
    .changeCardBttn {
        display: none;
    }

    .button-container-card1-3 {
        display: none;
    }

    .card1,
    .card2,
    .card3,
    .card4 {
        opacity: 1;
        transform: translateX(-55%);
        padding: 1.5vh;
    }

    .card2,
    .card4 {
        transform: translateX(55%);
        pointer-events: auto;
    }

    .hiddenTextForm {
        display: none;
    }

}

/* Desktops and larger screens - Default style */
@media (min-width: 1241px) {

    /* Styles for desktops and larger screens */
    main {
        margin-top: 8vh;
    }

    .welcome-area {
        text-align: left;
        margin-left: 15%;
    }

    .changeCardBttn {
        display: none;
    }

    .button-container-card1-3 {
        display: none;
    }

    .card1,
    .card2,
    .card3,
    .card4 {
        opacity: 1;
        transform: translateX(-55%);
        padding: 1vh;
    }

    .card2,
    .card4 {
        transform: translateX(55%);
        pointer-events: auto;
    }

    .hiddenTextForm {
        display: none;
    }

}

@media (min-height: 1000px){
    .card1,
    .card2,
    .card3,
    .card4 {
        max-height: 700px;
        font-size: 1.5vh;
    }

    h3{
        font-size: 3vh;
    }

    .button-text{
        font-size: 1.5vh;
    }
}