/*
 Theme Name: HighendWP Child   
 Theme URI: https://ccchouston.org/HighendWP-child/  
 Description: A child theme for HighendWP.
 Author: Kevin Zhou  
 Author URI: http://ccchouston.org 
 Template: HighendWP
 Version: 1.0.0
 Text Domain: HighendWP-child
*/

/* Add your custom CSS below this line */

/* Custom Sliding Bar Styles */
#my-custom-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    padding: 2px 0; /*10px 0 */
    text-align: center;
    z-index: 100;/*99999;*/
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    box-sizing: border-box;

    /* Initial state for the bar itself to slide down */
    transform: translateY(-100%) !important; /* Start off-screen above */
    transition: transform 0.5s ease-out !important; /* Bar slides down */

    /* Ensure it starts hidden to prevent FOUC */
    display: none; /* Important: Start hidden */
}

/* When .visible class is added, the bar slides into view */
#my-custom-top-bar.visible {
    transform: translateY(0) !important; /* Bar comes into view */
    display: block; /* Ensure it's block-level for the transition to work */
}

/* Remove this if you start with display: none; */
  #my-custom-top-bar.hidden {
    display: none;
}  


#my-custom-top-bar .sliding-bar-content {
    max-width: 100%; /*1200px*/
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    flex-wrap: nowrap;
    overflow: hidden;
    position: relative;
}

#my-custom-top-bar .sliding-bar-content p {
    color: #ffffff;
    margin: 0;
    font-size: 14px; /*16px*/
    line-height: 1.5;
    flex-shrink: 0;
    padding-right: 30px;
    white-space: nowrap;
}

.scrolling-text-container {
    display: flex;
    white-space: nowrap;
    flex-grow: 1;
    animation: scrollLeft 20s linear infinite;
    animation-delay: 1s;
    will-change: transform;
}

.scrolling-text-container:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

#my-custom-top-bar strong {
    font-weight: bold;
}

#my-custom-top-bar .sliding-bar-link {
    color: yellow; /*#9c0007;*/
    text-decoration: underline;
    font-weight: bold;
    margin-left: 10px; /* Space from previous text */
    margin-right: 30px; /* Space from next text */
    white-space: nowrap; /* Prevent "Register!" from breaking */
}

#my-custom-top-bar .sliding-bar-link:hover {
    color: #f0f0f0;
}



#close-sliding-bar {
    background: none;
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    line-height: 1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

#close-sliding-bar:hover {
    background-color: rgba(255,255,255,0.2);
}

/*
body:not(.main-navigation-container) #hb-wrap {
    margin-top: 50px !important;
}
*/


@media (max-width: 768px) {
    #my-custom-top-bar .sliding-bar-content {
        flex-direction: column;
        padding: 5px 20px;
    }
    #my-custom-top-bar .sliding-bar-content p {
        padding-right: 0;
        margin-bottom: 5px;
    }
    #close-sliding-bar {
        margin-left: 0;
    }
   /*
    body:not(.admin-bar) #hb-wrap {
        margin-top: 70px !important;
    }
    */
}


/************************copied from highend additional CSS ********/

/* for table */
@media screen and (min-width: 961px) {
tr:nth-child(even) {background-color: white;}
tr:hover  {background-color: #9DB2BF;}
th {
    background-color: #9DB2BF;
    color: white;
}
}

/*for responsive table */
@media screen and (max-width: 961px) {
    table {width:100%;} 
    thead {display: none;}
    tr:nth-of-type(2n) {background-color: inherit;}
    tr td:first-child {background: #9DB2BF; font-size:80%;}
    tbody td {display: block;  text-align:center;}
    tbody td:before {
        content: attr(data-th);
        display: block;
        text-align:center;
    }
}

/*change padding*/
div.su-spoiler-content{
padding: 35px;
}

/* Define the CSS styles for the label box */

.label-box { 
     background-color: #6b58cd; 
     color: white;  
     padding: 30px; 
	  font-size: 25px; 
    text-align: center; 
} 

/* Define the CSS styles for the 45thbutton box */
.button45thA { 
  background-color: #9c0007;   
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
	border-radius: 8px;
} 
.button45thA {
  transition-duration: 0.4s;
}

.button45thA:hover {
  background-color: #04AA6D; /* Green */
  color: white;
}

/*AHT css */
.AHTdiv{
background-color: white; 
padding: 0px 15px 0px 15px;
}

.AHTtitle{
text-align: left;
font-family: 'Roboto' Black monospace; 
font-size: 2.5em;
line-height: 1em;
}

.AHTtime{
text-align: right;
font-family: 'Roboto' Black monospace; 
font-size: 2.0em; 
line-height: 1em;
}


/*for responsive Logo position */
@media screen and (max-width: 961px) {
   
	.AHTLogoPosition{
	   display: block;
     margin-left: auto;
     margin-right: auto;
		width:40%;
	  height:40%;
  }
	
	.AHTtitle{ 
font-size: 1.8em; 
}
	.AHTtime{ 
		text-align: left;
font-size: 1.8em;  
}
}
 
@media screen and (min-width: 961px) {
.AHTLogoPosition{
	  display: block;
     padding-left:15px;
	  width:22%;
	  height:22%;
  }
	 
}
 

/*for responsive LBY title */
@media screen and (min-width: 961px) {
   
	.LNYtitle{
		text-align: center;
		padding-left: 40px; 
		font: 38px Arial, Helvetica, sans-serif;
		color:#ab000c; 
		font-weight:bold;
  }
}
@media screen and (max-width: 961px) {
   .LNYtitle{
		text-align: center;
		padding-left: 20px; 
		font: 24px Arial, Helvetica, sans-serif;
		color:#ab000c; 
		font-weight:bold;
  }
}
/* for LNY video */

/*for responsive LBY title */
@media screen and (min-width: 961px) {
    #page-10612 video{
		 width:550px;
	}
}
@media screen and (max-width: 961px) {
   #page-10612 video{
		 width:350px;
	}   
}

























