body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #4a4a4a;  
    font-size: 16px;  
    font-weight: 300;  
    line-height: 1.5;  
} 

h1 {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-weight: 300;
    font-size: 30px;
}

h2 {
    font-weight: 300;
    font-size: 24px;
    text-align: center;
}

/* Desktop CRES gif styling*/ 
#CRES-gif{
    width: 480px;
    height: 260px;
}

/* Mobile CRES gif styling */ 
@media screen and (max-width: 1100px){
    #CRES-gif{
    max-width: 100%;
    object-fit: scale-down;
    height: auto;
}
}

.grid-container{
    padding: 30px;
    margin: 0 auto;
}

.grid-container h1{
    text-align: center;
}

.section {
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

#row3{
    align-items: center;
}

#section_new{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 1100px) {
    #section_new{grid-template-columns: 1fr;
}
}

#section3 {
    z-index: 1;  
}

#section3 {
      
    background-color: #ffffff;
    margin: -0.25px;
}

#section5 {
    margin-top: -80px;  
}

#section14 {
    padding: 30px;
    margin: 0 auto;
}


.centered-heading {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    font-family: 'Roboto', sans-serif; 
    z-index: 1; 
    margin-bottom: 20px;
}


.grid-2x2, .grid-1x3, .grid-3x3-1 {
    display: grid;
    row-gap: none;
    padding: none;
}

.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2,1fr);
    row-gap: 0px;  
    column-gap: 10px; 
}

.grid-item-image {
    width: 40%; 
    height: auto; 
    display: block;
    margin: 10px auto;

}


.grid-2x3 {
    display: grid;
    row-gap: 5px;
    grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 1100px) {
    .grid-2x3 {
        grid-template-columns: 1fr !important; 
    }
}


.grid-1x3 {
    display: flex;
    flex-direction: row;
    column-gap: 10px;
}

@media screen and (max-width: 1100px) {
    .grid-1x3 {
        flex-direction: column;
    }
}

.grid-3x3-1 {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.grid-item {
    border: none;
    padding: 10px;
    text-align: left;
}

.grid-item-bottom{
    box-sizing: border-box;
    padding: 30px;
    text-align: left;
}

.special {
    border: 2px solid #ff0000; /* Red border around the special item (Measurements Section) */
    padding: 10px;
}

.grid-heading {
    text-align: center;
    font-weight: 300;  
}

.grid-1x2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

@media screen and (max-width: 800px) {
    .grid-1x2 {
        flex-direction: column;
    }
}

.dir-neutrino-mass-wrapper{
    display: grid;
    justify-content: center;
}

.dir-neutrino-mass p{
    font-size:23px;
}

@media screen and (max-width: 800px) {
    .dir-neutrino-mass-wrapper{   
        transform: scale(0.65);
    }
}


.text-col {
    flex: 1;
    text-align: left;
    width: 100%;
}

.underbrace {
    position: relative;
    display: inline-block;
}

.underbrace::after {
    content: "";
    display: block;
    width: 100%;
    border-bottom: 2px solid black;
    border-left: 2px solid black;
    border-right: 2px solid black;
    position: absolute;
    left: 0;
    bottom: -3px; /* Adjust this value to control the distance of the underbracket from the text */
}

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

.image-col{
    text-align: center;
}

@media screen and (min-width:800px){
    .image-col img{
        transform: scale(0.8);
    }
}

.section-image {
    max-width: 50%;
    max-height: 50%;
}


/* THE HEADER */

.header {
    overflow: hidden;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 2;
    transition: all 0.3s;
    height: 80px;
    color: white;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.5s ease, height 0.5s ease, color 0.5s ease;
    font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #000000;
}


.logo {
    position: relative;
    height: 50px;
    width: 400px;
    overflow: hidden;
}

.logo-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 50px;
    transition: opacity 0.5s ease;
    padding-left: 40px
}

#logoImg1 {
    opacity: 1;
}

#logoImg2 {
    opacity: 0;
}


.nav-links {
    display: flex; 
}

.nav-links a {
    display: block;
    color: inherit;
    text-align: center;
    padding: 28px 20px;
    text-decoration: none;
}

/* hides burger icon on wider screen widths*/
.nav-links .icon {
  display: none;
}

@media screen and (max-width: 1100px){ 

  /*Only displays the burger icon if responsive class is not on */
  .nav-links:not(.responsive) a:not(.icon){
  display: none;}

  .nav-links a.icon {
    display: flex;
  }

  /* Allows all the links to be visible */
  .header{
    overflow: visible !important;
  }

  /* Styles the entire dropdown format */
  .nav-links.responsive{
    position: absolute;
    top: 80px;
    display: flex;
    right: 0;
    left: 0;
    flex-direction: column;
    z-index: 1000;
    background-color:rgba(166, 166, 166, 0.5) ;
    max-width: 100%;
  }

  /* Styles individual nav-links in dropdown format */
  .nav-links.responsive a {
    position: static;
    display: block;
    width: auto;
    text-align: left;
    padding: 16px 20px;
  }

  .nav-links a.icon{
    text-align: center;
  }
}


/* HERO IMAGE */
.image-container {
    position: relative;
    z-index: 1;
    margin-top: -80px; 
    width: 100%; 
}

.image-container img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.centered-text {
    position: absolute;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: rgb(255, 255, 255);
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}



.section-content {
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start; 
}

.section-text {
    flex: 0 0 60%; 
    text-align: left;
    margin-right: 20px;
}

.section-video {
    flex: 0 0 38%; 
    text-align: right;
    
}

.section-video video {
    width: 100%; 
    height: auto; 
    
}


.section-content-new {
    display: grid;
    grid-template-columns: (2, 1fr);
    align-items: center; 
    justify-content: flex-start; 
    background-color: #ffffff;
    padding: none;
}

.section-text-new {
    flex: 1; 
    text-align: left;
}

.section-text-neutrino {
    flex: 1; 
    text-align: left;
    margin-left: 30px;
    column-count: 3;
    column-width:0px; 
}

.section-gif-new {
    display:flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding: 10px;
}

.grid-1x2-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    align-items: flex-start;
    margin-bottom: 20px;
}

@media screen and (max-width: 1100px) {
    .grid-1x2-bottom{
        display: block;
    }
}


/* FOOTER */

.footer-container {
    background-color: #d7345d;
    width: 100%;
    margin-top: 40px;
  }
  
  .custom-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; 
  }
  
  .footer-left,
  .footer-middle,
  .footer-right {
    flex: 1;
    text-align: center;
  }
  
  .footer-logo {
    max-width: 300px; 
    height: auto;
  }


/* Additional CSS */
.circular-numbered-list {
    counter-reset: list-counter;
    list-style-type: none;
}

.circular-numbered-list li {
    counter-increment: list-counter;
    position: relative;
    margin-bottom: 1.5em;
}

.circular-numbered-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: -35px; 
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border: 2px solid black;
    border-radius: 50%;
    background: white;
    color: black;
}

.list-heading {
    font-weight: 300;
    margin-top: 0;
}

.custom-list {
    list-style-type: none;
    counter-reset: list-counter;
    text-align: left;
}

.custom-list li {
    counter-increment: list-counter;
    position: relative;
    margin-bottom: 1em;
    text-align: left;
}

.custom-list li::before {
    content: counter(list-counter);
    position: absolute;
    left: -2em;
    text-align: center;
    width: 1.2em;
    border: 1px solid black;
    border-radius: 50%;
    padding: 2px;
}

#section5 h1 {
    font-weight: 300;
    text-align: center;
}

#combined-section h1 {
    font-weight: 300;
    text-align: center;
}

.cres-heading {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-weight: 300;
    padding-bottom: 0px;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: white;
    font-family: 'Roboto', sans-serif;
    background-color: rgba(166, 166, 166, 0.5); 
    padding: 10px 20px; 
    border-radius: 0px; 
  }
  
  .image-container {
    position: relative;
  }

  .divider {
    height: 10px;
    background-color: lightgrey;
    margin: 20px 0; 
}
