.mainpage-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.profile-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.main-text-area {
    /* display: flex; */
    flex-wrap: wrap;
    width: 75%;
    border: 1px #ccc solid;
    border-radius: 15px;
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    background-color: aliceblue;
    color: black;
}

.text-title {
    font-weight: bold;
    font-size: 26px;
}

/*General body of html page*/
body {
    /* background-image: url(../images/remi-thorel-md37aLkm7Ys-unsplash.jpg); */
    background-image: url(../images/remi-thorel-md37aLkm7Ys-unsplash_cropped.png);
    background-size: cover;
    color: aliceblue;
    font: normal 20px Times New Roman;
    padding: 30px;
    margin: 25px;
}

/*Header*/
.main-title {
    font-weight: bold;
    font-size: 40px;
    color: aliceblue;
    text-align: center;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    margin-bottom: -10px;
}

/*Header role description*/
.role {
    font-weight: bold;
    font-size: 24px;
    margin-top: -5px;
    margin-bottom: 20px;
    text-align: center;
}

/*Profile picture*/
.profile-pix {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 400px;
    height: auto;

    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*Information panel*/
.contact-info {
    justify-content: center;
    align-items: center;
    font-weight: bold;
    /* margin-left: 100px; */
}

/*Information panel table icons*/

.milwaukee-icon {
    width: 77px;
    padding-left: 12px !important;
}

.icon-2,
.icon-3,
.icon-4,
.icon-5 {
    font-size: 75px;
    padding-left: 12px !important;
}

.icon-2 i {
    color: yellow;
}

.icon-3 i {}

.icon-4 i {
    color: ghostwhite;
}

.icon-5 i {
    color: lightskyblue;
}

.icon-3 a,
.icon-4 a,
.icon-5 a {
    text-decoration: none;
    color: Dodgerblue;
}

.icon-3 a:hover,
.icon-4 a:hover,
.icon-5 a:hover {
    opacity: 0.8;
}

/* Style the tab */
.tab {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-radius: 15px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    /* opacity: 0.9; */
    gap: 0px;
}

/* Style the buttons that are used to open the tab content */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    margin-left: auto;
    margin-right: auto;
    font-size: x-large;
    font-weight: bold;
    font-family: cursive;
    flex-grow: 1;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.school {
    color: firebrick;
}

.brain {
    color: pink
}

.star {
    color: gold;
}

.bike {
    color: green;
}

/*About me section*/
.about-me {
    width: 76.5%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
}


/*Work experience job, time frames, descriptions*/
.work-experience {
    padding: 20px;
}

/*Work experience job description*/
.jobdescription {
    margin-top: -.5px;
}

.education {
    padding: 20px;
    margin-top: 5px;
    /* margin-bottom: 15px; */
}

/* .js-education {
    padding-top: 5px;
} */

.projects {
    padding: 20px;
    margin-top: 5px;
    /* margin-bottom: 15px; */
}

.project-title {
    font-size: 25px;
}

.skills {
    padding: 20px;
    margin-top: 5px;
    /* margin-bottom: 15px; */
}

.skills-button {
    border-radius: 25px;
    border: none;
    padding: 8px;
    margin: 4px;
    pointer-events: none;
    user-select: none;
    cursor: default;
    background-color: #4d94ff;
    color: white;
    font-weight: 500;
    box-shadow: 0 2px 4px rgb(0, 0, 0, 0, 1);
    display: inline-block;
    min-width: 80px;
    text-align: center;
    transition: background-color 0.2s;
}

.skills-button.beginner {
    background-color: #80bdff; /* Light blue */
}

.skills-button.intermediate {
    background-color: #4d94ff; /* Medium blue */
}

.skills-button.advanced {
    background-color: #0066ff; /* Dark blue */
}

.hobbies {
    padding: 20px;
    margin-top: 5px;
    /* margin-bottom: 15px; */
}

.backtop {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/*The bottom footer*/
footer {
    text-align: center;
}

/* unvisited link */
a:link {
    color: blue;
}

/* visited link */
a:visited {
    color: black;
}

/* mouse over link */
a:hover {
    color: hotpink;
}

/* selected link */
a:active {
    color: red;
}

@media screen and (max-width: 768px) {
    .mainpage-container {
        flex-direction: column;
        padding: 10px;
    }

    .main-title {
        font-size: 40px;
    }

    .main-text-area {
        /* display: flex; */
        flex-wrap: wrap;
        width: 100%;
    }

    .profile-image-container {
        flex: 0 0 60%; /* Takes 40% of the width */
    }
      
    .contact-info-container {
        flex: 0 0 25%; /* Takes 55% of the width */
    }

    /* Ensures profile picture doesn't overflow screen */
    .profile-pix {
        width: 180px;
        /* Slightly smaller on mobile */
    }

    /* Centers contact info by removing left margin */
    .contact-info {
        margin-left: 0;
        text-align: center;
        justify-content: center;
    }

    .contact-info td {
        display: block;
        padding: 3px;
    }

    .milwaukee-icon {
        width: 47px;
        padding-left: 5px !important;
    }
    
    .icon-2, .icon-3, .icon-4, .icon-5 {
        font-size: 40px; /* Smaller icons on mobile */
        padding-left: 5px !important;
      }

    /* Makes buttons full-width and easier to tap */
    .tab {
        width: 100%;
        gap: 0px;
    }

    .tab button {
        width: 100%;
        margin-bottom: 5px;
        padding: 0;
    }

    .mainpage-container .tab {

    }

    /* Ensures content sections take full width */
    .main-text-area {
        width: 100%;
        padding: 10px;
    }
}