/* ===== Global Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Roboto, sans-serif;
}

body {
    background: #f5faff;
    color: #1b2a38;
    line-height: 1.6;
}

/* ===== Unified Logo Banner ===== */
/* ===== Logo Video in Banner ===== */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 10px;
    background: linear-gradient(90deg, #1e90ff, #64b5ff);
    color: black;
    text-align: center;
}

.banner video.logo-video {
    height: 60px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
}

.banner img.logo-img {
    height: 60px;
    width: auto;
    border-radius: 6px;
    object-fit: cover;
}

.banner-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-text h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
	color: #034f94
}

.banner-text p {
    margin: 2px 0 0 0;
    opacity: 0.95;
    font-size: 1rem;
}



/* ===== Navigation Bar ===== */
.navbar {
    background: white;
    border-bottom: 3px solid #1e90ff;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 100vh;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e90ff;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #1b2a38;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
}

.nav-links a.active,
.nav-links a:hover {
    background: #1e90ff;
    color: white;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
    display: none;
}



/* ===================================================== */
/* ============= HERO BACKGROUND VIDEO ================= */
/* ===================================================== */

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;              /* Responsive height */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(60%);    /* Darken for readable text */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 80vh;
    margin: 0 auto;
}


/* ===================================================== */
/* ===== Page Layout =================================== */
/* ===================================================== */
.page-container {
    max-width: 80%;
    margin: auto;
    padding: 0 20px;
    justify-content: center; /* Centers horizontally */
}

.page-container p{
    max-width: 100%;
    margin: auto 0;
    padding: 0 20px;
}

/* ===== Headings ===== */
h1, h2, h3 {
    color: #1e90ff;
    margin-top: 50px;
    margin-bottom: 10px;
}


/* ===================================================== */
/* ============= TWO-COLUMN Image + Text =============== */
/* ===================================================== */

.two-column {
    max-width: 100%;
    margin: 40px auto;
    padding: 0 20px;
	
    display: flex;
    gap: 60px;
    margin-top: 40px;
}


.left-rolling-images {
    height: 20vh;
	width: 30vh;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #111;
}

.right-text-section {
    width: 70%;
}


.mySlides {
    /* 1. Ensure the image takes the full dimensions of the container */
    width: 100%;
    height: 100%; 
    
    /* 2. KEY: Controls how the image fits within the fixed dimensions */
    object-fit: contain; 
    
    /* Optional: If you use 'cover', this centers the cropped image */
    object-position: center; 
    
    display: none; 
}


/* ===================================================== */
/* ============= TWO-COLUMN Videos ===================== */
/* ===================================================== */
.video-container, .video-container2, .video-container3 {
    display: flex; 
    justify-content: center;
    width: 100%;
    margin: 50px auto;
}

.synced-video, .synced-video2, .synced-video3{
    width: 50%; /* Side-by-side on large screens */
    height: auto;
    min-width: 30vh; 
    margin: 0 10px; 
    /*border: 3px solid #333;*/
    border: 3px solid #1e90ff;
    cursor: pointer;
}





/*==============================================*/
/* Analysis page*/
/*==============================================*/
.video-analysis {
  display: flex;
  justify-content: center; /* Centers horizontally */
  align-items: center;     /* Centers vertically */
  height: 60vh;           /* Takes full height of the viewport */    
    overflow: hidden;
	margin-top: 0;
}

.analysisVideo {
    width: auto;
    height: 100%;
    /*border: 3px solid #333;*/
    display: block;
}


.image-text-block {
	width: 100%;
	margin: 50px auto;
	padding: 0 20px;
	
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.image-text-block img {
	/*width: 30%;
	height: auto;*/
	border-radius: 12px;
	border: 3px solid #0057b8;
	
    height: 20vh;
	width: 60vh;
    overflow: hidden;
    position: relative;
    background: #111;
	
}

/* ===== Image Styling ===== */
.image-pair {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 30px 0;
}

.side-image {
    width: 50%;
    /*max-width: 450px;*/
    border-radius: 12px;
    border: 3px solid #1e90ff;
}

/* === Default Video Container Styles (For large screens) === */
.video-analysis-container{
    display: flex; 
    justify-content: center;
    width: 100%;
    margin: 20px auto;
}

.synced-analysis-video{
    width: 50%; /* Side-by-side on large screens */
    height: auto;
    /*min-width: 300px;*/ 
    margin: 0 10px; 
    border-radius: 12px;
    border: 3px solid #1e90ff;
    cursor: pointer;
}





/*==============================================*/
/*=========== METHODOLOGY PAGE =================*/
/*==============================================*/
.method-section {
  justify-content: center; /* Centers horizontally */
}

.method-img {
    width: 90%;
	max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 15px;
}



/*==============================================*/
/*=========== TRYOUT PAGE ======================*/
/*==============================================*/
.tryout-img {
    width: 90%;
	max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 15px;
}


/* Make button and progress bar in the new line */
.upload-container {
    display: block;  /* Ensure the div takes up the whole line */
    width: 90%;  /* Optional: Ensure container fills the available width */
	margin-top: 50px;
}

/* Default styles for progress bar */
.upload-container progress {
    width: 100%; /* Set to 100% of its parent container */
    max-width: 300px; /* Limit the width to 300px */
    height: 20px; /* Optional: adjust the height of the progress bar */
    appearance: none; /* Remove default styles in some browsers */
    background-color: #f3f3f3; /* Light background */
    border-radius: 5px; /* Optional: rounded corners */
	margin-bottom: 10px; /* Space between button and progress bar */
}

/* Optional: Customize the progress bar value indicator */
.upload-container progress::-webkit-progress-bar {
    background-color: #e3e3e3; /* Background of the progress bar */
    border-radius: 5px; /* Optional: rounded corners */
}

.upload-container progress::-webkit-progress-value {
    background-color: #4caf50; /* Green color for the progress */
    border-radius: 5px; /* Optional: rounded corners */
}


/* Style for the caption */
#progressCaption {
    text-align: left; /* Center the caption */
    font-size: 16px; /* Font size for the caption */
    color: #333; /* Text color */
    margin-bottom: 2px; /* Space between caption and progress bar */
}



/* Keep file input left-aligned */
input[type="file"] {
    max-width: 30%; /* Prevent it from being too wide */
    width: auto;
    display: inline-block; /* Keep it in line with other elements */
}


.delete-files-container {
    margin-top: 30px;
}

/* Disabled styles */
button:disabled, 
input[type="submit"]:disabled, 
input[type="button"]:disabled, 
input[type="file"]:disabled {
    background-color: grey;
    cursor: not-allowed;
    opacity: 0.6;
}



/* Default styles for larger screens (desktops, tablets) */
button, input[type="submit"], input[type="button"], input[type="file"] {
    background-color: #034f94;  /* Background color */
    color: white;  /* Text color */
    padding: 12px 24px;  /* Default padding */
    font-size: 18px;  /* Default text size */
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 10px;
}

/* Hover effect */
button:hover, input[type="submit"]:hover, input[type="button"]:hover, input[type="file"]:hover {
    background-color: darkblue;  /* Change color when hovered */
    transform: scale(1.05);  /* Slightly enlarge on hover */
}

/* Active effect (when the button is pressed) */
button:active, input[type="submit"]:active, input[type="button"]:active, input[type="file"]:active {
    background-color: green;  /* Change color when pressed */
    transform: scale(0.90);  /* Slightly shrink the button when pressed */
}







.tryout-display-container {
    display: block;  /* Ensure the div takes up the whole line */
    width: 100%;  /* Optional: Ensure container fills the available width */
	margin: 50px auto
}



.tryout-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
}

.tryout-video-container video {
    width: 100%;
    max-height: 80vh;
}

#outputVideo {
    border: 3px solid #555;  /* Optional: Adds a border to emphasize the frame */
	margin-top: 20px;
	margin-bottom: 20px;
}

/* Make analyze buttonin the new line */
.analyze-container {
    display: block;  /* Ensure the div takes up the whole line */
    width: 90%;  /* Optional: Ensure container fills the available width */
}




/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    max-height: 100%; /* Auto height*/
    background-color: rgba(0, 0, 0, 0.5);
	margin: auto;
}

/* .modal-header {
    background: linear-gradient(135deg, #202124 0%, #3c4043 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
} */


/* Modal Content Box */
.modal-content {
    background-color: white;
    padding: 20px;
    width: 100%;
    text-align: center;
    border-radius: 10px;
    margin: 10% auto; /* Center */
		
	/* Key properties for scrolling */
	max-height: 80vh; /* Set a maximum height relative to the viewport */
	overflow-y: auto; /* Adds a vertical scroll bar if content exceeds max-height */	
	max-width: 80vh; /* Set a maximum height relative to the viewport */
	overflow-x: auto; /* Adds a horizontal scroll bar if content exceeds max-width */	
}

.tryout-lunge-img-container {
    max-width: 90%;
    height: 50%;
	margin: 5% auto; /* Centered on the screen */
}
.tryout-lunge-img-container img{
    width: 100%;
}

.checkbox-container {
    max-width: 90%;
	margin: 5% auto; /* Centered on the screen */
}

.score-section {
    width: 90%;
	margin-left: 5%; /* Centered on the screen */
	margin-bottom: 7%; /* Centered on the screen */
}
.score-section p{
    width: 100%;
	text-align: left;
}
.indented-list{
    width: 100%;
	text-align: left;
	padding-left: 30px; /* Adjust the pixel value as needed for more or less indentation */
}



/* Star Rating */
.rating {
    font-size: 25px;
    color: gold;
}


/* Close Button */
.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

/* Checkbox Container */
.checkbox-container {
    margin: 20px 0;
}

.checkbox-container label {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
}





/* Style for input */
#scoreInput {
    padding: 10px;
    font-size: 16px;
    width: 100px;
    margin-bottom: 10px;
}

.overall-score {
    font-weight: bold;  /* Make text bold */
    font-size: 20px;    /* Increase font size */
    margin-bottom: 10px; /* Add spacing below */
}

.sub-score {
    font-weight: bold;  /* Make text bold */
    font-size: 17px;    /* Increase font size */
    margin-bottom: 10px; /* Add spacing below */
}


/* Default hidden state for the second modal */
#scoreModal {
    display: none; /* Hide initially */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

/* Overlay background for second modal */
#scoreModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1.0);
    z-index: 1000;
}





/*==============================================*/
/*=========== APPENDIX PAGE ======================*/
/*==============================================*/
.appendix-img {
    width: 100%;
	max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 15px;
	border: 3px solid #1e90ff;
}

.appendix-intro{
	margin-bottom: 70px
}

:root {
            --gcp-blue: #4285F4;
            --firebase-amber: #FFCA28;
            --dark-bg: #1a1b1e;
            --card-bg: #ffffff;
            --text-main: #3c4043;
            --link-color: #1a73e8;
			
            --dark-grey: #202124;
            --light-grey: #f8f9fa;
            --code-bg: #2d2d2d;
			
}

* { box-sizing: border-box; }

/* Concept Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 5px solid var(--gcp-blue);
}

.card.firebase { border-top-color: var(--firebase-amber); }
.card.domain { border-top-color: #34a853; }

.card h2 {
	font-size: 1.8rem;
	margin-top: 0;
	display: flex;
	align-items: center;
}
.card h2 i { margin-right: 15px; }

.card.firebase h2 {
	font-size: 1.8rem;
    margin-top: 0;
    display: flex;
    align-items: center;
}
.card.firebase h2 i { margin-right: 15px; }

.card.domain h2 {
	font-size: 1.8rem;
    margin-top: 0;
    display: flex;
    align-items: center;
}
.card.domain h2 i { margin-right: 15px; }


.concept-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            margin: 20px 0;
}

@media (min-width: 768px) {
    .concept-grid { grid-template-columns: 1fr 1fr; }
}

.concept-item {
            background: #f1f3f4;
            padding: 1.5rem;
            border-radius: 8px;
}

.concept-item h4 { margin-top: 0; color: #202124; }

/* Code & Links */
pre {
            background: #2d2d2d;
            color: #f8f8f2;
            padding: 1rem;
            border-radius: 6px;
            overflow-x: auto;
            font-size: 0.9rem;
}

.step-list {
	padding-left: 1.2rem;
}
.step-list li {
	margin-bottom: 10px;
}

        .step-box {
            border-left: 4px solid var(--gcp-blue);
            padding-left: 1.5rem;
            margin: 1.5rem 0;
        }

        code {
            background: var(--code-bg);
            color: #f8f8f2;
            padding: 0.2rem 0.4rem;
            border-radius: 4px;
            font-family: 'Courier New', Courier, monospace;
        }


        .doc-link {
            display: inline-block;
            margin-top: 15px;
            color: var(--link-color);
            text-decoration: none;
            font-weight: bold;
        }

        .doc-link:hover { text-decoration: underline; }

        .badge {
            background: #e8f0fe;
            color: #1967d2;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
        }



























@media (max-width: 768px) {

	.page-container {
		max-width: 90%;
		margin: auto;
		padding: 0 20px;
	}
	
    .image-pair {
        flex-direction: column;
        gap: 14px;
    }
    .side-image {
        max-width: 95%;
    }

	.banner {
        flex-direction: column;
        gap: 8px;
    }

    .banner video.logo-video {
        height: 45px;
    }

    .banner img.logo-img {
        height: 45px;
    }

    .banner-text h1 {
        font-size: 1.5rem;
    }

    .banner-text p {
        font-size: 0.85rem;
    }
	
    .nav-links {
        display: none;
        flex-direction: column;
        background: white;
        width: 100%;
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-toggle {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: #1e90ff;
    }
	
   .hero-video-wrapper {
        height: 40vh;
    }

    .hero-text h2 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        max-width: 90%;
    }	
	
    .two-column {
        flex-direction: column;
    }

    .left-rolling-images {
        width: 100%;
        height: 30vh;
    }

    .rolling-track img {
        height: 20vh;
    }

    .right-text-section {
        width: 100%;
    }	
	
	.video-container, .video-container2, .video-container3 {
        /* Change the layout from row to column (stacking the videos) */
        flex-direction: column;
        align-items: center; /* Center the stacked videos */
    }

    .synced-video, .synced-video2, .synced-video3 {
        /* Make each video take up nearly the full width of the container (e.g., 90%) */
        width: 90%; 
        /* Reset the minimum width for mobile devices */
        min-width: unset; 
        /* Add more vertical margin for separation */
        margin: 10px 0; 
    }	
	
	
	/*==============================================*/
	/* Analysis page*/
	/*==============================================*/
	.video-analysis {
        /* Change the layout from row to column (stacking the videos) */
        flex-direction: column;
        align-items: center; /* Center the stacked videos */
    }

    .analysisVideo {
        /* Make each video take up nearly the full width of the container (e.g., 90%) */
        width: 90%; 
        /* Reset the minimum width for mobile devices */
        min-width: unset; 
        /* Add more vertical margin for separation */
        margin: 0 10px; 
    }	
	
	.image-text-block {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.image-text-block img {
		width: 70%;
		max-width: 30vh;
	}
	
	.video-analysis-container{
        /* Change the layout from row to column (stacking the videos) */
        flex-direction: column;
        align-items: center; /* Center the stacked videos */
    }

    .synced-analysis-video{
        /* Make each video take up nearly the full width of the container (e.g., 90%) */
        width: 90%; 
        /* Reset the minimum width for mobile devices */
        min-width: unset; 
        /* Add more vertical margin for separation */
        margin: 10px 0; 
    }	
	
	/*==============================================*/
	/* Method page*/
	/*==============================================*/
	.method-section {
        margin-bottom: 35px;
    }
	
	.method-img {
		width: 80%;
		max-height: 70vh;
		border-radius: 8px;
		margin-bottom: 15px;
	}



	
	
	
	/*==============================================*/
	/* Tryout page*/
	/*==============================================*/
	.tryout-img {
		width: 80%;
		max-height: 80vh;
		border-radius: 8px;
		margin-bottom: 15px;
	}


    .modal {
        width: 100%; /* Increase width for smaller devices */
        max-height: 100%;
        /*max-width: 400px;*/
    }

    /* Modal Content Box */
    .modal-content {
        background-color: white;
        padding: 20px;
        width: 85%;
        text-align: center;
        border-radius: 10px;
        margin: 10% auto; /* Center */
            
        /* Key properties for scrolling */
        max-height: 90vh; /* Set a maximum height relative to the viewport */
        overflow-y: auto; /* Adds a vertical scroll bar if content exceeds max-height */	
        max-width: 90vh; /* Set a maximum height relative to the viewport */
        overflow-x: auto; /* Adds a horizontal scroll bar if content exceeds max-width */	
    }


    .rating {
        font-size: 20px; /* Reduce star size */
    }
	
    button, input[type="submit"], input[type="button"] {
        font-size: 14px;
        padding: 8px 16px;
        width: 100%; /* Full width for easier tapping */
		margin-bottom: 10px; /* Space between button and progress bar */
    }

    input[type="file"] {
        max-width: 250px;
    }
	
}

/* ===== Footer ===== */
footer {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 0.85rem;
    color: #777;
}
