@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background: #0A3456;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

header {
    text-align: center;
    padding: 4rem 1.5rem 0 1.5rem;
    /* background: lightblue; 
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;*/
    /*background: url('images/header-background.jpg') no-repeat center center;
    background-size: cover;  Ensures the image covers the entire header */
}

/* footer {

} */

.outer-wrapper {
    max-width: 1200px;
    margin: 1rem auto 0 auto;
    /* background-image: url(images/background.gif);
    background-size: 100%;
    background-repeat: no-repeat; */
}

.inner-wrapper {
    max-width: 1200px;
    margin: 1rem auto 0 auto;
}

main {
    margin: 1.5rem;
}

.menu-blue-line {
    width: 100%;
    display: block;
    border-bottom: 2px solid #48c0f0;
    margin-bottom: 3rem;
}

h2 {
    margin: 3rem 0 1rem 0;
}

p {
    line-height: 1.4rem;
}

a {
    color: #48c0f0;
}

#menuButton {
    display: block;
    cursor: pointer;
    width: 100%; 
    background: #03203d; 
    display: block; 
    padding: 1rem 0; 
    color: #fff; 
    text-align: center; 
    font-weight: 700; 
    font-size: 1rem; 
    margin: 0 0 0 0; 
    border-top: 2px solid #48c0f0;
}

#toggleMenu {
    width: 100%; 
    background: #03203d; 
    padding: 1.5rem 0; 
    color: #fff; 
    text-align: left; 
    font-weight: 700; 
    font-size: 0.8rem; 
    margin: 0;
}

#toggleMenu a {
    display: block;
    margin: 0;
    padding: 0;
}

#toggleMenu a img {
    height: 10px;
}

.toggleMenuContainer {
    position: relative;
    margin: 0 auto;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.bold {
    font-weight: 600;
}

.light {
    font-weight: 300;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem;
    /* background: #eee; */
}

.grid-item-1 {
    grid-column: span 1;
    text-align: left;
}

.grid-item-2 {
    grid-column: span 2;
    text-align: left;
}

.grid-item-3 {
    grid-column: span 3;
    text-align: left;
}

.grid-item-4 {
    grid-column: span 4;
    text-align: left;
}

.grid-item-5 {
    grid-column: span 5;
    text-align: left;
}

.grid-item-6 {
    grid-column: span 6;
    text-align: left;
}

.grid-item-padding {
    padding-bottom: 0;
}

.grid-container-with-adds-top {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
    row-gap: 0;
    padding: 1rem 1rem 0 1rem;
    background: #eee;
}

.grid-container-with-adds-middle {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
    row-gap: 0;
    padding: 0 1rem 0 1rem;
    background: #eee;
}

.grid-container-with-adds-bottom {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: 1rem;
    row-gap: 0;
    padding: 0 1rem 1rem 1rem;
    background: #eee;
}


.featured {
    background: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Right and bottom shadow */
    padding: 2rem;
    margin: 3rem 0;
}

.featured h2, .featured h3 {
    color: #000;
    margin-top: 0;
}

.featured p {
    color: #000;
}

.featured li {
    color: #000;
}

.unable {
    background: #000;
    color: #fff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2); /* Right and bottom shadow */
    padding: 2rem;
    margin: 0 0 1rem 0;
}

.unable h2 {
    color: #fff;
    margin-top: 0;
}

.unable p {
    color: #fff;
}

.rya-logo {
    width: 200px;
    margin: 0 0 1rem 0;
}

/* New */

.grid-container-full {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem;
    /* background: #eee; */
}

.grid-container-full-top {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem 1rem 0 1rem;
    /* background: #eee; */
}

.grid-container-full-middle {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem 1rem 0 1rem;
    /* background: #eee; */
}

.grid-container-full-bottom {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem;
    /* background: #eee; */
}

.grid-item-full-1 {
    grid-column: span 1;
    text-align: center;
}

.grid-item-full-2 {
    grid-column: span 2;
    text-align: left;
}

.grid-item-full-3 {
    grid-column: span 3;
    text-align: left;
}

.grid-item-full-4 {
    grid-column: span 4;
    text-align: left;
}

.grid-item-full-5 {
    grid-column: span 5;
    text-align: left;
}

.grid-item-full-6 {
    grid-column: span 6;
    text-align: left;
}

.olympic-mobile img {
    height: 13px;
}

.column-labels {
    background: #0276b5;
    color: #fff;
}

.flag {
    margin-right: 12px;
}

.medal {
    height: 36px;
}

.white {
    color:#fff;
}


.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.flex-item {
  flex: 1 1 45%;
  min-width: 250px;
  /* padding: 1rem; */
}

.responsive-image {
    width: 100%;
}

figure {
    margin: 0;
    padding: 1.2rem 1rem 0 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #333;
    padding: 0.5rem 0 0 0;
}

/* .rya-logo {
  filter: brightness(0) invert(1);
} */


.hidden {
    display: none;
}

footer {
    padding: 0 2.5rem;
}

#backToTop {
  font-family: 'Poppins';
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: auto;
  height: auto;
  /*border-radius: 50%;*/
  border: none;
  background-color: #48c0f0;
  color: #000;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #48c0f0;
  transform: translateY(-4px);
}

#backToTop:focus {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

.grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem;
}

/* Example styling only */
.grid-item-featured {
  padding: 0;
  text-align: center;
}


.media {
  display: flex;
  align-items: center;
  gap: 14px; /* space between image and text */
}

.media-image {
  width: 60px;
  height: 45px;
  object-fit: cover; /* ensures image stays cropped nicely */
  flex-shrink: 0;    /* prevents image from shrinking */
}

.media-text {
  margin: 0;
  flex: 1;           /* takes remaining space */
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: left;
}






/* ------------------------------------------------------------------------------------------------------------ */


/* Page-level container */
.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* mobile gutter */
  height: auto;
}

/* Carousel wrapper */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Scroll container */
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 2.5rem;  /*space for arrows */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel {
  scrollbar-width: none;
}

/* Fixed-width cards */
.card {
  flex: 0 0 260px;
  height: auto;
  border-radius: 0;
  padding: 1rem; 
  scroll-snap-align: start;
  text-align: center;
  background: #0A3456;
}

/* .card a img {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
} */

/* Permanent arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #48c0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow.left {
  left: 0;
}

.arrow.right {
  right: 0;
}

.pic {
    display:block;
    width:120px;
    height:90px;
    margin: 0 auto 0.75rem;
    padding:0;
    
}

/* Optional: reduce arrow prominence on touch devices */
@media (hover: none) {
  .arrow, .olympic-arrow {
    opacity: 1;
  }
}



/* ------------------------------------------------------------------------------------------------------------ */





/* ------------------------------------------------------------------------------------------------------------ */

/* Page-level container */
.olympic-carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem; /* mobile gutter */
  height: auto;
}

/* Carousel wrapper */
.olympic-carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Fixed-width cards */
.olympic-card {
  flex: 0 0 260px;
  height: auto;
  border-radius: 0;
  padding: 0.5rem 1rem 0.5rem 1rem;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  background: #0A3456;
}

/* Permanent arrows */
.olympic-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #48c0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.olympic-arrow.left {
  left: 0;
}

.olympic-arrow.right {
  right: 0;
}






/* ------------------------------------------------------------------------------------------------------------ */





@media screen and (max-width: 767px) {

    body {
        font-size: 0.8rem;
    }

    header {
    padding: 2rem 1.5rem 0 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    p {
        line-height: 1.3rem;
    }

    .toggleMenuContainer {
        margin: 0 auto;
        padding: 0 1.5rem;
        display: block;
        text-align: left;
        width: auto;
    }

    .toggleMenuContainer .carousel-container {
        padding:0;
    }

    main {
        margin: 0;
    }

    .menu-blue-line {
    margin-bottom: 1.5rem;
    }

    .bold {
        font-size: 0.8rem;
    }

    .big {
        font-size: 1.6rem
    }
    
    .three-digits {
        width: 30px;
    }

    .grid-container {
        row-gap: 0.25rem;
    }

    .grid-container-full {
        gap: 0;
        row-gap: 0.25rem;
    }

    .grid-item-2 {
        grid-column: 11 / span 2;
        text-align: center;
    }

    .grid-item-2-rowspan {
        grid-column: 11 / span 2;
        text-align: left;
        grid-row: 1 / span 2;
    }

    .grid-item-4 {
        grid-column: 2 / span 9;
        text-align: left;
    }

    .grid-item-5 {
        grid-column: 2 / span 9;
        text-align: left;
    } 

    .grid-item-padding {
        padding-bottom: 0.25rem;
    }

    .column-labels {
        display: none;
    }


    .grid-container-full-top {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
        padding: 1rem 1rem 0 1rem;
        /* background: #eee; */
    }

    .grid-container-full-middle {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
        padding: 0.25rem 1rem;
        /* background: #eee; */
    }

    .grid-container-full-bottom {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 0;
        padding: 0 1rem 1rem 1rem;
        /* background: #eee; */
    }

    .grid-item-full-4 {
        grid-column: span 11;
        text-align: left;
        padding-bottom: 0.5rem;
    }

    .olympic-mobile {
        grid-column: 2 / span 5;
        margin-right: 0.5rem;
    }

    .olympic-mobile img {
        height: 10px;
    }

    .class-mobile {
        grid-column: 7 / span 5;
        margin-right: 0.5rem;
    }

    .medal-mobile {
        grid-column: 12 / span 1;
        text-align: center;
    }

    .flag {
        margin-right: 10px;
    }

    .medal {
        height: 26px;
        text-align: center;
    }

    figure {
        margin: 0;
        padding: 0;
    }

    .featured h2 {
        margin: 0 0 0 0;
    }
    
    .image-caption {
        font-size: 0.8rem;
    }
    
    .flex-item {
        flex: 1 1 100%;
    }

    footer {
        padding: 0 1.5rem;
    }

    #backToTop {
        bottom: 1rem;
        right: 1rem;
    }
    
    .grid-featured {
        grid-template-columns: repeat(1, 1fr);
        margin: 1rem 0;
    }

    .card {
        padding: 1.5rem 1rem 0.5rem 1rem;
        background: #0A3456;
        width: 100%;
    }

    .pic {
        width:80px;
        height:60px;
    }

    .carousel-wrapper, .olympic-carousel-wrapper {
        position: relative;
        width: 92%;
        padding-left: 8%;
    }

    .olympic-carousel-container {
        padding: 0;
    }


    /* .arrow {
    opacity: 0.7;
  } */

  /* .carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  

  .pic {
    display:block;
    width:80px;
    height:60px;
    background: red;
    margin: 0 auto 0.75rem;
    padding:0;
    
} */


}   
