/* ─── Base styles ─── */
body {
  font-family: Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  color: lightblue;
}
a:hover {
  text-decoration: underline;
}

/* ─── Login overlay text ─── */
.login-text {
			position: absolute;
			bottom: 0; /* Adjust as needed to position at the bottom of the logo */
			left: 25%; /* Center horizontally */
					font-family: 'Helvetica', sans-serif; /* Specify Helvetica */
			font-size: 1.3em; /* Adjust as needed */
			color: black; /* Adjust as needed */
			padding: 0.5em; /* Adjust as needed */
			background: Transparent; /* Optional: adds a semi-transparent background */
		}
		
.header-logo {
  position: relative;  /* doesn’t move anything by itself */
}
.header-logo .login-text {
  position: absolute;
  bottom: 0;
  left: 55%;
  transform: translateX(-50%);
}



/* ─── Header container ─── */
.header.finisher-header {
  display: flex;
  align-items: center;
  height: auto !important;
  padding: 0.5rem 1rem;
  background-color: #cc5500; /* same orange as index.html */
}

/* ─── Logo sizing ─── */
   .header-logo img {
            height: 15em;
            float: left;
			margin-left: 6%
        }

/* ─── Site title ─── */
 .header-title {
            font-family: 'Helvetica', sans-serif; /* Specify Helvetica */
            font-size: 54px;
            text-align: center;
            color: Black;
            flex-grow: 1;
        }
		  .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
                    padding: 10px;
        }

        .header-logo img {
            height: 15em;
            float: left;
			margin-left: 6%
        }

        .header-title {
            font-family: 'Helvetica', sans-serif; /* Specify Helvetica */
            font-size: 54px;
            text-align: center;
            color: Black;
            flex-grow: 1;
        }


/* ─── Top Navigation ─── */
.top-nav {
  display: flex;
  background-color: #333;
  padding: 10px 0;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 998;
}

.top-nav .nav__item {
  position: relative;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-nav .nav__item:hover {
  background-color: #222;
}

.top-nav .nav__item.active {
  background-color: #cc5500;
}

.top-nav .sub-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #444;
  padding: 8px 12px;
  flex-direction: column;
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
}

.top-nav .nav__item:hover .sub-nav {
  display: flex;
}

.top-nav .sub-nav span {
  padding: 4px 0;
  cursor: pointer;
}

.top-nav .sub-nav span:hover {
  color: #fff;
}
.header.finisher-header {
		 position: relative;       /* ensure it stays in document flow */
		z-index: 1000;   
    width: 100%;
	 padding: 10px;
      /* You can add more styles here if needed */
	}
	
	@media only screen and (max-width: 732px) and (-webkit-min-device-pixel-ratio: 1), only screen and (max-width: 732px) and (-moz-device-pixel-ratio: 1), only screen and (max-width: 732px) and (-o-device-pixel-ratio: 1 / 1), only screen and (max-width: 732px) and (min-resolution: 1dppx)
 {
     .header-title {
        font-size: 18px; /* Smaller font size for mobile */
        text-align: center; /* Ensures the text is centered */
        flex-grow: 1; /* Allows the title to fill the space and center itself */
		 
    }
	  
	.tab-buttons button {
        font-size: 0; /* Hide the text */
        max-width: 100px; /* Adjust based on your layout */
        padding: 5px 5px; /* Adjust padding */
    }
    
    .tab-buttons button::after {
        content: attr(data-mobile-text);
        font-size: 14px; /* Adjust as needed */
        visibility: visible;
        display: block;
    }
	 .navigation-buttons button {
        font-size: 8px; /* Set the regular text font size to 3px */
        color: transparent; /* Make the regular text color transparent */
        padding: 8px 12px; /* Adjust padding as needed */
        position: relative; /* Ensure position for pseudo-element */
        width: auto; /* Let the width adjust to content */
    }
    
    .navigation-buttons button::before {
        content: attr(data-mobile-text); /* Set the content of the pseudo-element to the value of data-mobile-text attribute */
        position: absolute; /* Position pseudo-element absolute within the button */
        top: 50%; /* Position the pseudo-element vertically at the center */
        left: 50%; /* Position the pseudo-element horizontally at the center */
        transform: translate(-50%, -50%); /* Translate the pseudo-element back by half of its own width and height to center it */
        color: white; /* Adjust the color of the mobile text */
        font-size: 14px; /* Adjust font size for mobile text */
		border: none;
    }
    
    .navigation-buttons {
        display: flex;
        justify-content: center;
        gap: 5px; /* Space between buttons */
    }
	.header-logo img {
        width: 40%; /* Adjust logo size on smaller screens */
        height: 40%;
    }
	.header.finisher-header {
	 position: relative;       /* ensure it stays in document flow */
	z-index: 1000;   
    width: 100%;
    height: 100px;
    /* You can add more styles here if needed */
}
	    #nc-lotteries-table, #nc-lotteries-table th, #nc-lotteries-table td {
        font-size: 0.8em; /* Smaller font size */
        padding: 5px; /* Reduced padding */
    }

      /* Optional: Hide less important columns on small screens */
   
    #nc-lotteries-table th:nth-child(3), #nc-lotteries-table td:nth-child(3) {
        display: none;
    }
   

    .header, .footer {
        padding: 5px; /* Reduces padding in header and footer */
		justify-content:center;
		background-color: #cc5500;
    }
	.main-container {
    margin-left: 0 !important;
    padding: 130px 10px 10px !important;
  }
 }
  

    .main-container, .chart-container, .chart .nc-lotteries-section{
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
	 .header-logo {
        margin-left: 3%; /* Adjust as needed for smaller screens */
    }
	
	
	main-container {
    /* adjust this value until your tab-buttons clear the nav bar */
    padding-top: 160px;
  }

@media (max-width: 768px) {
  /* 2. Make the nav flow in the document, not fixed, and drop it below the header */
  .top-nav {
    position: relative !important;   /* override any fixed positioning */
    top: auto !important;            /* reset any top: 0 */
    z-index: 1000;                   /* make sure it sits above content but below header if header is higher */
    margin-top: 1rem;                /* give a little breathing room under header */
    display: flex;
    justify-content: space-around;   /* evenly space the icons */
    background: transparent;         /* or match your header bg, if you want it to look attached */
  }

  /* 3. Hide the text labels and leave only the icons */
  .top-nav .nav__item span {
    display: none !important;
  }

  /* 4. Center the icons within each nav item */
  .top-nav .nav__item {
    padding: 0.5rem;
  }
  .top-nav .nav__item i {
    display: block;
    font-size: 1.5rem; /* bump up icon size if you like */
  }
}

 
