/* Full-screen layout */

@font-face {
    font-family: 'BerkeleyMono';
    src: url('font/BerkeleyMono-Regular.woff2') format('woff2'),
         url('font/BerkeleyMono-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
  }

h1{
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25em;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
  }
  
  .two-column-layout {
    display: flex;
    width: 100%;
    height: 100%; /* Full height minus header */
    overflow: hidden;
  }
  
  .column {
    padding: 10px;
    box-sizing: border-box;
  }
  
  .canvas-column {
    flex: 1; /* Takes 1/3 of the space */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Not scrollable */
    border-right: 2px solid #000000;
  }
  
  .results-column {
    flex: 2; /* Takes 2/3 of the space */
    overflow-y: auto; /* Scrollable */
    overflow-x: hidden;
    max-width: 100%;
  }
  
  /* Make canvas container take top space */
  #canvasContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  .button-container{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3vh;

  }

  .button {
    font-family: 'Helvetica', sans-serif;
    display: inline-block;
    cursor: pointer;
    background: rgb(255, 255, 255);
    border: 1.8px solid black;
    color: rgb(0, 0, 0);
    font-size: 15px;
    font-weight: 500;
    transition: 10ms;
    width: 130px;    
    height: 55px; 
    border-radius: 80px; /* Rounded corners */
    /* display: flex; */
    align-items: center;
    justify-content: center;
  }
  .button:hover {
    color: black;
    border: none;
    background-color: rgb(0, 76, 255);
    color: white;
  }
  label.button {
    display: inline-flex; /* Use inline-flex instead of inline-block */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0; /* Labels can have different margin defaults */
    -webkit-appearance: none; /* Remove default styling on some browsers */
    appearance: none;
  }

  /* Two-column layout for results */
  .results-columns {
    display: flex;
    width: 100%;
    /* gap: 20px; */
    margin-top: 60px;
    margin-left: 15px;
    margin-right: 15px;
  }
  
  .result-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* width: 50%; */
  }
  
  /* Object card styling */
  .object-card {
    background-color: #fff;
    overflow: hidden;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    width: 90%;
    /* max-width: 300px; */
  }
  
  .object-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .object-title {
    font-size: 16px;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1em;
    color: #333;
  }
  
  .object-description {
    font-family: 'Halcom', sans-serif;
    font-size: 1em;
    color: #818181;
    margin-top: 2px;
    line-height: 1.4;
    font-weight: 300; /* Normal weight with !important flag */
    overflow-y: auto;
}

/* Styles for info container and query button */
#infoCont {
    margin-top: 20px;
    margin-left: 60px;
    width: 100%;
  }
  
  #showInfo {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
    width: auto;
    height: auto;
    text-decoration: none;
  }
  
  #showInfo:hover {
    background-color: rgb(0, 76, 255);
    border-radius: 0px;
    color: white;
  }
  
  /* Instead of border-bottom, use an after pseudo-element for the underline */
  #showInfo.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.3px;
    background-color: black;
  }
  
  #showInfo.active:hover::after {
    background-color: white;
  }
  
  #showInfo .arrow {
    margin-left: 5px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
  }
  
  #showInfo.active .arrow {
    transform: rotate(135deg);
  }
  
  #imageInfo {
    margin-top: 9px;
    background-color: white;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    font-family: "Helvetica", sans-serif;
    font-size: 0.8em;
    line-height: 1.5;
  }
  
  .hidden {
    display: none;
  }

  /* Mobile responsiveness */
  @media (max-width: 800px) {
    .two-column-layout {
      flex-direction: column;
      height: auto;
    }
    
    .column {
      width: 100%;
    }
    
    body {
      height: auto;
      overflow: auto;
    }
  }