:root {
--redPhase-color: red;
--yellowPhase-color: yellow;
--bluePhase-color: blue;
--text-color: #6B7280;
--bg-color: #f9f9f9;
--rootRef: 20px;
--orbitDimension: 600px;
--move-duration: 0.3s;
}

html, body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  position:relative;    
  height: 100%;
  min-height: 100vh;
  min-width: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
   
   main {
    min-height: 100vh;
    display: block;
   }
   
   .navbar {
    width: 100%;
    height: 120px;
            transform: translateY(0px);
    transition: transform 0.3s;
    border-bottom: 1px solid rgb(231, 237, 246);
   }
   
   .logo-container {
    position: relative;
    width: 100%;
    height:100px;
    display: flex;
            align-items: center;
            justify-content: center;
    transition: width 2s ease;  
   }
   
   .logo-container img {
    max-width: 100%;
    max-height: 100%;
       object-fit: contain; /* Ensure the image fits inside the parent without distortion */
  }
  
   .navContainer{
    display: flex;
    width: 100%;
            flex-direction: column;
  align-items: center; 
  justify-content: space-between;
  padding: 1em;            
   }
   
   .secondLine{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction:row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
   }
   
   @media screen and (max-width: 1200px) {
    .secondLine .auxNavItem {
    padding-left: 1.5em;
    padding-right: 1.5em;
    }
   }
   
   .secondLine .auxNavItem {
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
   }
   
   .secondLineItem{
    display: flex;
        justify-content: space-between;
        align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1280px;
    margin: 0px auto;
    padding: 14px 0px;
    height: 78px;
   }
   
   .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-33%, -50%) translateX(0);
        -ms-transform: translate(-33%, -50%) translateX(0);
            transform: translate(-33%, -50%) translateX(0);
    width: 289px; /* Same size for both logos */
    height: 110px;
    -webkit-transition: opacity 4s ease, -webkit-transform 4s ease;
    transition: opacity 4s ease, -webkit-transform 4s ease;
    -o-transition: transform 4s ease, opacity 4s ease;
    transition: transform 4s ease, opacity 4s ease;
    transition: transform 4s ease, opacity 4s ease, -webkit-transform 4s ease;
   }
  
  .logo1 {
    opacity: 1;
    left:50%;
  }
  
  .logo2 {
    opacity: 0;
    left:50%;
  }
   
  .animate-logos {
    -webkit-transform: translate(-33%, -50%) translateX(62px);
        -ms-transform: translate(-33%, -50%) translateX(62px);
            transform: translate(-33%, -50%) translateX(62px);;
  }
  
   .logo1.animate-logos {
    opacity: 0; 
  }
  
  .logo2.animate-logos {
    opacity: 1;
  }
   
  .logo-container.animate-logo-container {
    width: 200px; /* Shrink logo-container to a smaller width */
  }
  
   .nav-menu {
    width: 0;
    opacity: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack:center;
        -ms-flex-pack: center;
            justify-content: center;
    padding-right:1rem;
    overflow: hidden;
    -webkit-transition: width 2s ease, opacity 1s ease 0.5s;
    -o-transition: width 2s ease, opacity 1s ease 0.5s;
    transition: width 2s ease, opacity 1s ease 0.5s;
  display: flex;
  gap: 1rem;    
  }
   
   .nav-links {
    list-style: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: calc(var(--rootRef) * 1);
   }
   
   .nav-links li {
    color: rgb(11, 53, 88);
    font-weight: 500;
    cursor: pointer;
   }
   
   .dropdown {
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    z-index: 1001;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    height: 100%;
    border-radius: 8px;
    padding: 6px 0px;
   }
   
   .animate-logo1 {
            transform: translateX(-100%);
    opacity: 0;
   }
   
   .animate-logo2 {
    opacity: 1;
   }
   
   .nav-menu.animate-nav-menu {
    width:100%;
    opacity: 1;
    transform: translateX(-72.25px);
   }
   
   .dropdown select {
    padding: calc(var(--rootRef) * 0.25);
    font-size: calc(var(--rootRef) * 0.7);
    border-radius: calc(var(--rootRef) * 0.25);
    border: none;
   }
   
   .main-content {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 0.5rem 0.5rem 0.5rem 115px;
    margin: 0;
    width:100%;
    height: auto;
   }
   
   .content {
    width:40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
   }
   
   .content>p {
    margin: 0.1rem 0 0.25rem 0;
    font-size: clamp(0.36rem, 4vw, 1.5rem);     
    color: #6B7280;
   }
   
   .content-section {
       display: flex;
       flex-direction: column;
       width: 100%;
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    
    /* Show the 'active' content-section */
    .content-section.active {
      display: block;
      opacity: 1;
    }
   
   .content-section img {
       width: 150px;
       height:auto;
   }
   
   .latestInfo {
    display: flex;
    flex-direction: column;
   }
   
   h1 {
    font-size: clamp(0.75rem, 4vw, 5rem);
    color: rgb(11, 53, 88);
    line-height: 1;
    font-weight: 700;
    padding-bottom: 1em;
    margin:0;   
   }
   
   
   @media (max-width: 600px) {
    h1 {
    font-size: clamp(0.25rem, 2vw, 0.75rem);
    }
    .content>p {
    font-size: clamp(0.175rem, 1.25vw, 0.5rem);  
    }
   }
   
   .bottomLineUp {
    display: flex;
            flex-direction: column;
    background: linear-gradient(135deg, #FFF, #AFC6C6);
    font-family: monospace;
    width:100%;
   }
   
   .image-content {
    position: relative;
    margin-left:6rem;
    width:50%;
    height: 100%;
    text-align: center;
   }
   
   .image-title {
    font-size: 1.75rem;
    text-align: center;
    color: rgb(11, 53, 88);
    font-weight: 600;
   }

   
   
   @media (max-width: 30rem) {
    .navbar {
    flex-direction: column;
    padding: calc(var(--rootRef) * 0.5) calc(var(--rootRef) * 1.5);
    }
  
    .nav-links {
      list-style: none;
      display: flex;
      gap: calc(var(--rootRef) * 0.5); 
    }
    .main-content {
    flex-direction: column;
    padding: 1rem 2.5rem;
    }
    .content {
    max-width: 100%;
    }
   }
   
   .rotation-area {
      position: relative;
      width: 100%;   /* ensures it scales inside the .card */
      height: 100%;
      overflow: hidden;            
   }
   
    .rotating-div {
      position: absolute;
      top: 50%;
      left: 50%;
      transform-origin: center;
      transform: translate(-50%, -50%);        
      width: 150px;
      height: 80px;
      margin: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      transition: opacity 0.3s ease;
   }
   
    .rotating-div .info {
    display: none;
    width: 250px;
    height: 80px;
    color: rgb(11, 53, 88);
    position: absolute;
    top: 50%;
    left: 50%;
            transform: translate(-50%, -50%);
    white-space: nowrap;
    background-color: rgb(248, 249,251);
    padding: 5px;
    border-radius: 5px;
    z-index: 2;
    }
   
    .rotating-div:hover .info {
    display: block;
    z-index: 50;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 1rem;
    background-color: white;
    height: auto;
    }
      
      .info a {
        width: 100%;
        display: flex;
        text-wrap: wrap;
        text-align: initial;
        text-decoration: none; 
      }
      
      .info a p {
        width: 100%;
        margin: 0; 
        font-size:12px;
      }


    .rotating-div:hover svg {
    opacity: 0;
    z-index: 1;
    }
   
    @-webkit-keyframes growEffect {
    from {
    -webkit-transform: translate(-50%, -50%) scale(0);
            transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    }
    to {
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    }
    }
   
    @keyframes growEffect {
    from {
    -webkit-transform: translate(-50%, -50%) scale(0);
            transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    }
    to {
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    }
    }
   
     .orbit {
      position: absolute;
      top: 50%; 
      left: 50%;
      width: 90%;
      height: 90%;
      transform: translate(-50%, -50%);
    }  
   
    .center-dot {
            animation: growEffect 4s ease-out forwards;
    width: 8rem;
    height: 3.3792rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    overflow: hidden;
    background-image: url('myRelay.svg');
    background-size: cover;
    background-position: center;
    background-color: white;
    -webkit-box-reflect: below 0px linear-gradient(transparent, rgba(0, 0, 0, 0.2));
    }
   
    @media (max-width: 768px) {
    .content {
            flex-direction: column;
    overflow-y: auto;
    }
   
    .rotation-area {
            flex: none;
    width: 100%;
    max-height: none;
    }
   
    .orbit {
    width: 300px;
    height: 300px;
    }
    }
   
   
   
    .axis circle {fill: none;stroke: #777;stroke-dasharray: 1,4;}
    .axis :last-of-type circle {stroke: #333;stroke-dasharray: none;}
    .axis path,.axis line {fill: none;stroke: black;shape-rendering: crispEdges;}
    .axis text {font-family: sans-serif;font-size: 0.1rem;stroke: #777;}
    .x.axis line {stroke: SteelBlue;}
    .x.axis .minor {stroke-opacity: .5;}
    .x.axis path {fill: none;stroke: SteelBlue;}
    .y.axis line, .y.axis path {fill: none;stroke: SteelBlue;}
   
    #line_projection {fill: none;stroke: rgba(255,255,225,0);stroke-width: 0.5em;}
    #line_projection.intersects{fill: white;stroke: green;}
    .frame {fill: none;stroke: #000;}
    .segment {stroke: #000;stroke-width: 1.5px;}
    label {text-anchor: middle;fill: none;stroke: black; }
   
    .circle {fill: none;stroke: rgba(255,255,225,0);stroke-width: 2px;}
    circle.vectora {fill: rgba(255, 255, 255, 0.1);stroke: #000;stroke-width: 0.2px;}circle.vectorb {fill: rgba(255, 255, 255, 0.1);stroke: #000;stroke-width: 0.2px;}circle.vectorc {fill: rgba(255, 255, 255, 0.1);stroke: #000;stroke-width: 0.2px;}
  
    text.intersects {fill: white;stroke: black;}
    text.texta,text.textai {fill : #DC143C;font-size: 0.1rem; font-weight: bold; }
    #va_before,#ampva,#angva,#equala {fill : #DC143C;color: #DC143C;font-size: 0.1rem; font-weight: 900; }
    #vb_before,#ampvb,#angvb,#equalb {fill : gold; color: gold;font-size: 0.1rem; font-weight: 900; }
    #vc_before,#ampvc,#angvc,#equalc {fill : blue; color: blue;font-size: 0.1rem; font-weight: 900; }
    #v0_before,#ampv0,#angv0,#equal0 {fill : darkgrey; color: darkgrey;font-size: 0.1rem; font-weight: 900; }
    #v1_before,#ampv1,#ang1,#equal1 {fill : limegreen; color: limegreen;font-size: 0.1rem; font-weight: 900; }
    #v2_before,#ampv2,#angv2,#equal2 {fill : magenta; color: magenta;font-size: 0.1rem; font-weight: 900; }
    text.textadash { fill : #DC143C;font-weight: bold;font-size: 0.1rem; font-weight: bold; }
    text.textadashangle { fill : #DC143C; font-weight: bold; font-size: 0.1rem; font-weight: bold; }
    text.text0butt { fill: darkgrey;font-weight: bold; font-size: 0.1rem; font-weight: bold;}
    text.text0buttangle { fill: darkgrey; font-weight: bold; font-size: 0.1rem; font-weight: bold;}
    text.textb,text.textbi { fill : gold ; font-size: 0.1rem; font-weight: bold;}
    text.textbdash { fill : gold ;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.textbdashangle {fill : gold; font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.text1butt { fill: limegreen;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.text1buttangle {fill: limegreen;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.textc,text.textci {fill : blue;font-size: 0.1rem;font-weight: bold;}
    text.textcdash {fill : blue;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.textcdashangle {fill : blue;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.text2butt {fill: magenta;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
    text.text2buttangle {fill: magenta;font-weight: bold;font-size: 0.1rem;font-weight: bold;}
   
    polyline {stroke-width: 5px;}
    polyline.vectora,polyline.vectorai {stroke: #DC143C; stroke-width: 3.5px;stroke-linecap: round;}
    polyline.vectorb,polyline.vectorbi {stroke: gold;stroke-width: 3.5px;stroke-linecap: round;}
    polyline.vectorc,polyline.vectorci {stroke: blue;stroke-width: 3.5px;stroke-linecap: round;} 	
   
    polyline.vector2 {stroke: magenta;stroke-width: 4px;stroke-dasharray: 3;}polyline.vector2bis {stroke: magenta;stroke-width: 4px;stroke-dasharray: 3;}	
    polyline.vector1 {stroke: limegreen;stroke-width: 4px;stroke-dasharray: 3;}	polyline.vector1bis {stroke: limegreen;stroke-width: 4px;stroke-dasharray: 3}
    polyline.vector0 {stroke: darkgrey;stroke-width: 4px;stroke-dasharray: 3;} polyline.vector0bis {stroke: darkgrey;stroke-width: 4px;stroke-dasharray: 3;}
   
    polyline.vectorar,polyline.vectoral,polyline.vectoralr {stroke: #DC143C;stroke-width: 3.5px;stroke-linecap: round;}
    polyline.vectorbr,polyline.vectorbl,polyline.vectorblr {stroke: gold;stroke-width: 3.5px;stroke-linecap: round;}
    polyline.vectorcr,polyline.vectorcl,polyline.vectorclr {stroke: blue;stroke-width: 3.5px;stroke-linecap: round;}
    polyline.xabciss,polyline.yordinate,polyline.xabcissr,polyline.yordinater,polyline.xabcissl,polyline.yordinatel,polyline.xabcisslr,polyline.yordinatelr {stroke: black;stroke-width: 0.3px;stroke-opacity: .5;stroke-linecap: round;} 	
   
    #mark2,#mark2_aux {fill: magenta;} #mark2bis {fill: magenta;} #mark1,#mark1_aux {fill: limegreen;} #mark1bis {fill: limegreen;} #mark0,#mark0_aux {fill: darkgrey;} #mark0bis {fill: darkgrey;}
    marker {fill: black;}
    #marka,#markar,#markal,#markalr,#marka_aux {fill: #DC143C;} #markb,#markbr,#markbl,#markblr,#markb_aux {fill: gold;} #markc,#markcr,#markcl,#markclr,#markc_aux {fill: blue;}
    #markR {stroke: red;} #markY {stroke: gold;} #markB {stroke: blue;}
    #markPol {stroke: SteelBlue; stroke-width: 2px;}
    #markblk {fill: rgba(0,0,0,0);} 	
   
    #second_slide{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin-left: 0px;
    }
   
    .trig .axis {stroke: #999;}
    .trig circle {stroke: #4682B4;stroke-width: 2px;fill: none;}
    .trig line {stroke-width: 2px;fill: none;stroke: #999;}
    .trig rect {stroke-width: 2px;}
    .trig text {fill: SteelBlue;color: SteelBlue;font-family: sans-serif;font-size: 0.1rem;vertical-align: middle;}
   
    .red,.redI {stroke: red;stroke-width: 2px;fill: rgba(0,0,0,0); font-weight: normal;font-size: 0.1rem;font-family: arial;}
    .yellow,.yellowI {stroke: yellow;stroke-width: 2px;fill: rgba(0,0,0,0); font-weight: normal;font-size: 0.1rem;font-family: arial;}
    .blue,.blueI {stroke: blue;stroke-width: 2px;fill: rgba(0,0,0,0); font-weight: normal;font-size: 0.1rem;font-family: arial;}
    .steelVab,.steelVbc,.steelVca {stroke: SteelBlue;fill: SteelBlue;stroke-width: 2px;}
    .arcRY,.arcYB,.arcBR {stroke: SteelBlue;fill: none;stroke-width: 2px;}
    .dotted {stroke: #4682B4;stroke-width: 0.1px;stroke-dasharray: 3;}

   
    button {
    position: relative;
    background: black;
    outline: none;
    border: solid 1px #322c2d;
    border-radius: 0.25em;
    font-size: 1rem;
    color: white;
    font-family: "Monorama";
    padding: 0.25em 0.75em;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    }

    button:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 0%;
        height: 100%;
        background: #322c2d;
        z-index: -1;
        transition: all 0.3s ease;
    }    
   
    .icon {
    color: #7a8a90;
    transition: all .3s;
    }
   
  .container {
  flex: auto;
  display: flex;
  width: 100%;
  flex-direction: column;
  background-color: #f0f0f0;
  }
  
  .header {
    display: flex;
    background-color: #f0f0f0; /* Example background color for the header */
    padding-bottom:1em;
  }
  
  .header-label {
    display: flex;
    padding: 5px 10px 0px 10px;
    text-align: center;
  }
  
    
  .main {
    display: flex;
    width:100%;
    flex-direction: row;
  }
  
  .left-column, .right-column {
    display: flex;
  }
  
  .left-column {
    width: 96px; /* Matches the width of the image */
  }  
  
  .footer {
    display: table-row;
    background-color: #f0f0f0; /* Example background color for the footer */
  }


  .social-media {
      display: flex;
      padding: 5px 10px 0 10px;
      justify-content: space-evenly;
  }
  
  .social-media a {
    color: rgb(11, 53, 88);
    font-size: 1rem;
    transition: color 0.3s ease;
  }
  
  .social-media a:hover {
    color: #006BFF;
  }
  
  .footer-text {
    display: inline-block;
    padding: 0 0.5em 0 0.5em;
    margin-top: 0.1em;
    color: #6B7280;
    font-size: 0.9rem;
    text-align: center;
  }
  
/* This ensures the deck container is big enough
   for the absolutely positioned .cards */
#deck {
  position: relative;
  width: 550px; /* same as .card width */
  height: 550px;
  margin: 0 6rem; /* center if you want */
  overflow: hidden; /* or auto, if you want scroll for outgoing cards */
}


.card {
    position: absolute;
    top: 0.625em;
    left: 1.25rem;
    width: 400px; 
    height: 400px;
    display:flex;
    flex-direction:column;
    align-items:center;
    backface-visibility: hidden;
    background-color: #fff;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 0.2rem;
    padding-top: 0.2rem;
    overflow: hidden; 
}

.card img { 
    height: auto;
    object-fit: cover;
    /* so images don’t exceed the card container */
    max-height: 100%;
}

.card p {
    margin: 0.5rem 0 0.25rem 0;
}

#deck > .card:first-child {
  box-shadow: rgba(0, 0, 0, 0.3) 10px 10px 15px;
}
