html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 22px;
    color: whitesmoke;
    overflow-x: hidden; /* Prevent horizontal overflow */
    display: flex;
    flex-direction: column;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure content is centered vertically */
}

.footer-placeholder {
    height: 44px;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #33333300;
    display: flex;
    justify-content: flex-end;
    padding: 10px 50px;
    box-sizing: border-box;
    z-index: 1000; /* Ensure it stays on top */
}

.social-icons {
    display: flex;
    gap: 15px;
}

.footer-bar a {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: 15px; /* Add margin to create space between icons */
}

.footer-bar a:first-child {
    margin-left: 0; /* Remove margin from the first icon */
}

.footer-bar a img {
    width: 24px;
    height: 24px;
}

.tab-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    position: fixed;
    top: 0;
    z-index: 1000; /* Ensure it stays on top */
}

.tabs {
    display: flex;
    list-style-type: none;
    justify-content: center;
    padding: 10px 0;
    height: 40px;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
}

.tab {
    padding: 5px 20px;
    text-align: center; /* Center text in tabs */
    color: #fff;
    border-radius: 20px;
    margin: 5px; /* Adjust margin for better spacing on smaller screens */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    font-size: 22px;
    font-family: inherit; /* Ensure the font family is the same as other elements */
}

.tab:hover {
    background-color: #405e55;
    transform: scale(1.05);
}

.tab.active {
    background-color: #76cad3;
}

.content-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px; /* Adjust margin-top to prevent overlapping */
    padding: 30px 0;
    box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
    position: relative;
    z-index: 1;
}

.content {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%); /* Default position off-screen to the right */
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1;
}

.content.active {
    opacity: 1;
    transform: translateX(0); /* Center the active content */
    z-index: 2; /* Ensure active content is on top */
}

.content-left, .content-right {
    float: left;
    height: 100%;
}

.content-left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.content-right {
    box-sizing: border-box;
}

.blob {
    position: relative;
    width: 500px;
    height: 400px;
    background: url('/images/blob.svg') no-repeat center center;
    background-size: cover;
}

/* Ensure blob is responsive */
.blob {
    max-width: 400px;

}

.content-pic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-4%, -55%);
}

/* Ensure images and content are responsive */
.content-pic {
    max-width: 200px;
    height: auto;
}

.content::after {
    content: "";
    display: table;
    clear: both;
}

/* Styles for devices with a width of 768px or less (e.g., phones) */
@media (max-width: 768px) {
    html, body {
        background-color: #3e4549; /* Background color for phones */
    }

    .tab-container {
        background-color: inherit; /* Darker background for tab container on mobile */
    }
    
    .tabs {
        background-color: inherit; /* Darker background for tab container on mobile */
    }

    .tab {
        background-color: inherit; /* Darker background for tab container on mobile */
    }

    .content-container{
        flex-direction: column;
    }

    .content-left, .content-right {
        width: 100%;
    }

    .content-left {
        height: 40%;
        padding: 40px 0px;
        border-bottom: 1px solid #ccc;
    }

    .content-right {
        font-size: 20px;
        height: 10%;
        padding-left: 10px;
    }

    .content-pic {
        width: 160px;
    }
}

/* Styles for devices with a width of more than 768px (e.g., tablets and desktops) */
@media (min-width: 769px) {
    html, body {
        background-color: black;
    }
    
    .tab-container {
        background-color: black;
    }
    
    .tabs {
        background-color: #000000;
    }
    
    .tab {
        background-color: #444;
    }
    
    .content-left, .content-right {
        width: 50%;
    }
    
    .content-left {
        border-right: 1px solid #ccc;
    }
    
    .content-right {
        padding-left: 90px;
    }
}