/* Container enterire page to center foxus the page */
.maincontainer {
    padding: 40px;
    max-width: 1280px;
    margin: auto;
    width: 100%;
    margin-top: 80px;
    justify-content: center;
}

/*resume page header -----------------------------------------*/
.resumeheader {
    padding-bottom: 20px;
    text-align: center;
    color: white;
    font-size: 54px;
}




/* Solid border */
hr.solid {
    border-top: 3px solid #DF854F;
}


/* timeline begins--------------------------- */

/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #96DAEA;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around resme timeline content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}



/* The circles on the timeline */
.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #FF9F55;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
    padding: 10px;

}

/* Place the container to the right */
.right {
    left: 50%;
    padding: 10px;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}


/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    color: #041329;
}



/*remume download button */
.button {
    border-radius: 20px;
    background-color: #DF854F;
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 18px;
    padding: 15px;
    width: 300px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 25px auto;
}

.buttonbox {

    margin: 10px 20px auto;
}

/*Timeline ends-------------------------*/



/*resume layout begins-------------------------*/
.layoutcontainer {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap */
    justify-content: center;
    /* Center items horizontally */
    margin: 50px auto;
    /* Adjusted for responsiveness */
    padding: 0 20px;
    /* Adjusted for responsiveness */
}

.sidebar {
    flex: 0 0 30%;
    /* 25% width */
    background-color: #f2f2f2;
    color: #041329;
    margin-bottom: 20px;
    margin-right: 20px;
    /* Add margin to create a gap */
}

.main-content {
    flex: 1;
    /* Take remaining space */

}

.row {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 20px;
    background-color: #fff;
}

.row h2 {
    margin-top: 0;
    font-size: 40px;
}

#mphoto {
    width: 100%;
    margin: 0 auto;
    padding: 30px;
    background-color: #96DAEA;
}

p {
    font-size: 18px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    color: #041329;
}

h4 {
    font-size: 18px;
}

h5 {
    font-size: 15px;
}

h3 {
    font-size: 20px;
}

p {
    font-size: 16px
}

.resumeul {
    list-style-type: dot;
    display: black;

}

.resumetag {
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

.location {
    padding: 20px;
}

/* for skills section------------*/
.skillstext {
    padding: 20px;
    font-size: 50px;
    text-align: left;
}

#dates {
    color: #DF854F;
    font-size: 16px;
}

/*left bar----------------------------------*/
.spacer {
    padding: 2%;
    list-style-type: none;
    margin: 0px;
}

.spacer2 {
    margin: 10px;
    padding: 20px;
    font-size: 16px;
    border: 1px solid #DF854F;
    margin-top: -1px;
    /* Prevent double borders */

}

.spacer3 {
    font-size: 16px;
}

a {
    color: #041329;
}

a:active,
a:hover {
    color: #DF854F;
}

/*skills section metric----------------------------------*/
.skillscontainer {
    width: 100%;
    border-radius: 20PX;
}

.skills {
    text-align: right;
    padding-top: 10px;
    padding-bottom: 10px;
    color: white;
}



.html {
    width: 95%;
    background-color: #DF854F;
    border-radius: 20PX;
    font-size: 15PX;
    color: white;
    text-align: center;
}

.css {
    width: 95%;
    background-color: #DF854F;
    border-radius: 20PX;
    font-size: 15PX;
    color: white;
    text-align: center;
}

.js {
    width: 85%;
    background-color: #DF854F;
    border-radius: 20PX;
    font-size: 15PX;
    color: white;
    text-align: center;
}

.illustrator {
    width: 98%;
    background-color: #DF854F;
    border-radius: 20PX;
    font-size: 15PX;
    color: white;
    text-align: center;
}




/*ipad  ----------------------------------------------------------------------*/
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .resumeheader {
        padding-top: 50px;
        /* Adjusted for iPad */
        padding-bottom: 20px;
        text-align: center;
        color: white;
        font-size: 36px;
        /* Adjusted for iPad */
    }

    /* Solid border */
    hr.solid {
        border-top: 2px solid #DF854F;
        /* Adjusted for iPad */
    }

    /* timeline begins--------------------------- */

    /* The actual timeline (the vertical ruler) */
    .timeline {
        position: relative;
        max-width: 600px;
        /* Adjusted for iPad */
    }

    /* The actual timeline (the vertical ruler) */
    .timeline::after {
        content: '';
        position: absolute;
        width: 3px;
        /* Adjusted for iPad */
        background-color: #96DAEA;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
        /* Adjusted for iPad */
    }

    /* Container around content */
    .container {
        padding: 10px 10px;
        /* Adjusted for iPad */
        position: relative;
        background-color: inherit;
        width: 50%;
    }

    /* The circles on the timeline */
    .container::after {
        content: '';
        position: absolute;
        width: 15px;
        /* Adjusted for iPad */
        height: 15px;
        /* Adjusted for iPad */
        right: -10px;
        /* Adjusted for iPad */
        background-color: white;
        border: 3px solid #FF9F55;
        top: 10px;
        /* Adjusted for iPad */
        border-radius: 50%;
        z-index: 1;
    }

    /* Place the container to the left */
    .left {
        left: 0;
        padding: 10px;
    }

    /* Place the container to the right */
    .right {
        left: 50%;
        padding: 10px;
    }

    /* Add arrows to the left container (pointing right) */
    .left::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 12px;
        /* Adjusted for iPad */
        width: 0;
        z-index: 1;
        right: 20px;
        /* Adjusted for iPad */
        border: medium solid white;
        border-width: 7px 0 7px 7px;
        /* Adjusted for iPad */
        border-color: transparent transparent transparent white;
    }

    /* Add arrows to the right container (pointing left) */
    .right::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 12px;
        /* Adjusted for iPad */
        width: 0;
        z-index: 1;
        left: 20px;
        /* Adjusted for iPad */
        border: medium solid white;
        border-width: 7px 7px 7px 0;
        /* Adjusted for iPad */
        border-color: transparent white transparent transparent;
    }

    /* Fix the circle for containers on the right side */
    .right::after {
        left: -8px;
        /* Adjusted for iPad */
    }

    /* The actual content */
    .content {
        padding: 20px 30px;
        background-color: white;
        position: relative;
        border-radius: 6px;
        color: #041329;
    }

    /*remume download button */
    .button {
        border-radius: 6px;
        background-color: #DF854F;
        border: none;
        color: #FFFFFF;
        text-align: center;
        font-size: 12px;
        /* Adjusted for iPad */
        padding: 7px 15px;
        /* Adjusted for iPad */
        width: 100%;
        /* Adjusted for iPad */
        transition: all 0.5s;
        cursor: pointer;
        margin: 10px 5px auto;
        margin-bottom: 20px;
        /* Adjusted for iPad */
    }

    .buttonbox {
        margin: 10px 20px auto;
    }

    /*Timeline ends-------------------------*/





    /*resume layout begins-------------------------*/
    .layoutcontainer {
        display: flex;
        flex-wrap: wrap;
        /* Allow items to wrap */
        justify-content: center;
        /* Center items horizontally */
        margin: 50px auto;
        /* Adjusted for responsiveness */
        padding: 0 20px;
        /* Adjusted for responsiveness */
    }

    .sidebar {
        flex: 0 0 30%;
        /* 25% width on desktop */
        max-width: 30%;
        /* 25% width on desktop */
        margin-right: 20px;
        /* Add margin to create a gap */
    }


    .main-content {
        flex: 1;
        /* Take remaining space */
        max-width: calc(75% - 40px);
        /* 75% width on desktop, minus the margin */
    }

    .row {
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
    }

    .row h2 {
        font-size: 40px;
        /* Reset font size for desktop */
    }

    #mphoto {
        width: 100%;
        margin: 0 auto;
        padding: 20px;
        background-color: #96DAEA;
    }

    p {
        font-size: 16px;
        /* Adjusted for iPad */
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        color: #041329;
    }

    .resumeul {
        list-style-type: dot;
        display: black;
    }

    .resumetag {
        color: white;
        text-align: center;
    }
}




/* Mobile Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 767px) {

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .container {
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
        left: 15px;

    }

    /* Make all right containers behave like the left ones */


    .maincontainer {
        padding: 10px;
        max-width: 100%;
        margin: auto;
        margin-top: 40px;
        justify-content: center;
    }

    /*ends from w3 chool --------------------------*/

    .resumeheader {
        padding-bottom: 10px;
        text-align: center;
        color: white;
        font-size: 36px;
        margin-top: 40px;
    }

    .timeline::after {
        width: 2px;
        margin-left: -1px;
    }




    .container {
        padding: 10px 20px;
        position: relative;
        background-color: inherit;
        width: 100%;
    }

    .container::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        right: -12px;
        background-color: white;
        border: 3px solid #FF9F55;
        top: 10px;
        border-radius: 50%;
        z-index: 1;
    }

    .left,
    .right {
        left: 0;
        padding: 10px;
    }

    .left::before,
    .right::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 15px;
        width: 0;
        z-index: 1;
        border: medium solid white;
    }

    .container::after {
        width: 10px;
        height: 10px;
        right: -5px;
        top: 7px;
    }

    .left::before {
        right: 20px;
        border-width: 8px 0 8px 8px;
        border-color: transparent transparent transparent white;
    }

    .right::before {
        left: 20px;
        border-width: 8px 8px 8px 0;
        border-color: transparent white transparent transparent;
    }

    .right::after {
        left: -10px;
    }

    .content {

        background-color: white;
        position: relative;
        border-radius: 6px;
        color: #041329;
    }

    .button {
        border-radius: 20px;
        background-color: #DF854F;
        border: none;
        color: #FFFFFF;
        text-align: center;
        font-size: 16px;
        padding: 12px;
        width: 200px;
        transition: all 0.5s;
        cursor: pointer;
        margin: 15px auto;
    }

    .layoutcontainer {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 30px auto;
        padding: 0 10px;
    }

    /*side bar section*/
    .sidebar {
        width: 100%;
        background-color: #f2f2f2;
        color: #041329;
        margin-bottom: 20px;
        /* Add margin to create a gap */
    }

    /*profile section*/
    .row {
        margin-bottom: 20px;
        border: 1px solid #ccc;
        padding: 20px;
        background-color: #fff;
        width: 100%;

    }

    .row h2 {
        font-size: 30px;
        /* Reset font size for desktop */
    }

    .skillstext {
        padding: 10px;
        font-size: 45px;
        text-align: left;
    }
}

/* mobile info ends--------------------------------------*/