/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:focus,
a:hover {
  color: #f09228;
  text-decoration: none;
}

body,
td,
th,
tr,
p,
a {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px
}

strong {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
}

heading {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 22px;
}

papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700
}

name {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 32px;
}

.one {
  width: 160px;
  height: 160px;
  position: relative;
}

.two {
  width: 160px;
  height: 160px;
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

.fade {
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}

span.highlight {
  background-color: #ffffd0;
}

.CodeMirror {
    font-size: .8em;
    height: auto;
}

.CodeMirror-scroll {
    overflow-y: hidden;
    overflow-x: auto;
}

#header_img {
    margin-top: 2em;
    margin-bottom: 1em;
}

.list-inline {
	list-style: none;
	margin-left: -0.5em;
	margin-right: -0.5em;
	padding-left: 0;
}

.list-inline > li {
	display: inline-block;
	margin-left: 0.5em;
	margin-right: 0.5em;
}

/* =========================================
   VIDEO COMPARISON SLIDER STYLES
   ========================================= */

/* 1. Main Container */
.video-compare-container {
    position: relative;
    width: 100%; /* Fills the Bootstrap column */
    height: auto; /* Allows height to grow with video */
    display: inline-block; /* Fixes layout in grids */
    vertical-align: top;
    overflow: hidden;
    margin-bottom: 20px;
    --position: 50%; /* Default JS variable fallback */
}

/* 2. The Base Video (Background / Right Side) */
.video-base {
    width: 100%;
    height: auto;
    display: block;
    /* No special positioning needed, it dictates the container height */
}

/* 3. The Clipper (The mask for the Left Side) */
.video-clipper {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%; /* JS will update this */
    overflow: hidden; /* This cuts the video */
    border-right: 2px solid white; /* The white separator line */
    z-index: 10;
}

/* 4. The Overlay Video (Left Side - Inside Clipper) */
.video-overlay {
    /* CRITICAL: This video must be the width of the CONTAINER, not the clipper.
       We set max-width: none so Bootstrap doesn't squash it. 
       The JavaScript explicitly sets the pixel width to match the container. */
    max-width: none !important; 
    height: 100%;
    display: block;
    object-fit: cover; /* Ensures aspect ratio stays correct */
}

/* 5. The Invisible Slider Input (The logic) */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Make it invisible */
    cursor: col-resize; /* Cursor icon */
    z-index: 30; /* Must be on TOP of everything to catch clicks */
    margin: 0;
}

/* 6. The Visual Handle (The Circle Icon) */
.video-compare-container::after {
    content: '\f07e'; /* FontAwesome Arrows */
    font-family: 'FontAwesome'; 
    position: absolute;
    top: 50%;
    /* Use the CSS variable updated by JS */
    left: var(--position); 
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    color: #333;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    pointer-events: none; /* Let clicks pass through to the .slider input */
    z-index: 20; /* Above videos, below slider input */
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* 7. Optional Labels (Render / Culled) */
.slider-label {
    position: absolute;
    bottom: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    z-index: 15;
}
.label-left { left: 10px; }
.label-right { right: 10px; }


/* 1. The Mask (What you see) */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    /* Optional: Add some padding if shadows get cut off */
    padding: 10px 0; 
}

/* 2. The Track (The long strip of items) */
.carousel-track {
    display: flex;
    flex-wrap: nowrap; /* Force single line */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth 'Swipe' ease */
    width: 100%;
}

/* 3. The Items (Force exactly 3 per view) */
.carousel-track .grid-item {
    /* 33.333% width means 3 items fit perfectly */
    flex: 0 0 50%; 
    max-width: 50%;
    padding: 0 1px; /* Spacing between items */
    display: block !important; /* Override any previous JS display:none */
}

/* Navigation Buttons (Same as before) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}
.carousel-btn:hover { background-color: #000; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.btn-left { left: 5px; }
.btn-right { right: 5px; }