body {
    margin: 0;
    padding: 0;
    background-color: white;
    min-height: 100vh;
    font-family: 'Courier New', Courier, monospace;
  }
  
  .background-grid {
    position: fixed;
    top: 20px; 
    right: 40px; 
    bottom: 0px; 
    left: 15px; 
    background-image: 
      linear-gradient(to bottom, transparent 0, transparent calc(100% - 1px), #000 calc(100% - 1px), #000 100%),
      linear-gradient(to right, transparent 0, transparent calc(100% - 1px), #000 calc(100% - 1px), #000 100%);
    background-size: 251px 251px;
    z-index: -1;
  }
  
  .main-content {
    padding: 20px; 
    box-sizing: border-box;
  }
  
  .grid-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 40px;
    width: 100%;
    padding: 5px;
  }

  .grid-container a{
    text-decoration: none;
  }
  
  .paper-card {
    background-color: #f0f0f0;
    border-top: 1px solid black;
    border-left: 1px solid black;
    padding: 16px;
    height: auto;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
  }
  
  .paper-title {
    font-size: 16px;
    font-weight: bold;
    color: black;
    margin-bottom: 8px;
    font-family: 'Courier New', Courier, monospace;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 5px;
  }
  
  .paper-author,
  .citing-authors {
    font-size: 13px;
    color: #4c4c4c;
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    border-bottom: 1px solid black;
    border-left: 1px solid black;
    background-color: rgba(0, 0, 0, 0.04);
    padding: 5px;
  }
  
  .paper-author strong,
  .citing-authors strong {
    font-family: Arial, sans-serif; 
    color: #000;
  }
  
  .citing-authors ul {
    margin: 4px 0 0 16px;
    padding: 0;
    list-style: none;
  }
  
  .citing-authors li {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .abstract-extract {
    white-space: pre-wrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 58px;
  }