/* GENERAL -------------------------------------------------------------------------------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #70729e, #f4e3dc 100%); /* #667eea 0%, #764ba2 100%);*/
    color: #333;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------------------------------------------------------- */
/* TITLE PAGE WITH ARROWS ----------------------------------------------------------------------------- */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2; 
}

.placeholder-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 1000px;
    border-radius: 10px;
}

.hero-content h2 {
  color: white;
  font-size: 3.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px #333;
  margin-bottom: 1rem;
}

.hero-content .dash-separator {
  width: 30px;
  height: 8px;
  background-color: white;
  margin: 0 auto 0.5rem auto; 
  border-radius: 4px; 
}

.hero-content h3 {
  color: white;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 2px 2px 4px #333;
  margin-top: 1rem;
}

.scroll-indicator {
    color: white;
    margin-top: 3rem;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrows {
    display: flex;
    justify-content: center;
    margin: -20px auto 0 auto;  
    width: fit-content;
    padding-top: 1rem; 
}

.scroll-arrows:hover .arrows path {
    stroke: #ccc;
}

.arrows {
    width: 45px;
    height: 70px;
    fill: none;
    stroke: white;
    stroke-width: 5px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.arrows path {
    animation: bounce 2s infinite;
}

/* ---------------------------------------------------------------------------------------------------- */
/* CHAPTER TITLE -------------------------------------------------------------------------------------- */

.chapter-title {
    font-size: 3em;
    text-align: left;
    position: relative;
    padding-left: 2rem;
    margin: 1rem 0 1rem 0; 
    color: white;
    z-index: 100;
    display: inline-block;
    clear: both;
}

.chapter-title:after {
    content: "";
    position: absolute;
    top: 55%;
    left: 103%;
    height: 6px;
    width: 100vw; 
    background: white;
    z-index: 100;
}

/* ---------------------------------------------------------------------------------------------------- */
/* CAROUSEL SECTION ----------------------------------------------------------------------------------- */
.carousel-section {
    display: flex;
    flex-direction: row;
    padding: 2rem;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: stretch;
    height: 95vh; 
    box-sizing: border-box;
    max-width: 100vw;
    position: relative;
    z-index: 1;
}

.text-content-panel {
    flex: 30;
    position: relative;
    height: 100%;
}

.text-content {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    display: none;
    height: 100%;
    box-sizing: border-box;
}

.text-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

.panel-title {
    text-align: center;
    font-size: 24px;
    margin-top: 0;
}

.panel-description {
    text-align: justify;
    text-justify: auto;
    font-size: 1.1em;
    line-height: 1.5;
}

.map-panel {
    flex: 70;
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px 10px 20px 20px; 
    height: 100%;
    box-sizing: border-box;
    overflow: hidden; 
}

.map-content {
    display: none;
    width: 100%;
    height: calc(100% - 60px); 
    justify-content: center;
    align-items: center;
}

.map-content.active {
    animation: fadeIn 0.5s;
    display: flex;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.carousel-arrow {
    background-color: #a3a5a8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.carousel-arrow:hover {
    background-color: #333;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #a3a5a8;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active {
    background-color: #333;
}

#anomaly-map-container,
#histo-map-container {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    display: flex;          
    justify-content: center; 
    align-items: center;     
}
/* ---------------------------------------------------------------------------------------------------- */
/* GRID SECTION --------------------------------------------------------------------------------------- */

.grid-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    margin: 0; 
    max-width: 100vw; 
    width: 100%; 
    position: relative;
    z-index: 1;
    clear: both; 
}

.grid-item {
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 1rem;
    box-sizing: border-box;
    min-width: 0;
}

.text-section {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    height: 150px;
}

.large-text-section {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-sizing: border-box;
    height: 240px;
}

.grid-item {
    display: flex;
    flex-direction: column;
}

.plot-container { 
    background-color: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    flex: 1; 
    box-sizing: border-box;
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: relative;
    height: 600px;
}

.plot-container > * { 
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; 
    width: 100%; 
    height: 100%; 
    box-sizing: border-box;
}


.plot-title {
    text-align: center;
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    position: static; 
}

.plot-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* ---------------------------------------------------------------------------------------------------- */
/* STATIC SECTION ------------------------------------------------------------------------------------- */

.static-section {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: stretch;
    max-width: none; 
    margin: 0;
    padding: 2rem;
    height: 95vh; 
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.text-panel2 {
    flex: 40;
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.text-panel2 h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.text-panel2 p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.map-panel2 {
    flex: 60;
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.topographic-map {
    max-width: 90%;
    max-height: 90%;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    border: 2px dashed #ccc;
    text-align: center;
}

/* ---------------------------------------------------------------------------------------------------- */
/* ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ---------------------------------------------------------------------------------------------------- */
/* STORM FREQUENCY SECTION AND TEAM SECTION ----------------------------------------------------------- */


.storm-frequency-section {
    padding: 2rem 0;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.storm-boxes-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.storm-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.storm-box h3 {
    font-size: 1.4rem;
    text-align: center;
}

.storm-box-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95em;
    line-height: 1.4;
    margin: 0;
    padding: 8px 12px;
}

.storm-quote-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
}

.storm-quote {
    font-style: italic;
    display: block;
    align-self: flex-start; 
}


.citation-source {
    align-self: flex-end;
    margin-top: 10px;
    font-style: normal;
    color: #555;
}


.storm-box {
    border: 1px solid #ccc;
    padding: 16px;
    width: 300px;
    font-family: Arial, sans-serif;
}

.team-box-title {
    margin-bottom: 12px;
    text-align: center;
}

.team-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.team-box-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.team-boxes-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

.left-photo img {
    object-fit: cover;
    height: 200px;
    width: 150px;
    z-index: 10;
    transform: translateZ(0);
    object-fit: contain;
}



.right-icons a {
    margin-left: 8px;
}

.center-text {
    text-align: center;
    font-weight: 500;
}


.text-box {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 1rem 2rem 1rem 2rem;
    box-sizing: border-box;
    text-align: justify;
    font-size: 1em;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 95vw;
    
}

/* ---------------------------------------------------------------------------------------------------- */
/* DOT NAVIGATION ------------------------------------------------------------------------------------- */
.dot-navigation {
    position: fixed;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot-navigation:hover {
    opacity: 1;
}

.dot-hover-zone {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 50px;
    height: 200px;
    z-index: 1000;
}

.dot-hover-zone:hover .dot-navigation {
    opacity: 1;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #a3a5a8;
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.5s ease;
}

.dot-navigation.fade-out .dot {
    opacity: 0;
    pointer-events: none;
}

.dot:hover {
    background-color: #333;
}

.dot[title]::after {
    content: attr(title);
    position: absolute;
    right: 140%;
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.dot:hover::after {
    opacity: 1;
}



/* ---------------------------------------------------------------------------------------------------- */
/* LOGO ----------------------------------------------------------------------------------------------- */


img {
  margin: 10px;
  vertical-align: middle;
  transition: transform 0.2s;
}

.logo img:hover {
  transform: scale(1.1);
}

/* ---------------------------------------------------------------------------------------------------- */
/* FILTER BOX ----------------------------------------------------------------------------------------- */

.weather-dashboard-container {
    max-width: calc(100vw - 4rem); 
    margin: 2rem 2rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    position: relative;
    z-index: 50; 
    clear: both;
}

.weather-plot-text {
    
    text-align: center;
    color: #718096;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 20px;
}

.weather-filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.weather-filter-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.weather-filter-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.weather-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 12px;
}

.weather-filter-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.weather-filter-toggle {
    font-size: 16px;
    /*color: #667eea;*/
    transition: transform 0.3s ease;
}

.weather-filter-toggle.collapsed {
    transform: rotate(-90deg);
}

.weather-filter-content {
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.weather-filter-content.collapsed {
    max-height: 0;
    opacity: 0;
}

.weather-filter-content.expanded {
    max-height: 500px;
    opacity: 1;
}

.weather-multi-select {
    width: 100%;
    max-height: 120px;
    overflow-y: auto;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    background: white;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
    margin-bottom: 15px;
}

.weather-multi-select::-webkit-scrollbar {
    width: 6px;
}

.weather-multi-select::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.weather-multi-select::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.weather-multi-select::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.weather-checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.weather-checkbox-item:hover {
    background-color: #f7fafc;
}

.weather-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.1);
    accent-color: #667eea;
}

.weather-checkbox-item label {
    cursor: pointer;
    font-size: 14px;
    color: #2d3748;
    flex: 1;
}

.weather-select-all-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    margin-bottom: 15px;
    width: 100%;
}

.weather-select-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.weather-year-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

.weather-year-input {
    flex: 1;
}

.weather-year-input input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.weather-year-input input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.weather-year-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

.weather-plot-type-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.weather-plot-type-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.weather-metric-type-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.weather-metric-type-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.weather-plot-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.weather-plot-placeholder {
    padding-top: 50px;
    text-align: center;
    color: #718096;
    font-size: 18px;
    font-weight: 500;
}

.weather-control-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.weather-plot-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    color: #4a5568;
    font-weight: 500;
}

.weather-update-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    width: 75%;
    height: 50px;
}

.weather-update-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.weather-update-button:active {
    transform: translateY(0);
}

.weather-reset-button {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    width: 25%;
    height: 50px;
}

.weather-reset-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
}

.weather-reset-button:active {
    transform: translateY(0);
}

.tooltip {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}