﻿/* KLICK3D-CSS-HTML5-Shipping-V2.css - CSS style sheet UE4.9 HTML5 projects */

/* --- Fix for missing Glyphicons (load from /fonts/ folder) --- */
@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('fonts/glyphicons-halflings-regular.woff2') format('woff2'),
       url('fonts/glyphicons-halflings-regular.woff') format('woff'),
       url('fonts/glyphicons-halflings-regular.ttf') format('truetype');
}

html, body, .container {
    height: 100%;
    font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #14001F;
}

/* Fullscreen Background Video */
#loaderVideo {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
    background-color: #14001F;
}


.h4, h4 {
    margin-top: 1pt;
    margin-bottom: 1pt;
    font-size: 10pt;
}

.container {
    display: table;
    vertical-align: middle;
    border: 0px;
    border-spacing: 0px;
}

.glyphicon-spin {
    animation: spin 2000ms infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

@-webkit-keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

.wrapper {
    position: relative;
    margin: 0 auto 0 auto; /* Added second '0 auto' */
    text-align: center;
    min-width: 320px;
    width: 100%;
    height: 180px; /* initial height, will be dynamically adjusted at runtime */
    max-width: 100%;
    display: block;
    align-items: center;
    justify-content: center;
}

.alert {
    white-space: nowrap;
}


.emscripten {
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    display: -webkit-box;
    display: -moz-box;
    display: box;

    -webkit-box-align: center;
    -moz-box-align: center;
    box-align: center;

    -webkit-box-pack: center;
    -moz-box-pack: center;
    box-pack: center;
    
    outline: none;
}

#canvas:not([fullscreen]) {
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    /* margin-top: 50px; */
    /* height: 35%;   ''!important' This moves the buttons away from the Canvas - This is not working properly*/
}

.texthalf {
    height: 37%;
    border: 0px;
    padding: 0px;
    overflow-y: scroll;
    font-size: 2em;
}

.buttonarea {
    border-top: 0px;
    border-bottom: 0px;
    padding: 0px;
    margin-left: 0px;
	margin-right: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
    min-height: 35px;
}

/* --- Custom button colors (purple theme) --- */
.btn-primary {
  background-color: #6a1b9a;
  border-color: #4a148c;
  color: #fff;
  padding: 3px;
  text-align: center;
}

/* This is original css Code */
/* .btn-primary { padding: 3px; text-align: center; min-width: 150px; max-height: 25px; margin: 10px 5px 10px 5px; } Removed because it's replaced above */
.progress { background: rgba(245, 245, 245, 1); border: 0px solid rgba(245, 245, 245, 1); border-radius: 0px; height: 4px; }
.progress-bar-custom { background: rgba(153, 153, 153, 1); }

/* Move UE4 compile & download box to TOP */
.centered-axis-xy {
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    z-index: 1000;
}


/* --- Custom styling for alert box (loading status) --- */
.alert-warning {
  background-color: rgba(20, 0, 31, 0.78);
  border: 1px solid #B89A5A;
  color: #ffffff;
  font-weight: normal;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}


/*-- Loader Overlay --*/
#chgLoaderOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    /*background: rgba(20, 0, 31, 0.35);*/
    pointer-events: none;
    transition: opacity 1s ease;
}

#chgLoaderBox {
    width: 80%;
    max-width: 85vw;
    padding: 10px 10px;
    text-align: center;
    background: rgba(20, 0, 31, 0.78);
    border: 1px solid #B89A5A;
    border-radius: 16px;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.chgLoaderTitle {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #B89A5A;
    margin-bottom: 8px;
}

.chgLoaderSubtitle {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

#chgProgressOuter {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.18);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 10px;
}

#chgProgressInner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #58007c, #B89A5A);
    border-radius: 20px;
    transition: width 0.35s ease;
}

#chgProgressText {
    font-size: 13px;
    color: #ffffff;
    opacity: 0.85;
}

#chgLoaderOverlay.hidden {
    opacity: 0;
}
/*-- END Loader Overlay --*/