/* --------- STANDARD GLOBE STYLES ---------------- */

/* --------- FONTS -------------- */
@font-face {
    font-family: "BentonSansCondBold";
    src: url(https://mediainnovation.camd.northeastern.edu/2025/names/fonts/BentonSansCond-Bold.woff);
  }
  
  @font-face {
    font-family: "BentonSansCondReg";
    src: url(https://mediainnovation.camd.northeastern.edu/2025/names/fonts/BentonSansCond-Regular.woff);
  }
  
  @font-face {
    font-family: "Miller";
    src: url(https://mediainnovation.camd.northeastern.edu/2025/names/fonts/miller-bold.woff);
    font-weight: 800;
  }
  
  /* --------- COLORS ------------- */
  /* BLACK   #000000 */
  /* GREY    #767676 */
  /* GREY LT #dddddd */
  /* RED     #9e1511 */
  /* TOMATO  #ed1b34 */
  /* ORANGE  #de7d0b */
  /* BLUE    #005dc7 */
  /* PURPLE  #6361ab */
  /* GOLD    #ffd400 */
  /* GREEN   #0a6d32 */
  /* OLIVE   #689036 */
  
  /* ----------TEXT STYLES -------- */
  
  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }
  
  body, figure, p { /* NO EXTRA SPACE AROUND THESE ELEMENTS */
      margin: 0;
  }
  

  html {
      scroll-behavior: smooth;
  }
  
  body {
      background-color: #ffffff;
  }
  
  .headline {
      font-family: "Miller","Georgia",serif;
      font-size: 46px;
      line-height: 52px;
      padding-top: 8px;
      margin-bottom: 16px;
      max-width: 90%;
  }
  
  .byline {
      font-family: "BentonSansCondBold","Arial",sans-serif;
      font-size: 14px;
      margin: 8px 0 20px 0;
      padding-bottom: 10px;
      border-bottom: 1px solid #dddddd;
  }
  
  .byline span.affiliation { /*  FOLLOWS AFTER THE BYLINE. OURS SHOULD READ "GLOBE CORRESPONDENTS */
      font-family: "BentonSansCondReg","Arial",sans-serif;
      font-size: 14px;
      margin: 8px 0 8px 0;
      color: #767676;
  }

@media (max-width: 768px) {
    .headline {
        font-size: 42px;
        line-height: 1.1;
    }
}
  
figcaption {
    font-family: "BentonSansCondReg","Arial",sans-serif;
    font-size: 14px;
    color: #767676;
    padding: 8px 0 15px 0;
    width: 100%;
    text-align: center;
}
  
.article { /* BODY TEXT IS IN A DIV CLASS="ARTICLE" */
    font-family: "Georgia","Times",serif;
    font-size: 18px;
    line-height: 1.8; 
    margin: 20px 0 30px 0;
}
  
.article p {
    margin-bottom: 20px;
}
  
.article p:last-child {
    margin-bottom: 0;
}
  
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}
  
.content-wrapper {
    background-color: #ffffff;
    position: relative;
    padding: 40px 0;
}
  

.hero-image {
    position: relative;
    width: 100%;
    height: 100vh;
    transition: opacity 0.2s ease;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.title-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    max-width: 90%;
    width: 800px;
    z-index: 2;
}

.title-container .headline {
    font-family: "Miller","Georgia",serif;
    font-size: 46px;
    line-height: 52px;
    padding-top: 8px;
    margin-bottom: 16px;
    max-width: 100%;
    color: #000000;
}

.title-container .byline {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
    transition: opacity 0.2s ease;
}

@media (max-width: 768px) {
    .title-container {
        padding: 30px 20px;
        width: 90%;
    }
    
    .title-container .headline {
        font-size: 36px;
        line-height: 42px;
    }
}
.photo-pair {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.photo-pair img {
    width: 48%;
    max-width: 300px;
    height: auto;
}

.chart-figure {
    display: flex;
    gap: 80px; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
    margin: 20px -120px;  
    position: relative;
    max-width: none;
}

.chart-figure .chart-container {
    height: 500px;
    width: 45%; 
    margin: 0; 
}

.container {
    max-width: 1000px; 
    margin: -30 auto;
    padding: -50px -50px; 
    position: relative;
    overflow: visible; 
}

@media (min-width: 1200px) {
    .chart-figure {
        max-width: 1400px;
        margin: 20px -150px;
    }
    
    .chart-figure .chart-container {
        height: 550px;
    }
}

@media (max-width: 501px) {
    .chart-figure {
        flex-direction: column;
        width: 100%;
        left: 0;
        transform: none;
        margin: 20px 0; /* Reset margin for mobile */
    }
    
    .chart-figure .chart-container {
        width: 100%;
        margin: 0 0 20px 0;
        height: 450px;
    }
}
.splash-theme {
    position: relative;
    height: 500px;
    width: 100%;
}

.fullwidth-image {
    margin: 20px 0;
}

.fullwidth-image img {
    width: 100%;
    height: auto;
}

.centered-gif {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.centered-gif img {
    width: 100%;
    height: auto;
}

.animate-chart {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(106, 183, 255, 0.3);
}

.twilight-theme {
    background-color: rgba(255, 255, 255, 0.9);
    color: white;
}

.frozen-theme {
    background-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.splash-theme {
    background-color: rgb(255, 255, 255);
    color: white;
}

.splash-theme::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-size: 200% 200%;
    animation: wave 5s ease infinite;
    opacity: 0.7;
}

.frozen-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, white 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, white 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, white 1px, transparent 1px),
        radial-gradient(circle at 80% 60%, white 1px, transparent 1px);
    background-size: 100% 100%;
    opacity: 0.4;
    z-index: -1;
}

.name-movie-correlation-tool {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.name-movie-correlation-tool h2 {
    font-family: "BentonSansCondBold", "Arial", sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.name-movie-correlation-tool label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-family: "BentonSansCondReg", "Arial", sans-serif;
}

.name-movie-correlation-tool input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: "BentonSansCondReg", "Arial", sans-serif;
}

.name-movie-correlation-tool button {
    background-color: #9e1511;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
    font-family: "BentonSansCondBold", "Arial", sans-serif;
}

.name-movie-correlation-tool button:hover {
    background-color: #c71612;
}

.results-container {
    display: none;
    margin-top: 40px;
    text-align: center;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.results-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.movie-poster {
    width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.results-container .chart-container {
    margin-top: 30px;
    height: 400px;
    width: 100%;
    opacity: 1;
    transform: none;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.loading {
    display: none;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
    color: #9e1511;
}

.error-message {
    display: none;
    color: #e74c3c;
    background-color: #fadbd8;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: bold;
}

header#masthead {
    height: 50px;
    background-color: white;
    border-bottom: black solid 1px;
    background-image: url(https://mediainnovation.camd.northeastern.edu/2025/names/images/bostonglobe_logo_icon_169470.png);
    background-position: left;
    background-position-x: 10px; 
    background-repeat: no-repeat; 
    background-size: 35px;     
}

.input-group {
    position: relative;
}

.autocomplete-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
    background-color: #f9f9f9;
}

.autocomplete-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 3px;
    margin-right: 12px;
}

.autocomplete-text {
    flex: 1;
}

.autocomplete-title {
    font-family: "BentonSansCondBold", "Arial", sans-serif;
    font-size: 16px;
    margin-bottom: 4px;
}

.autocomplete-year {
    font-family: "BentonSansCondReg", "Arial", sans-serif;
    font-size: 14px;
    color: #767676;
}

@media (max-width: 501px) {
    .photo-pair {
        flex-direction: column;
    }
    
    .photo-pair img {
        width: 100%;
        max-width: 100%;
    }
    
    .chart-figure {
        flex-direction: column;
    }
    
    .chart-figure .chart-container {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .headline {
        font-size: 50%;
        line-height: 50%;
    }
}