/* tehocraft.css */
body{
    background-image: url('/images/tehocraft/TC_bg.webp');
}
.tehocraft-hero {
    background: url('/images/tehocraft-hero.png') no-repeat center center;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Improving text visibility */
    background-size: cover;
    position: relative;
    color: #fff;
    background-attachment: fixed;
}
.tehocraft-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* Dark overlay for text contrast */
    z-index: 1;
}
.tehocraft-hero h1,
.tehocraft-hero p,
.tehocraft-hero a.btn {
    position: relative;
    z-index: 2;
}
.tehocraft-hero h1 {
    font-size: 4rem; /* Even larger font size for the headline */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Ensuring text is readable */
}

.tehocraft-hero p {
    font-size: 1.75rem; /* Larger text for introduction */
    margin-top: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Shadow text for all sections to ensure readability */
.shadow-text {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Stronger shadow for better contrast */
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for better readability */
    padding: 1rem;
    border-radius: 10px;
}

.carousel-caption h5, .carousel-caption p {
    color: #ffffff; /* Ensuring white text for readability */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow for depth */
}
.carousel-item img {
    height: 725px;  /* or any other fixed height */
    width: 100%;  /* ensures the image takes full width of the container */
    object-fit: cover;  /* maintains aspect ratio and covers the area */
    object-position: center;  /* centers the image within the element's frame */
}

.video-responsive{
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio? */
    height: 0;
    overflow: hidden;
    width: 100%;
}
.video-responsive video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100%;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2; /* on top of video element */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 10rem;
    padding-right: 10rem;
}
/* carousel controls */
.carousel-control-prev, 
.carousel-control-next,
.carousel-indicators {
    z-index: 1051; /* Higher than the video-overlay and toggleCaptions button */
}
#toggleCaptions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1052; /* Ensure it's above carousel content */
}

/* #0dcaf0 */
/* Custom Button Styles for TC page */
.btn-primary {
    background-color: #0dcaf0; 
    border-color: #0caccc; 
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
  
.btn-primary:hover,
.btn-primary:active {
    background-color: #0caccc; 
    border-color: #0a8ea8;
}
  
.btn-primary:focus {
    background-color: #0caccc;
    border-color: #0a8ea8;
    box-shadow: 0 0 0 0.2rem rgba(192, 57, 43, 0.5); /* Red glow for focus outline */
    outline: none; /* Remove default browser outline */
}
  
.btn-primary:active,
.btn-primary.active {
    background-color: #0b6b7e; /* Even darker for active state */
    border-color: #0a8ea8;
}


.game-mode-details {
    position: absolute !important;
    top: 0 !important;
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1)
}
#details-container {
    position: relative;
    width: 100%;
    min-height: 300px;
}

#tehocraft-features {
    background: url('/images/tehocraft/yt-banner.png') no-repeat center center;
    background-size: cover;
    position: relative;
}
#tehocraft-features::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}
#tehocraft-features .container {
    position: relative;
    z-index: 2;
    padding: 8rem 0;
}