body {
    font-family: "Poppins", sans-serif;
}

button {
    cursor: pointer;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Center text horizontally */
}

.choose-image-title, .calculate-title, .results-title {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    text-align: center; /* Center text horizontally */
    flex: 1;
    padding: 20px; /* Add some padding for better spacing */
}

.choose-image-title {
    /* background-color: aqua; */
}

.calculate-title {
    flex: 2;
    /* background-color: lightgoldenrodyellow; */
}

.results-title {
    /* background-color: lightgreen; */
}

.container {
    display: flex;
    width: 100%;
    height: 90vh;
    /* background-color: bisque; */
}

.calculate, .results {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    text-align: center; /* Center text horizontally */
    padding: 20px; /* Add some padding for better spacing */
}

.choose-image {
    background-color: rgb(19, 111, 241);
    flex: 1;
    overflow-y: auto; /* Add vertical scrollbar */
    padding: 10px; /* Add some padding for better spacing */
}

.calculate {
    display: flex;
    flex: 2;
    /* background-color: rgb(240, 144, 144); */
    flex-direction: column; /* Arrange items vertically */
    align-items: center; /* Center items horizontally */
}

.choose-image img {
    width: 40%; /* Make the image fill the child div */
    max-width: 100%; /* Ensure the image doesn't overflow the child div */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Change cursor to pointer on hover */
}

.choose-img-desc {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-bottom: 10px; /* Add some space between image descriptions */
}

.image-wrapper {
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Optional: Add some shadow for better visual separation */
    text-align: center; /* Center text and images inside the container */
    transition: background-color 0.3s ease; /* Add transition for background color */
    cursor: pointer; /* Change cursor to pointer on hover */
}

/* Highlight the selected image-wrapper */
.image-wrapper.selected {
    border: 2px solid blue;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
    background-color: lightblue; /* Change background color to indicate selection */
}

.image-wrapper:hover {
    background-color: lightgray; /* Change color on hover */
}

/* Add styles for the image-container */
.image-container {
    width: 80%; /* Fixed width for the image-container */
    height: 80%; /* Fixed height for the image-container */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Hide overflow */
    background-color: white; /* Optional: Add background color */
    border: 2px solid black; /* Optional: Add border */
    border-radius: 10px; /* Optional: Add border radius */
    position: relative; /* Ensure the image container is relatively positioned */
}

.image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure image fits within container without distorting */
}

.contact-points-btns, .algorithm-btns {
    background-color: white;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.contact-points, .algorithm {
    padding-top: 10px;
}

.contact-points-text, .algorithm-text {
    font-size: 20px;
    margin-bottom: 10px; /* Add space between text and buttons */
}

.btns-in-calculate {
    padding: 10px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
    margin: 10px;
    font-size: 30px;
    border: none;
}

.btns-in-calculate:hover {
    background-color: lightskyblue;
}

#author {
    align-items: center;
    text-align: center;
    color: white;
}

.btns-in-calculate:active {
    background-color: rgb(38, 142, 206);
    color: white;
}

.selected-btn {
    background-color: rgb(38, 142, 206) !important; /* Change background color to blue */
    color: white; /* Change text color to white */
}

.selected-btn:hover {
    background-color: blue; /* Prevent hover effect */
    color: white; /* Ensure text color stays white */
}

.results {
    /* background-color: lightgreen; */
    flex: 1;
    flex-direction: column;
}

.results-angles {
    overflow: hidden;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column; /* Change to column to stack rows vertically */
    align-items: flex-start; /* Align items to the start */
}

.angle-row {
    display: flex;
    flex-direction: row; /* Align label and input horizontally within each row */
    align-items: center; /* Align items vertically center */
    margin-bottom: 10px; /* Space between rows */
}

#left-angle, #right-angle {
    border: none;
    margin-left: 10px; /* Add some space between label and input */
    width: 150px; /* Fixed width for better alignment */
    color: #268ece; /* Match color with Calibrate button */
}

.measurements {
    overflow: hidden;
    margin: 10px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
}

.btn-in-measurements {
    border: 1px solid black;
}

.btns-in-results {
    padding: 10px;
    padding-left: 40px;
    padding-right: 40px;
    border-radius: 5px;
    margin: 20px;
    font-size: 30px;
    align-items: center;
    border: none;
    display: flex;
    justify-content: flex-start;
    color: #268ece; /* Match color with Calibrate button */
}

/* Default styles for Calibrate and Calculate buttons */
.btns-in-results:nth-child(1) {
    background-color: rgb(38, 142, 206); /* Calibrate button color */
    color: white;
}

.btns-in-results:nth-child(2) {
    background-color: rgb(5, 69, 147); /* Calculate button color */
    color: white;
}

.btns-in-results:nth-child(1):hover {
    background-color: rgba(38, 142, 206, 0.8); /* Lighter Calibrate button color on hover */
}

.btns-in-results:nth-child(2):hover {
    background-color: rgba(5, 69, 147, 0.8); /* Lighter Calculate button color on hover */
}

.btns-in-results:nth-child(1):active {
    background-color: rgba(38, 142, 206, 0.6); /* Even lighter Calibrate button color on active */
}

.btns-in-results:nth-child(2):active {
    background-color: rgba(5, 69, 147, 0.6); /* Even lighter Calculate button color on active */
}

.btns-in-results:hover {
    background-color: lightskyblue;
}

.btns-in-results:active {
    background-color: blue;
    color: white;
}

/* CSS for the horizontal blue line */
.image-container .horizontal-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: blue;
    display: none; /* Initially hidden */
    pointer-events: none; /* Allow clicks to pass through the line */
    z-index: 2; /* Ensure the line is above the image */
}

/* CSS for the vertical red lines */
.image-container .vertical-line {
    position: absolute;
    width: 2px;
    height: 250px; /* Height of the red lines */
    background-color: red;
    pointer-events: none; /* Allow clicks to pass through the line */
    z-index: 3; /* Ensure the red lines are above the blue line */
}

/* CSS for the black dot */
.image-container .black-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: black;
    border-radius: 50%;
    z-index: 4; /* Ensure the dot is above all lines */
    pointer-events: none; /* Allow clicks to pass through the dot */
}

.trademark {
    justify-content: center;
    align-items: center;
    text-align: center; /* Center text horizontally */
    display: flex;
    margin: 10px;
}
