* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Tahoma, "Trebuchet MS", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 12px;
    font-weight: 500;
}

body, html {
    width: 100%;
    overflow-x: hidden;
    background-color: #0c0d14ff;
    color: white;
}

.containBox {
  max-width: 1536px;
  width: 1380px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* just white space at the end for fixed footer */
.whiteSpaceEnd {
    margin-top: 125px;
}

.desktop {
    margin-top: auto;
    /* desktop header starts here */
    div.header {
        width: 100%;
        padding-top: 8px;
        padding-bottom: 8px;
        background-color: #212233ff;
        margin-bottom: 35px;

        ul {
            display: flex;
            justify-content: space-between;
            list-style: none;
            align-items: center;
        }

        ul li a {
            display: flex;
            align-items: center;
        }

        ul li a {
            color: white;
            text-decoration: none;
        }

        ul li a:hover {
            color: #00c635ff;
        }

        ul li a:focus {
            color: #0C0D14;
        }

        ul li img {
            width: 45px;
        }

        ul li span {
            font-size: 58px;
            font-weight: bold;
            margin-left: 10px;
            line-height: 0px;
            letter-spacing: 3px;
        }
    }
    /* desktop header ends here */

    /* desktop index starts here */
    div.box1 {
        background-color: #212233ff;
        width: 100%;
        border-bottom: 3px solid #00c635ff;
        padding: 14px;
        
        h2 {
            font-size: 36px;
            font-weight: bold;
            margin-bottom: 14px;
        }

        img {
            width: 100%;
            margin-bottom: 8px;
        }

        p {
            font-size: 22px;
            line-height: 26px;
        }
    }

    ul.nav {
        background-color: #212233ff;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        padding-top: 8px;
        padding-bottom: 8px;
        margin-bottom: 35px;


        li {
            padding: 10px 10px;
        }
        /* padding: top/bottom left/right */
        a {
            box-sizing: border-box;
            color: white;
            padding: 5px 20px;
            background-color: red;
            font-size: 18px;
            text-decoration: none;
            background-color: #0c0d14ff;
            border-bottom: 3px solid #00c635ff;
        }

        a:hover {
            background-color: #00c635ff;
            border-bottom: 3px solid#0c0d14ff;
        }

        a:focus {
            background-color: #00c635ff;
            border-bottom: 3px solid#0c0d14ff;
        }
    }

    div.box2 {
        background-color: #212233ff;
        width: 100%;
        padding: 14px;
        margin-bottom: 35px;

        h3 {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }   

        i {
            font-size: 22px;
            margin-left: 25px;
            font-style: italic;
            line-height: 32px;
        }

        ul.rules {
            width: 85%;
            margin-left: 18px;
            margin-bottom: 35px;
            list-style-type: none;
        }

        ul.rules span {
            font-size: 22px;
            font-weight: bold;  
        }

        ul.rules li{
            font-size: 22px;
            margin-bottom: 22px;
            position: relative;
            padding-left: 35px; /* Create space for the icon */
        }

        ul.rules li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            /* top:50%; transform: translateY(-50%); Vertically centers the icon */
            width: 25px;  /* Set your desired width */
            height: 25px; /* Set your desired height */
            background-image: url(../imgFNJ/pickleGreenBall.png);
            /* to access images in another folder through css, gotta use this ../ */
            background-size: contain; /* Scales the image inside the dimensions */
            background-repeat: no-repeat;
        }

        

        ul.vids {
            display: flex;
            justify-content: flex-start;
            list-style: none;

        }

        ul.vids li {
            margin-right: 25px;
            cursor: pointer;
        }

        ul.vids li a{
            text-decoration: none;
            color: white;
        }

        ul.vids li a:hover {
            color: #00c635ff;
            text-decoration: underline;
        }

        ul.vids li iframe {
            width: 335px;
            height: 185px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: white;
            border-radius: 7.5px;
        }
    }
    /* desktop index ends here */


    /* desktop court starts here */
    .court {
        div.box1 iframe{
            width: 100%;
            height: 720px;
            margin-bottom: 15px;
        }
    }
    /* desktop court ends here */


    /* desktop gallery starts here */
    div.gallery {
        div.threeBy3Box{
            display: flex;
            justify-content: center;
            flex-wrap: wrap;

            a img{
                width: 335px;
                height: 185px;
                border: 3px solid #0c0d14ff;
                margin: 8px;
            }

            a img:hover {
                border: 3px solid #00c635ff;
            }
        }
    }
    /* desktop gallery ends here */


    /* desktop footer starts here */
    /* Force footer to the bottom on pages with limited content */
    div.footer {
        width: 100%;
        height: 60px;
        position: fixed;
        bottom: 0px;
        background-color: #212233ff;
        /* if u want to use padding while using position absolute, just use border as substitute... */
        div.containBox {
            width: 100%;
            display: flex; 
            position: relative;
            justify-content: center;
            align-items: center;
            border-top: 6px solid #212233ff; 
        }
        
        img {
            width: 35px;
        }

        span {
            font-size: 32px;
            font-weight: bold;
            margin-left: 10px;
            line-height: 0px;;
        }

    }
    /* desktop footer ends here */
}

.mobile {
    display: none;
    margin-top: auto;

    /* mobile header starts here */
    div.header {
        width: 100%;
        padding-top: 8px;
        padding-bottom: 8px;
        background-color: #212233ff;
        margin-bottom: 35px;

        ul {
            display: flex;
            justify-content: space-between;
            list-style: none;
            align-items: center;
        }

        ul li a {
            display: flex;
            align-items: center;
        }

        ul li a {
            color: white;
            text-decoration: none;
        }

        ul li a:hover {
            color: #00c635ff;
        }

        ul li a:focus {
            color: #0C0D14;
        }

        ul li img {
            width: 35px;
        }

        ul li span {
            font-size: 48px;
            font-weight: bold;
            margin-left: 10px;
            line-height: 0px;
            letter-spacing: 3px;
        }
    }
    /* mobile header ends here */


    /* mobile index starts here */
    div.box1 {
        background-color: #212233ff;
        width: 100%;
        border-bottom: 3px solid #00c635ff;
        padding: 14px;
        
        h2 {
            font-size: 32px;
            font-weight: bold;
            margin-bottom: 14px;
        }

        img {
            width: 100%;
            margin-bottom: 8px;
        }
    }

    ul.nav {
        background-color: #212233ff;
        width: 100%;
        display: flex;
        flex-wrap: wrap; 
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        padding-top: 8px;
        padding-bottom: 8px;
        margin-bottom: 35px;


        li {
            padding: 10px 10px;
        }
        /* padding: top/bottom left/right */
        a {
            box-sizing: border-box;
            color: white;
            padding: 5px 20px;
            background-color: red;
            font-size: 18px;
            text-decoration: none;
            background-color: #0c0d14ff;
            border-bottom: 3px solid #00c635ff;
        }

        a:hover {
            background-color: #00c635ff;
            border-bottom: 3px solid#0c0d14ff;
        }

        a:focus {
            background-color: #00c635ff;
            border-bottom: 3px solid#0c0d14ff;
        }
    }

    div.box2 {
        background-color: #212233ff;
        width: 100%;
        border-bottom: 3px solid #00c635ff;
        padding: 14px;
        margin-bottom: 35px;

        h3 {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 15px;
            letter-spacing: 2px;
        }   

        i {
            font-size: 18px;
            font-style: italic;
            line-height: 32px;
        }

        ul.rules {
            width: 85%;
            margin-left: 18px;
            margin-bottom: 35px;
            list-style-type: none;
        }

        ul.rules span {
            font-size: 18px;
            font-weight: bold;  
        }

        ul.rules li{
            font-size: 18px;
            margin-bottom: 22px;
            position: relative;
            padding-left: 35px; /* Create space for the icon */
        }

        ul.rules li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            /* top:50%; transform: translateY(-50%); Vertically centers the icon */
            width: 25px;  /* Set your desired width */
            height: 25px; /* Set your desired height */
            background-image: url(../imgFNJ/pickleGreenBall.png);
            /* to access images in another folder through css, gotta use this ../ */
            background-size: contain; /* Scales the image inside the dimensions */
            background-repeat: no-repeat;
        }

        

        ul.vids {
            display: flex;
            justify-content: flex-start;
            list-style: none;

        }

        ul.vids li {
            margin-right: 25px;
            cursor: pointer;
        }

        ul.vids li a{
            text-decoration: none;
            color: white;
        }

        ul.vids li a:hover {
            color: #00c635ff;
            text-decoration: underline;
        }

        ul.vids li iframe {
            width: 335px;
            height: 185px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: white;
            border-radius: 7.5px;
        }
    }
    /* mobile index ends here */


    /* mobile court starts here */
    .court {
        div.box1 iframe{
            width: 100%;
            height: 420px;
            margin-bottom: 15px;
        }
    }
    /* mobile court ends here */

    /* mobile gallery starts here */
    div.gallery {
        div.threeBy3Box{
            display: flex;
            justify-content: center;
            flex-wrap: wrap;

            a img{
                width: 335px;
                height: 185px;
                border: 3px solid #0c0d14ff;
                margin: 8px;
            }

            a img:hover {
                border: 3px solid #00c635ff;
            }
        }
    }
    /* mobile gallery ends here */


    /* mobile footer starts here */
    /* Force footer to the bottom on pages with limited content */
    div.footer {
        width: 100%;
        height: 50px;
        position: fixed;
        bottom: 0px;
        background-color: #212233ff;
        /* if u want to use padding while using position absolute, just use border as substitute... */
        div.containBox {
            width: 100%;
            display: flex; 
            position: relative;
            justify-content: center;
            align-items: center;
            border-top: 6px solid #212233ff; 
        }
        
        img {
            width: 25px;
        }

        span {
            font-size: 28px;
            font-weight: bold;
            margin-left: 10px;
            line-height: 0px;;
        }

    }
    /* mobile footer ends here */
}


/* 2xl */
@media (max-width: 1536px) {
  .containBox {
    max-width: 1280px;
  }
}

/* xl */
@media (max-width: 1280px) {
  .containBox {
    max-width: 1024px;
  }

    .desktop {
        .court {
            div.box1 iframe{
                width: 100%;
                height: 600px;
                margin-bottom: 15px;
            }
        }
    }
}

/* lg = mobile starts here */
@media (max-width: 1024px) {
    .containBox {
        max-width: 768px;
    }

    .desktop {
            display: none;
    }

    .mobile {
        display: block;
    }
}

/* md */
@media (max-width: 768px) {
  .containBox {
    max-width: 640px;
  }
}

/* sm */
@media (max-width: 640px) {
  .containBox {
    max-width: 475px;
  }

  .mobile {
    margin-top: auto;

    div.box2 {
        margin-top: auto;

        ul.vids{
            flex-direction: column;
        }
    }

    .court {
        div.box1 iframe{
            width: 100%;
            height: 300px;
            margin-bottom: 15px;
        }
    }
  }
}
