body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

body, html, ul, li, p {
    font-family: arial !important;
}

#unitSwitchContainer {
    position: absolute;
    border: 3px solid #5998FA;
    border-radius: 5px;
    background: white;
    top: 10px;
    right: 10px;
    z-index:99;
}

.btn{
    display: inline-block;
    padding: 10px;
    position: relative;
    text-align: center;
    transition: background 600ms ease, color 600ms ease;
}

input[type="radio"].toggle {
    display: none;
    & + label{
        cursor: pointer;
        min-width: 60px;
        &:hover{
            background: none;
            color: #5998FA;
        }
        &:after{
            background: #5998FA; /* This is where you can set the background color for the inactive state */
            content: "";
            height: 100%;
            position: absolute;
            top: 0;
            transition: left 200ms cubic-bezier(0.77, 0, 0.175, 1);
            width: 100%;
            z-index: -1;
        }
    }
    &.toggle-left + label {
        border-right: 0;
        &:after{
            left: 100%
        }
    }
    &.toggle-right + label{
        margin-left: -5px;
        &:after{
            left: -100%;
        }
    }
    &:checked + label {
        cursor: default;
        color: #fff;
        transition: color 200ms;
        &:after{
            left: 0;
            background: #5998FA; /* This is the background color when the toggle is active */
        }
    }
}

.heightContainer {
    position: relative;
    min-width: 100vw;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-color: #f4f4f4; /* Optional background */
    overflow: hidden; /* Hide overflow to keep lines within the container */
}

#lineContainer {
    position: absolute;
    bottom: 0; /* Align lines to the bottom */
    width: 100%;
    height: 100%; /* Full height for height lines */
    z-index: 0;
}

#lineContainer > .line:first-child, #lineContainer > .line:last-child {
    display: none;
}

.line {
    width: calc(100% - 50px);
    margin-left: 50px;
    right: 0;
    position: absolute;
}

.line:nth-child(even) {
    border-bottom: 1px solid #00000050; /* Line style */
}

.line:nth-child(odd) {
    border-bottom: 2px solid #000000; /* Line style */
}

.label {
    position: absolute;
    display: block;
    width: 40px;
    left: -48px;
    text-align: right;
    font-size: 20px;
    color: #000;
    padding-left: 10px;
    margin-top: -10px;
}

/* Container for the person's image, aligned to the bottom */
#imageHeight {
    position: relative;
}

#ph-person-details {
    display: flex;
    height: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
}

#ph-person-details > div {
    position: relative;
}

#imageHeight > img {
    position: relative;
}

/* Person details container aligned with the bottom */
.detailsContainer {
    display:none; /*TEMPORRARY REMOVE TO ADJUST SIZES PROPERLY*/
    position: absolute;
    bottom: 0; /* Align the details to the bottom */
    width: 100%;
    text-align: center;
    padding-bottom: 20px; /* Add some space between the text and the bottom */
}

/* Modal styles */
.ph-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Ensure it's on top of everything else */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    justify-content: center;
    align-items: flex-start; /* Align items at the top */
}

.ph-modal-content {
    background-color: #fefefe;
    padding: 20px;
    width: 100%; /* Full width for search bar */
    margin: 0; /* Remove margin to stretch across full width */
    border: none;
    position: fixed;
    top: 0; /* Align to the top of the page */
    left: 0;
    right: 0;
    z-index: 10000; /* Modal content also needs a high z-index */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for aesthetics */
}

#ph-search-input {
    width: 100%; /* Full width for large input */
    font-size: 24px; /* Larger font for better visibility */
    padding: 15px;
    margin: 0; /* Remove margin for alignment */
    border: none;
    box-sizing: border-box; /* Ensure padding doesn't exceed container width */
}

#ph-add-person-container {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    transform: translate(-50%, -50%); /* Center the plus sign on the screen */
    z-index: 10; /* Ensure it stays on top */
}
#ph-search-results {
    cursor: pointer;
}

#ph-search-results li {
    padding: 5px;
}

/* Add Person Button */
#ph-add-person-button {
    position: fixed;
    bottom: 50px; /* 50px from the bottom */
    left: 50%;
    height: 1em;
    width: 1em;
    transform: translateX(-50%);
    background: white;
    border-radius: 5px;
    border-color: #00000010;
    box-shadow: 0 0 4px 2px #00000025;
    color: #46B973;
    font-size: 5em;
    line-height: 1;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease; /* Animation for hover */
}

#ph-add-person-button:hover {
    background: white;
    border-radius: 5px;
    color: #46B973;
    transform: translateX(-50%) scale(1.1); /* Slightly grow on hover */
}

/* Close Button */
.remove-person-btn {
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF4344;
    border-radius: 1.5em;
    border-color: #00000010;
    box-shadow: 0 0 4px 2px #00000025;
    color: white;
    font-size: 3em;
    line-height: 0;
    cursor: pointer;
    width: 1em;
    height: 1em;
    transition: transform 0.2s ease;
    z-index: 10;
}

div > .remove-person-btn {
    opacity: 0;
    transition: transform 0.2s ease;
}

div:hover > .remove-person-btn {
    opacity: 100;
}

.remove-person-btn:hover {
    transform: translate(-50%, -50%) scale(1.1); /* Slightly grow on hover */
}