body {
    font-family: 'Roboto', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: #242424;
    color:white;
    margin: 0;
    padding: 0;
}

section {
    background: white;
    color: #242424;
    display: flex;
}

section.feature-box-1 div, section.feature-box-2 div{
    background:rgb(216, 231, 130);
    width: 100%;
    margin: 2px;
    text-align: center;
    height: 50px;
    vertical-align: middle;
}

section.feature-box-2 div {
    background:aqua;
}



footer {
    background: #242424;;
    padding: 20px 20px;
    color:grey;
    text-align:center;
    font-size:14px;
}

/* -------------Header----------- */
nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav li {
    display: inline-block;
    margin-right: 20px;
    background:none;
    border-radius: 12px;
    padding: 15px;
    font-size: 25px;
    font-weight: bold;
    width: auto;
    Transition: background-color 0.5s ease;
}


nav li.welcomebanner {
    display: inline-block;
    margin-right: 5px;
    background: none;
    border-radius: 8px;
    padding: 20px 5px 20px 5px;
    font-size: 35px;
    margin-top: -3px;
    font-weight: bold;
     width: auto;
     color:#242424;
}



nav li.logo {
    display: inline-block;
    margin-right: 0px;
    background: none;
    padding: 0px;
     width: auto;
}

header nav li a:hover {
    text-decoration: underline;
}

header {
    background-color: #f3e2c9;
    /* background-image: url("images/CartoonBanner.png"); */
    background-size:100%;
    background-repeat: no-repeat;
    padding: 20px;
    height: 80px;
    transition: 0.5s;
}

header a {
    text-decoration: none;
    color:#242424;
}

header .logo a {
    background-image: url("images/android-chrome-192x192.png");
    background-size: 80px;
    background-repeat: no-repeat;
    display: inline-block;
    position:relative;
    top:-30px;
    height: 80px;
    width: 100px;
    text-indent: -999999px;
    margin-top: 30px;

}
.desktopnav {
    display: flex;
    height: 70px;
}
.mobilenav {
        display: none;
    }  
ul.desktoplist {
    width: 100%;
    display:flex;
    margin-top: 10px;
    justify-content: flex-end;
}

ul.desktoplist li:hover {
  background-color: white;
}

ul.desktoplist li a:hover {
  text-decoration: none;
}

.desktopnav ul {
    text-align: center;
}

ul.moblist {
        text-align: center;
        overflow:clip;
}

   #sidemenu {
            transform: translateX(100%);
            transition: transform 0.5s ease;
            display: none;
            position: fixed;
            height: 100%;
            background: white;
            color: black;
            width: 50%;
            padding: 20px;
                z-index: 20;
        }
        #sidemenubackground {
            display:none;
            background-color:black;
            transition: opacity 0.5s ease;
            opacity: 0.25;
            position: fixed;
            height: 100%;
            background: #000000;
            width: 100%;
            top: 0px;
                }

        .smclosebtn {
            height: 48px;
            transition: opacity .2s;
            width: 48px;
            z-index: 1;
            right: -4px;
            cursor: pointer;
            position: absolute;
            top: 19px;
            text-align: center;
            padding: 10px;
        }

        .smlinkitems {
        margin:25px 0;
        font-size:18px;
        display: flex;
        padding:15px 10px;
        border-radius: 5px;
        transition: background-color 0.5s ease;
        }

        
        .smlinkitems:hover {
        background-color: #e9e9e9;
        }

        .smhr {
            margin-bottom:25px;
            opacity: 0.4;
        }
        .smlink{
            text-decoration: none;
            color:black;
            width: 100%;
        }
        #menuToggleButton {
            align-items: center;
            display: flex;
            width: 100%;
            justify-content: end;
            margin-top: -30px;
            margin-right: 20px;
        }

 section.features {
    background-image: url("/images/CartoonBanner.png");
        background-size:cover;
    background-repeat: no-repeat;
        height: 600px;
 }

@media screen and (min-width:1200px) {
     section.features {
        height: 1000px;
    }  

}


@media screen and (max-width:800px) {
    header {
        height: 80px;
            background-image: none;
    }
   
    section.features {
    background-color: #f3e2c9;
    background-image: url("/images/CartoonBanner.png");
        background-size:cover;
    background-repeat: no-repeat;
    padding: 20px;
    height: 400px;
    transition: 0.5s;
    }
    
    .desktopnav {
        display: none;
    }  
    .mobilenav {
        display: flex;
        flex-direction: column;
    } 

}

@media screen and (max-width:670px) {
  section.features {
    background-size:cover;
  }
  nav li.welcomebanner {
    font-size: 30px;
    margin-top: 0px;
    margin-left: -5px;
}

}

/* -------------Header End----------- */

.features {
    background: #f3e2c9;
    color: #ffffff;
    padding:20px;
    display: flex;
    height:400px;
    
}

.features figure {
 text-align: center;
    width: 400px;
    margin: auto;

}

.features figure img {
    width:300px;
    height: 220px;
    border-radius: 5px;
    box-shadow: grey 0 0 5px;
    border: 1px solid grey;
}

/*carousel  */
.carousel {
  position: relative;
  width: 100%;
  padding: 20px 0;
  overflow: hidden;
    background: #cdcdcd;
}

.carousel-wrapper {
  width: 100%;
  /* overflow: hidden; */
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  padding-bottom: 0px;
  height: 100%;
  width: max-content; /* allow horizontal expansion */
}

.carousel-item {
  flex: 0 0 auto;
  width: 400px;
  height: 450px;
  border-radius: 25px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  color: white;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #161616;
}

/* Elegant hover: subtle scale & shadow */
.carousel-item:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Gradient overlay for depth */
.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5)); */
  z-index: 1;
}

/* Overlay Text */
.carousel-item .overlay-text {
  bottom: 10px;
  left: 20px;
  z-index: 2;
      background-color: rgb(255 255 255 / 50%);
 padding: 35px 20px;
  border-radius: 20px;
  font-size: 30px;
  /* backdrop-filter: blur(1px); */
  transition: opacity 0.3s ease;
  opacity: 1;
  margin: 10px;
  width:100%;
  font-weight: bold;
  color: #242424;
  text-decoration: none;
}

/* Fade in overlay text on hover */
.carousel-item:hover .overlay-text {
  opacity: 1;
}

/* Nav Buttons */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  color: #242424;
    padding: 10px 12px 7px;
  cursor: pointer;
  z-index: 10;
    border-radius: 50%;
    font-weight: bold;
    border:2px solid #242424

}

.nav.left {
  left: 10px;
}

.nav.right {
  right: 10px;
}

a {
  text-decoration: none;
}

/* Responsive Scaling */
@media (max-width: 768px) {
  .carousel-item {
    width: 48vw;
    height: 220px;
  }
  /* Overlay Text */
.carousel-item .overlay-text {
    padding: 25px 15px;
  font-size: 20px;
  margin: 0px;
  width:100%;
  border-radius: 0px;
}
}
/*carousel end */

/* AFL GAMES */
.gamecard {
        display:flex;
        flex-direction: column;
        border:solid 1px grey;
        border-radius: 10px;
        min-width: 160px;
        min-height: 138px;
        background: white;
    }
    .gcHeader {
        width: 100%;
        display:flex;
        justify-content: center;
        font-size: 13px;
        margin-bottom:5px;
    }

    #aflgames {
        flex-wrap: wrap;
        gap:6px;
        background: #f2e2ca;
        padding:10px;
    }

    .teamico img {
        width:25px;
    }

    td.gcTeam, td.gcTotal  {
    font-weight: bold;
    font-size: 17px;
    width: 30px;
    }
    td.gcGoals, td.gcBehinds {
        font-size: 13px;
    }

    td {
    text-align: center;
    }
    .gcWrapper {
        padding: 5px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .gcFooter {
        height: 100%;
        display: flex;
        justify-content: center;
        align-content: flex-end;
        flex-wrap: wrap;
        font-size:14px;
    }

    table.gcTable tbody tr {
        vertical-align: middle;
        height: 40px;

    }

    table.gcTable thead {
        display: none;
    }

    table.gcTable {
        width: 100%;
    }
    td.gcTotal.winner {
        background: #5bce5273;
        border-radius: 5px;
    }
    .greystatus {color:grey}
    .livestatus {color:green;font-weight:bold;}
    .hidestatus {visibility:hidden}

    #aflheadertext {
        width:100%;
        font-size:20px;
        font-weight: bold;
        padding:5px;
    }

#aflcardWrapper {
    display: flex;
    flex-wrap: wrap;
    gap:6px;
}


    @media (max-width: 680px) {
#aflcardWrapper {
    display: flex;
    flex-wrap: wrap;
    gap:6px;
    max-width: 340px;     /* 3 cards x 150px + gaps */
    margin: 0 auto;        /* center the block */
    justify-content: flex-start;
}

#aflheadertext {
        text-align: center;
}

    }


    /* AFL GAMES END */

    /* F1 START */
        .cardList {
    display: flex;
    flex-direction: column;
    padding: 8px;
    flex: 1 1 300px; /* grow, shrink, min-width */
    min-width: 280px;
}


    .raceList {
    display: flex;
    flex-direction: column;
    padding: 8px;
    flex: 1 1 300px; /* grow, shrink, min-width */
    min-width: 280px;
}


.f1Wrapper {
    min-width: 300px;
}

.cardGridWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px
}

#f1cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

#f1stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}


.f1Card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #242424;
    background-color: #fff;
    font-size: 14px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.cardList .f1Card:first-child, .raceList .f1Card:first-child {
     border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.cardList .f1Card:last-child, .raceList .f1Card:last-child  {
     border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-bottom: none;
}

.f1CardPos {
    font-weight: bold;
    width: 25px;
}

.f1CardName {
    flex-grow: 1;
    padding: 0 10px;
}

.f1RaceName {
    flex-grow: 1;
    padding: 0 30px 0 10px;
    width: 100px;
    font-weight: bold;
}

.f1QualDate, .f1RaceDate {
    padding: 5px 10px; 
       text-align: left;
}

.f1QualDate {
    border-bottom:1px solid rgb(189, 189, 189);
}

.f1Card.statustrue {
    text-decoration: line-through;
    background-color: #c5c5c5;
}

.f1CardPoints {
    font-weight: bold;
    text-align: right;
    width: 60px;
    
}

.red_bull, .rb {
    background-color: #24242459;
    color: black;
}

.mclaren {
    background-color: rgba(255, 166, 0, 0.5);
    color: black;
}

.mercedes {
    background-color: #bfc8d283;
    color: black;
}

.ferrari, .haas {
    background-color: #a5181888;
    color: black;
}

.williams {
    background-color: #173ea083;
    color: black;
}

.sauber {
    background-color: #1394247c;
    color: black;
}

.aston_martin {
    background-color: #134e4b79;
    color: black;
}

.alpine {
    background-color: #48d3eb86;
    color: black;
}

/* Existing styles reused */
#f1stats {
    background: #f2e2ca;
    font-size: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top:20px;
}

#f1headertext {
    font-weight: bold;
    font-size: 16px;
    display:flex;
    justify-content: center;
}

.f1Wrapper {
    margin: 10px;
    border-radius: 20px;
    border: 1px solid #242424;
    background-color: white;
}

.cardBlock {
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 680px) {
    .cardBlock {
        flex: 1 1 100%;
    }
    .f1SeasonPanel {
        width: 100%;
    }
}

.f1SeasonPanel {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border: 2px solid #242424;
    border-radius: 12px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    font-family: 'Roboto';
}

.f1SeasonPanel h2 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.f1ProgressMeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.f1ProgressValue {
    font-weight: bold;
    color: #ff3c00;
}

.f1ProgressBarContainer {
    height: 12px;
    background-color: #eee;
    border-radius: 6px;
    overflow: hidden;
}

.f1ProgressBarFill {
    height: 100%;
    background-color: #ff3c00;
    transition: width 0.5s ease;
}

.f1season {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    width: 100%;
}

.rcheader {
        display: flex;
}

.rcfooter {
            width: 300px;
}
/* F1 End */