
/* Global Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


:root {
  --primary-color: #E6481E;
  --primary-color-hover: #e03405;
  --secondary-color: #3C0000;
  --tertiary-color: #f19900;
  --tertiary-color-hover: #f19900;
  --off-white: #FDF4F2;
  --off-white-transparent: #fdf4f200;

  --heading-color: var(--primary-color);
  --text-color: var(--secondary-color);
  --text-color-light: var(--off-white);

  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-hover);
  

  --button-primary-color: var(--primary-color);
  --button-primary-hover-color: var(--primary-color-hover);
  --button-primary-text-color: var(--off-white);

  --button-secondary-color: var(--off-white);
  --button-secondary-hover-color: var(--primary-color);
  --button-secondary-text-color: var(--primary-color);
  --button-secondary-text-color-hover: var(--off-white);


  --background-color: var(--off-white);
  --background-color-transparent: var(--off-white-transparent);
}

/* Distances */
:root {
  --d-1: 4px;
  --d-2: 8px;
  --d-3: 12px;
  --d-4: 16px;
  --d-5: 20px;
  --d-6: 24px;
  --d-7: 28px;
  --d-8: 32px;
  --d-9: 36px;
  --d-10: 40px;
  --d-20: 80px;
}


::selection {
  background-color: var(--primary-color); 
  color: var(--off-white);
}

::-moz-selection {
  background-color: var(--primary-color); 
  color: var(--off-white);
}

html{
  font-size: 16px;
  font: 16px sans-serif;
  line-height: 1.6;

}
body {
  overflow-x: hidden;
  background-color:var(--background-color); ;
  font-family: "Hind", sans-serif;
  color: var(--text-color);
}



/* Typography */

h1,h2,h3,h4,h5,h6 {
  font-family: "Crimson Pro", serif;
  line-height: 1.1;
  font-weight: 400;
  text-align: center;
  color: var(--heading-color);
  margin-bottom: 10px;

}


h1 {font-size: 7.5rem; }
h2 {font-size: 7.5rem;; }
h3 {font-size: 2.625rem; }
h4 {font-size: 1.125rem; }
h5 {font-size: 1rem; }
h6 {font-size: 0.875rem; } 



p {
  font-family: "Hind", sans-serif;
  font-size: 1.5rem; 
  margin-bottom: 20px;
}

h1.main-title{
  max-width:900px; 
}

.main-title{
  font-family: "Crimson Pro", serif;
  font-size: 7.5rem;
  text-align: center;
  margin: auto;
  font-weight: 500;
  line-height: 1.1;
}

h2{
  font-weight: 500;
  line-height: 1.1;

}

h3{
  font-family: "Hind", sans-serif;
  font-weight: 600;
  padding-top: 20px;
}

.quote {
  font-style: italic;
  font-family: "Crimson Pro", serif;
  font-size: 3.75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  max-width: 1200px;
  color: var(--primary-color);
}

.tiny-text{
  font-size: 14px;
}

.small-text{
  font-size: 16px;
}
.font-size-l  {
  font-size: 3rem;
  line-height: 1.3;
  margin-bottom: 30px;

}

.font-size-xl  {
  font-size: 6rem;
  line-height: 1.4;
}
.font-size-xxl  {
  font-size: 12rem;
  line-height: 1.2;
}

.text-center {
  text-align: center;
}

.source-link {
  text-decoration: none;
  color: inherit;
}
.source-link:hover{
  text-decoration: underline;
}




/* Add styles below */

.color-light {
  color: var(--text-color-light);
}

.color-primary  {
  color: var(--primary-color);
}



/* ======== */
/* Sections */
/* ======== */

section {
  position: relative;
}

.content-section {
  width: 100%;
  background: var(--off-white);

}
.content-section p{
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* padding: 0 40px; */
}

.content-section p.font-size-l{
  max-width: 1050px;
}

.content-section h2,
.content-section h3{
  max-width: 1200px;
}

.content-section h2{
  margin: auto;
}



/* ======== */
/* CTA- Sections */
/* ======== */

.cta-section  {
  padding: 80px 40px;
  background-color: var(--primary-color);
}

.cta-section p {
  max-width: 1200px;
  margin: auto auto 16px;
  color: var(--text-color-light);
  text-align: center;
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 500;
}

.cta-section .btn{
  display: block;
  width: fit-content;
  margin: auto;
  margin-top: 50px;
  padding: 8px 16px;
  background-color: var(--button-secondary-color);
  color: var(--button-secondary-text-color);
  font-size: 1.5rem;
  text-decoration: none;
  transition:  0.3s ease-in-out;
  border-radius: 5px;
  border: 2px solid var(--off-white);
}

.cta-section .btn:hover{
  background-color: var(--button-secondary-hover-color);
 color: var(--button-secondary-text-color-hover);
 border-color: var(--off-white);
}

.cta-section .sub-btn{
  display: block;
  width: fit-content;
  margin: auto;
  margin-top: 10px;
  padding: 8px 16px;
  color: var(--off-white);
  font-size: 1.5rem;
  text-decoration: none;
  transition:  0.3s ease-in-out;
  border-radius: 5px;
  border: 2px solid var(--primary-color);
}

.cta-section .sub-btn:hover{
  border: 2px solid var(--off-white);
}

.cta-section .pdf-icon{
  width: 18px;
  margin-right: 4px;
  fill: var(--primary-color);
  transition:  0.3s ease-in-out;
}
.cta-section .btn:hover .pdf-icon{
  fill: var(--off-white);
}

.cta-section .pdf-icon.off-white-color{
  fill: var(--off-white);
}



/* ======== */
/* Reveal Icons */
/* ======== */

.reveal-example-icon {
  width: 16px;
  filter: invert(27%) sepia(30%) saturate(6384%) hue-rotate(358deg) brightness(106%) contrast(80%);
}


.above-1200 {
  display: inline-block;
}
.below-1200,
.below-800 {
  display: none;
}



.reveal-section {
  --icon-size: 18px;
  --quantity-columns: 100;
  position: relative;
}
@media screen and (max-width: 1800px) {
  .reveal-section {
    --icon-size: 16px;
  }
}

@media screen and (max-width: 1600px) {
  .reveal-section {
    --icon-size: 14px;
  }
}

@media screen and (max-width: 1400px) {
  .reveal-section {
    --icon-size: 12px;
  }
}
@media screen and (max-width: 1200px) {
  .reveal-section {
    --icon-size: 20px;
    --quantity-columns: 50;
  }
  .above-1200 {
    display: none;
  }
  .below-1200 {
    display: inline-block;
  }
}

@media screen and (max-width: 1000px) {
  .reveal-section {
    --icon-size: 16px;
  }
}

@media screen and (max-width: 800px) {
  .reveal-section {
    --icon-size: 25px;
    --quantity-columns: 20;
  }
  .below-800 {
    display: inline-block;
  }
  .below-1200 {
    display: none;
  }
}

@media screen and (max-width: 500px) {
  .reveal-section {
    --icon-size: 20px;
    --quantity-columns: 20;
  }
}
@media screen and (max-width: 400px) {
  .reveal-section {
    --icon-size: 16px;
    --quantity-columns: 20;
  }
}


.reveal-container {
  width: calc(var(--icon-size) * var(--quantity-columns));
  background: var(--off-white);
  margin: auto;
}


.reveal-line {
  width: 100%;
  height: var(--icon-size);
  margin-bottom: 2px;
  background-image: url("data:image/svg+xml,%3Csvg  xmlns='http://www.w3.org/2000/svg' fill='%23E6481E'   viewBox='0 0 448 448'%3E%3Cpath d='M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: var(--icon-size) var(--icon-size);
  position: relative;
  overflow: hidden;
}

.reveal-line::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--off-white);
  transform: translateX(0);
  transition: transform 0.6s ease-out;
}

.reveal-line.reveal::after {
  transform: translateX(100%);
}

.reveal-line.tiny-text{
  display: flex;
  justify-content: center;
  margin-top: 4px;
  font-size: 14px;
  background: var(--off-white);
}

@media  screen and (max-width: 500px) {
  .reveal-line.tiny-text{
height: 200%;
justify-content: flex-start;

  }
}


/* simple classes  */

.bg{
  background-color: var(--background-color);
}

.bg-gradient{
  background: linear-gradient(180deg,   var(--background-color-transparent),  var(--background-color) 5%  )
}

.bg-white{
  background-color: white;
}
.vh-25 {min-height:  25vh; min-height: 25dvh;}
.vh-50 {min-height:  50vh; min-height: 50dvh;}
.vh-100 {min-height: 100vh; min-height:100dvh ;}
.vh-200 {min-height: 200vh; min-height:200dvh ;}
.vh-300 {min-height: 300vh; min-height:300dvh ;}
.vh-400 {min-height: 400vh; min-height:400dvh ;}
.vh-500 {min-height: 500vh; min-height:500dvh ;}

.sticky {
  position: sticky;
  top: 0;
}

.pad-normal { 
  padding: 32px;
}

@media screen and (max-width: 500px) {
  .pad-normal { 
    padding: 16px;
  }
  
}



.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.block-center {
  display: block;
  text-align: center;
}

.clamp-width{
  width: clamp(600px, 50%, 100%) 
}




/* ========== */
/* Images */
/* ========== */





.bg-img-section {
  position: relative;
}

.bg-img-fade-container {
  height:100vh;
  height:100dvh;
  width: 100%;
  position: sticky;
  top: 0;
}

.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease;
}

@media screen and (max-width:767px) {

  .right-80{
    background-position: 80%;
  }

}


.lazy-bg {
  background-color: var(--off-white); /* Placeholder color */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.lazy-bg.loaded {
  opacity: 1;
}



/* ========== */
/* Chart */
/* ========== */

.chart-container {
  max-width: 1200px;
  width: 100%;

  background: var(--background-color);
  /* padding: 30px 0; */
}

.chart-container .box-overlay {
  width: 100%;
  height: 500px;
}



.chart {
  width: 100%;
  height: 500px;
}

@media screen and (max-width: 767px) {
  .chart {
    height: 400px;
  }
  .chart-container .box-overlay {
    height: 400px;
  }
}

.chart-container p {
  max-width: 100%;
}





#global-surface-temperature-change{
  position: relative;
  overflow: hidden;

}

#global-surface-temperature-change .only-overlay{
  position: absolute;
  width: 94%;
  height: 83%;
  top: 0;
  right: 0;
  background-color: white;
}



.box-overlay{
  position: relative;
  /* overflow: hidden;s */

}

.box-overlay .only-overlay{
  position: absolute;
  top:0;
  right: 0;
  background-color: var(--background-color);
}







/* ========== */
/* Animations */
/* ========== */

.animation-fade-in {
  opacity: 0;
}
.in-viewport.animation-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animation-pulse {
  animation: pulse 1s ease-in infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
}


.in-viewport.animation-translateX-100{
  animation: remove-right 2s ease forwards 
}

@keyframes remove-right {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
    color: hsla(350, 62%, 62%, 0.713);
  }
}


/* ========== */
/* Map + Legend */
/* ========== */


.map-wrapper{
  width: 1200px;
  max-width: 100%;
}

.map-container{
  display: block;
  position: relative;
  height:  100%;
  width: 100%;
  aspect-ratio: 16/9;
}

.map-container .map-item{
  position: absolute;
  object-fit: contain;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
}

.map-container h3{
  grid-column: 1;
  grid-row:  1;
  z-index: 1;
  margin: auto;
}

.map-sub-text{
  position: absolute;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  bottom: 0;
  width: 100%;
  margin: auto;
  background-color: var(--off-white);
  padding: 8px;
  z-index: 3;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .map-sub-text{
    justify-content: flex-start;
    bottom: -50px;
  }
}

@media screen and (max-width: 500px) {
  .map-sub-text{
    bottom: -100px;
  }
}

.map-sub-text .small-text {
  font-size: 14px;
  line-height: 1;
}
.map-sub-text > *{
  padding: 4px;
}
.color-box{
  width: 1em;
  height: 1em;
  border: 1px  solid #898989;
}

.border-dashed{
  border: 2px dashed #737373;
}


.legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap:12px;
  padding-top: 12px;
}

@media screen and (max-width: 767px) {
  .legend {

    gap:4px;
  }
}


.legend-item {
  display: flex;
  align-items: center;
  flex-wrap:wrap;
  gap: 4px;
  line-height: 1;
}


/* ========== */
/*   Footer   */
/* ========== */
footer{
  width: 100%;
  padding: 30px;
  background-color: var(--primary-color);
}

footer *{
  font-size: 14px;
  color: var(--off-white);
  line-height: 1.2;

}

footer .footer-headline{
  font-family: "Crimson Pro", serif;
  color: var(--off-white);
  font-size: 2.5rem;
  max-width: 1400px;
  padding-bottom: 20px;
  margin: auto;
}
  
footer .footer-grid  {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 1400px;
  margin: auto;
}

footer .footer-sub-headline {
  color: var(--off-white);
  border-bottom: 2px solid var(--off-white);
  margin: 12px 0 ;
  font-weight: 600;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

footer li {
  padding-bottom: 12px;
}
footer a {
  text-decoration:  underline;
}

footer .footer-image-container{
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  gap:4px;
}

footer .footer-image-container a,
footer .footer-image-container img{
  max-width: 150px;
  width: 100%;
}

footer .tiny-text{
  font-size: 10px;
  margin: 12px 0;
}

footer .credit ol {
  padding: 10px;
}


@media (max-width: 1023px) {
  footer .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}



@media (max-width: 768px) {
  footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  footer .footer-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ========== */
/* Navigation */
/* ========== */
nav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  background-color: var(--off-white);
  margin-right: 12px;
  border-radius: 100px;
}

@media screen and (max-width: 767px) {
  nav {
    margin-right: 4px;
    top: 46px;
  }
}

nav a{
  font-size: 0;
  margin: 4px;
  background: #d8b3a8ab;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

nav a.active {
  color: #fff;
  background-color: var(--primary-color);
}

nav a:hover{
  background-color: var(--primary-color-hover);
}



/* Tooltip styles */
nav a[data-text] {
  position: relative;
  display: inline-block;
}

nav a[data-text]::before {
  content: attr(data-text);
  position: absolute;
  top: -10px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: all 0.3s ease;
}


nav a[data-text]:hover::before {
  opacity: 1;
  transform: translateX(0);
}

@media screen and (max-width: 767px) {
  nav a[data-text]:hover::before {
    opacity: 0;
  }
}


/* ========== */
/* language-switcher */
/* ========== */

.language-switcher{
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 101;
  display: flex;
  gap:8px;
  /* padding: 3px; */
  margin-left: 12px;
  border-radius: 100px;
  font-size: 1.2rem;
}

.language-switcher span{
 color:var(--off-white);
}

.language-switcher .other-language a{ 
  text-decoration: none;
  opacity: 0.5;
  color:var(--off-white);
  transition: 0.2s;
 }
 .language-switcher .other-language a:hover {
  opacity: 1;

 }


footer .language-switcher{
  position: relative;
  top: 0;
  right: 0;
  margin: 12px 0 0 0;
  padding: 0;
 }



/*  mobile mobile */

@media screen and (max-width: 1024px) {
  h1 {font-size: 5rem; }
  h2 {font-size: 4rem; }
  h3 {font-size: 2rem; }

  p {
    font-family: "Hind", sans-serif;
    font-size: 1.125rem; 
    margin-bottom: 20px;
  }

  .main-title{
    font-size: 5rem;
  }
  h1.main-title{
    max-width: 650px;
  }
  
  .quote {
    font-size: 2.5rem;
  }
  
  .font-size-l  {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 30px;
  
  }
  
  .font-size-xl  {
    font-size: 4rem;
  }
  .font-size-xxl  {
    font-size: 8rem;
  }

  .cta-section p{
    font-size: 2rem;
    line-height: 1.4;
  }

}







/*  mobile mobile */

@media screen and (max-width: 767px) {
  h2 {font-size: 3.5rem; }

  .main-title{
    font-size: 3.5rem;
  }
  h1.main-title{
    max-width: 500px;
  }

  p {
    font-size: 1rem; 
  }
  
  .font-size-l  {
    font-size: 1.625rem;
  }

  .font-size-xxl  {
    font-size: 5.25rem;
  }

  .quote {
    font-size: 2rem;
  }

  .cta-section p{
    font-size: 1.625rem;
    line-height: 1.4;
  }

  .small-text {
    font-size: 14px;
    line-height: 1.2;
  }

    
  .break-on-mobile,
  .break-on-mobile {
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: manual;
  }



}


/*  tiny  mobile */

@media screen and (max-width: 420px) {
  h2 {font-size: 2.5rem; }

  .main-title{
    font-size: 2.5rem;
  }

  h1.main-title{
    max-width: 330px;
  }
  
  .font-size-l  {
    font-size: 1.25rem;
  }

  .font-size-xxl  {
    font-size: 3.25rem;
  }

  .cta-section p{
    font-size: 1.2rem;
    line-height: 1.4;
  }

  .cta-section .btn,
  .cta-section .sub-btn{
    font-size: 1.2rem;
  }

}
