* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}


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


@media (max-width: 400px) {
    .parallax{
        height: 110vh;
    }

    #parallax-sun-2 {
        margin-bottom: 30% !important;
    }
}
/* .parallax img{
    width: 100%;
    height: 125vh;
} */


/** Bottom fade in effect. Can change to reflect whatever colour scheme we end up using **/
.parallax::before{
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to top, var(--primary-colour), transparent);
    z-index: 100;
}

.parallax-movement{
    position: absolute;
    width: auto;
    min-width: 1000px;
    /* top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover; */
}

#parallax-background{
    height: 125vh;
    width: 100%;
    object-fit: cover;
    transform: rotate(180deg);
}

#parallax-background-mountain{
    object-fit: cover;
    bottom: 0;

}

#parallax-midground-mountain{
    object-fit: cover;
    bottom: 0;

}

#parallax-foreground-mountain{
    bottom: 0;
    object-fit: cover;

}

#parallax-clouds{
    margin-bottom: max(35%, 400px);
    top: 0;
}

#parallax-clouds-left{
    margin-bottom: max(35%, 400px);
    bottom: 0;
}

#parallax-foreground{
    bottom: 0;
    object-fit: cover;
}

#parallax-foreground{
    bottom: 0;
    object-fit: cover;
    width: 100%;
}

#parallax-sun{
    width: 100%;
    object-fit: cover;
    bottom: 0;
    transform: translate(-20px);
}

#parallax-sun-2 {
    width: 40vh;  
    height: 40vw; 
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
    position: fixed;
    bottom: 0;
    background-image: url("https://static.igem.wiki/teams/5427/parallax/wool5-svg.svg");
    background-attachment: fixed;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    transform: translate(-40px);
    margin-bottom: 10%;
}

#parallax-birds{
    top: 0; 
    object-fit: cover;
}

#parallax-foreground-sheep{
    bottom: 0;
    object-fit: cover;
    width: 100%;
}

#parallax-background-sheep{
    bottom: 0;
    object-fit: cover;
    width: 100%;
}

/* #parallax-foreground{
    z-index: 15;
    height: 145vh;
}

#parallax-object{
    z-index: 5;
}

#parallax-midground{
    z-index: 7;
} */


#parallax-logo{
    width: 40vw;
    min-width: 300px;
    height: auto;
    z-index: 10;
    margin-bottom: 25%;
}

#traditionalheader{
    background: none;
}


#menu-renewool-logo {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#menu-renewool-logo.visible {
    opacity: 1;
}


/* Count Up Animatoion Section */

.count-output{
    margin-left: 5px;
    font-size: 55px;
    font-weight: bold;
    font-family: monospace; /*I added this so the numbers dont jump around*/
}

.home-fact{
    font-size: 26px;
    height: fit-content;
}

.fact-sub{
    font-size: 18px;   
}

.fact-container{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.horizontal-motion-observer {
    transform: translateX(calc(-1 * var(--translate-amount, 10%))); 
    opacity: 0; 
}

.horizontal-motion {
    animation: horizontal-motion var(--animation-duration, 1s) ease forwards;
}

.vertical-motion-observer {
    transform: translateY(var(--translate-amount, 100px));
    opacity: 0; 
}

.vertical-motion {
    animation: vertical-motion var(--animation-duration, 1s) ease forwards;
}
.float{
    animation: floating 4s ease-in-out infinite;
}

.float2 {
    --initial-transform: translateY(0);
    animation: floating2 var(--float-duration, 4s) ease-in-out infinite;
}


@media (max-width: 800px) {
    .float2 {
        animation: none;
        transform: var(--initial-transform);
    }
}


@keyframes horizontal-motion {
    0% {
        transform: translateX(calc(-1 * var(--translate-amount, 10%)));
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}


@keyframes vertical-motion {
    0% {
        transform: translateY(var(--translate-amount, 100px));
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes floating{
    0% { 
        transform: translate(0,  0px); 
    }
    50%  { 
        transform: translate(0, -15px); 
    }
    100%   { 
        transform: translate(0, -0px); 
    } 
}



@keyframes floating2 {
    0% {
        transform: var(--initial-transform) translate(0, 0px);
    }
    50% {
        transform: var(--initial-transform) translate(0, -15px);
    }
    100% {
        transform: var(--initial-transform) translate(0, 0px);
    }
}

#sheepSVG{
    stroke: var(--members-header-colour);
}

#webSVG{
    stroke: var(--members-header-colour);
}

#sheep2SVG{
    stroke: var(--lineSVG-colour);
}


.svg-container{
    display: flex;
    align-items: center;
    justify-content: center;
}


.general-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 10;
}


#wave-graphic{
    width: 200vw;
    /* position: sticky;
    top: 0; */
    /* z-index: 1;
    position: fixed;
    top: 0;
    right: 0; */
}

.homepage-layout{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

article .wrapper {
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right:0; /*gives whitespace to the right*/
    display:flex;
    padding-left:0;
    width: 100%;
    margin: auto;
  }


  .more-header{
    font-size: max(7vw, 50px);
    text-align: center;
    color: var(--members-header-colour);
  }


  .flip-card {
    background-color: transparent;
    width: 300px;
    height: 400px;
    perspective: 1000px;
  }
  
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
  
  .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 4px solid #ffe6a7;
  }
  
  .flip-card-front {
    background-color: #bbb;
    color: black;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .flip-card h1{
    margin: 0;
    background: rgba(0, 0, 0, 0.3);
    color: #fffefd;
    padding: 10px;
    border-radius: 5px;
    width: 70%;
  }

  .flip-card-back h1{
    width: 90%;
    background: rgba(0, 0, 0, 0.5);
  }
  
  .flip-card-back {
    color: #fffefd;
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
  }

  .grid-flip-card{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 120px;
    padding: 20px; 
    width: 80%;
    justify-items: center;
    margin-bottom: 150px;
  }


  .fact-box-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.fact-text{
    color:var(--dark_blue_for_text);
    max-width: 600px;
    text-align: center;
    margin: 0 auto 20px;
}

.fact-box {
    width: 100%;
    max-width: 800px;
    background-color: var(--members-header-colour);
    border-radius: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    transition: transform 0.5s ease-out;
}


.fact-box-alternate {
    border: 3px solid var(--members-header-colour);
    background-color: var(--textbox-colour);
}

  .reveal {
    transform: translateY(100%);
    opacity: 0;
  }

  #global-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 200px;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  #world-map {
    position: absolute;
    width: 90%;
    max-width: 800px;
    opacity: 0.4;
    z-index: -1;
  }

  .content-wrapper{
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    align-items: center; 
    justify-content: center;
  }


  #fact-box{
    background-color: var(--members-header-colour);
    border-radius: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 10px;
    transition: transform 0.5s ease-out;
    max-width: 800px;
  }


  .fact-box-cad {
    background-color: var(--members-header-colour);
    border-radius: 0 40px 40px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 0; 
    left: 0;
    margin-top: clamp(0px, calc(20vw - 10px), 400px);
    transition: top 0.3s ease, margin-top 0.3s ease; 
}

.cad-text{
    font-weight:bold;
    font-size: clamp(14px, 3vw, 26px);
    color:var(--dark_blue_for_text);
    padding: clamp(20px, 3vw, 50px);
}

  
.waste-facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    margin-bottom: 150px;
}



.waste-facts > div {
    flex: 1;
    min-width: 500px;
    padding: 20px;
}

@media (max-width: 768px) {
    .waste-facts {
        flex-direction: column;
    }

    .waste-facts > div {
        margin-left: 0 !important;
        margin-right: 0 !important;
        min-width: 0;
        padding: 15px;
        align-self: center !important;
    }
}

  .fashion-box{
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center; 
  }

  .canada-container{
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 200px;

  }


  #cad-map{
    width: 80%;
    transition: width 0.3s ease;
  }

  @media (max-width: 700px) {
    #cad-map {
        width: 100%;
    }
    }


  /*Tool Tip For Map*/

  .tooltip-row {
    display: flex;
    position: absolute;
    width: 65%;
    justify-content: space-between;
    transform: translateX(-10%);
    margin-top: 40%;
    transition: 0.3s ease;
}

@media (max-width: 700px) {
    .tooltip-row {
        width: 85%;
        margin-top: 50%;
    }
    }

.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-size: 18px;
    width: 100%;
}

.tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--textbox-colour);
    color: #333;
    text-align: center;
    border-radius: 6px;
    padding: 5%;
    width: 40%;
    min-width: 60px;
    opacity: 1;
    visibility: visible;
    transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    border-color: var(--textbox-colour);
    box-shadow: 0 0 0 3px var(--members-header-colour);
}

@media (max-width: 780px) {
    .tooltip {
        border-radius: 10px 10px 0 0;
    }
}

.tooltip img {
    width: 100%;
    border-radius: 5px;
    /* margin-bottom: 5px; */
    opacity: 1;
    transition: opacity 0.3s ease;
}


.tooltip-container:hover img {
    opacity: 1;
}

.tooltip-container:hover .tooltip {
    width: 270px;
    height: auto;
    box-shadow: 0 0 0 5px var(--members-header-colour);
    border-color: var(--textbox-colour);
}

.tooltip-container:hover {
    z-index: 100;
}


.tooltip-container a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.tooltip-arrow {
    position: absolute;
    bottom: -20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--textbox-colour);
}

/* .tooltip-container:hover .tooltip-arrow{
    bottom: -30px; 
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 30px solid var(--members-header-colour);
} */

.province-name {
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--members-header-colour);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    height: 0;
    overflow: hidden;
}

.tooltip-container:hover .province-name {
    opacity: 1;
    visibility: visible;
    height: auto;
    margin-bottom: 5px;
}


#round-home-logo{
    width: 60%;
    opacity: 0.15;
    position: absolute;
    transition: width 0.5s ease;
}

@media (max-width: 900px){
    #round-home-logo{
        width: 100%;
    }
}

#regular-home-logo {
    width: 60%;
    z-index: 10;
    transition: width 0.3s ease;
}

@media (max-width: 900px) {
    #regular-home-logo {
        width: 95%;
    }
}

.team-ex{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 1400px
}

.intro-header {
    color: var(--members-header-colour);
    text-align: center;
    font-weight: bold;
    font-size: clamp(40px, 5vw + 32px, 100px);
    margin: 0;
    margin-bottom: 140px;
    margin-top: 80px;

    padding: 20px 0;
    line-height: 1.2;
    z-index: 10;
}

@media (max-width: 768px) {
    .general-container {
        padding: 10px;
    }
}

.rw-background {
    max-width: 1200px;
    margin: 3% 5%;
    padding: 20px 30px;
    border-radius: 15px;
    background-color: var(--accordion-colour);

    
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 20;
}

.rw-summary {
    font-size: clamp(20px, 2vw, 40px);
    line-height: 1.6;
    color: var(--members-header-colour);
    text-align: center;
    margin: 0; 
}



.graphs-flex-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5%;
    width: 90%;
    margin: 0 auto;
  }
  .graph-container {
    width: 100%;
    max-width: 600px;
    padding: 24px;
    background: linear-gradient(to bottom, #e7c661, #ffe6a7);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin: 0;
    margin-top: 100px;
    transition: all 0.3s ease;
  }
  .graph-wrapper {
    background-color: white;
    padding: 16px;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  .styled-graph {
    width: 100%;
    height: auto;
    border-radius: 4px;
    filter: brightness(1.1);
  }

  .graph-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .graph-container:hover #diagram {
    filter: brightness(1.1) contrast(1.1);
  }

  .graph-caption {
    margin-top: 16px;
    text-align: center;
    color: #033f63;
    font-weight: 600;
    font-size: 18px;
  }
  @media (min-width: 1240px) {
    .graph-container {
      width: calc(50% - 10px);
    }
  }

  .fact-box-silk {
    background-color: var(--members-header-colour);
    border-radius: 40px 0 0 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: absolute;
    top: 20px;
    right: 0;
}


  #logo-reveal-container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  }

  #logo-reveal-container.reveal {
    opacity: 1;
    transform: translateY(0);
  }

  .diagram-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background: linear-gradient(135deg, #e7c661, #ffe6a7);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 11;
  }
  
  .diagram-wrapper {
    background-color: rgb(255, 255, 255);
    padding: 10px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  
  #diagram {
    width: 100%;
    height: auto;
    border-radius: 8px;
    filter: brightness(1.05) contrast(1.05);
    transition: all 0.3s ease;
    background-color: #c4c4c457;
  }
  
  .diagram-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  
  .diagram-container:hover #diagram {
    filter: brightness(1.1) contrast(1.1);
  }
  
  .diagram-caption {
    margin-top: 20px;
    text-align: center;
    color: #033f63;
    font-weight: 600;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.4;
  }
  
  @media (max-width: 768px) {
    .diagram-container {
      width: 95%;
      padding: 20px;
    }
    
    .diagram-wrapper {
      padding: 15px;
    }
    
    .diagram-caption {
      font-size: 16px;
    }
  }

  .learn-more-section {
    text-align: center;
    padding: 50px 20px;
}

.learn-more-title {
    font-size: clamp(25px, 7vw, 70px);
    color: var(--members-header-colour);
    margin-bottom: 50px;
}

.learn-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.learn-more-box {
    background-color: var(--learn-more-boxes);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.learn-more-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.learn-more-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.learn-more-box-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.learn-more-box h3 {
    margin: 0 0 10px;
    color: var(--members-header-colour);
    font-size: 24px;
}

.learn-more-box p {
    margin: 0;
    color: var(--members-header-colour);
    font-size: 16px;
}

@media (max-width: 992px) {
    .learn-more-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .learn-more-grid {
        grid-template-columns: 1fr;
    }
    
    .learn-more-box {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}



/*Classes Nima added while Ian was gone*/

.beginning_text{
    margin-left:12%;
    margin-right:12%;
    text-align:left;
}

.big_text_for_home{
    font-size:55px;
    color:var(--dark_blue_for_text);
}

.normal_text_for_home{
    font-weight:bold;
    font-size: 25px;
    color:var(--dark_blue_for_text);
}


.mountain_faded{
    object-fit:cover;
    margin-top:4vw;
    mask-image: linear-gradient(
        rgb(0, 0, 0, 0)0%,
        rgb(0, 0, 0, 1) 10%,

        rgb(0, 0, 0, 1) 85%,
        rgb(0, 0, 0, 0) 100%,

        transparent);
}



.waste_pile_fade {
            mask-image: linear-gradient(
                to right,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 20%,
                rgba(0, 0, 0, 1) 80%,
                rgba(0, 0, 0, 0) 100%
            ),
            linear-gradient(
                to top,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 20%,
                rgba(0, 0, 0, 1) 80%,
                rgba(0, 0, 0, 0) 100%
            );
            mask-composite: intersect;
            border-radius: 20px;
            max-width: 100%;
            height: auto;
        }

/*Classes Nima added while Ian was gone*/

