/*
	style.css
*/


/** Load in fonts **/
@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Orbitron:wght@400..900&family=Quicksand:wght@300..700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Doto:wght@100..900&family=Michroma&family=Orbitron:wght@400..900&family=Quicksand:wght@300..700&display=swap');



/** Global CSS Vars **/
:root {
	--divider-height: 4rem;
	--drawing-height: 220px;
	--svgTitle-height: 5rem;
	--border-offsets: 2rem;
	--para-size: clamp( 1rem, 2.5svw, 1.5rem );
}

/** Dark colour scheme **/
body {
	background-color: #1e1e1e;
	color: rgba(255,255,255,0.8);
	font-family: Orbitron, sans-serif;;
}


/** Site-Wide **/
p {  font-size: var(--para-size); line-height: 150%;}
h6 { font-size: clamp(1.1rem, 2.5svw, 1.875rem ); }
h5 { font-size: clamp(1.21rem, 2.5svw, 2.34rem ); }
h4 { font-size: clamp(1.33rem, 2.5svw, 2.925rem ); }
h3 { font-size: clamp(1.46rem, 2.5svw, 3.66rem ); }
h2 { font-size: clamp(1.61rem, 2.5svw, 4.575rem ); }
h1 { font-size: clamp(1.77rem, 2.5svw, 5.715rem ); }

a { color: #1e1}
a:hover { text-shadow: 1px 1px 10px yellow}

button {
	font-size: clamp(1rem, 2.5svw, 1.5rem );
	background: #1e1;
	border: 1px solid #11ee11aa;
	border-radius: 0.25rem;
	color: #1e1e1e;
	cursor: pointer;
	box-shadow: 1px 1px 10px #11ee11
}

.divider {
	max-height: var(--divider-height);
	color: #1e1e1e;
	text-shadow: 0 0 0.5rem #fff;
	background: rgba(255,255,255,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	clear: both;
}

/** 1440px max width, but responsive **/
#page {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}




/***************************************** Hamburger */
#hamburger {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#hamburger span {
  display: block;
  height: 4px;
  margin: 5px 0;
  background: rgba(255,255,255,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu panel */
#menu {
  position: fixed;
  top: 0;
  right: -360px;
  width: 260px;
  height: 100vh;
  background: #111;
  color: #fff;
  padding: 80px 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

#menu ul {
  list-style: none;
  padding: 0;
}

#menu li {
  margin-bottom: 20px;
}

#menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* Hamburger Overlay */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Active state */
.menu-open #menu {
  right: 0;
}

.menu-open #overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Optional hamburger animation */
.menu-open #hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-open #hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-open #hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/**********************************************Front Page Title Screen **/
#front-page-splash {
	margin: 0;
	height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/** Title needs to occupy most of screen despite screen width **/
.splash-title h1{
	font-family: Michroma, Quicksand, sans-serif;
	font-size: 12vw;
	margin: 0;
}
.splash-sub h2{
	font-family: Michroma, Orbitron, sans-serif;
	font-size: clamp(16px,4vw,4rem);
}
.splash-holder {
	text-align: center;
}

/** Lighting effect for emphasis **/
.emp-ipower {
  position: relative;
  color: #fff;

  /* Gradient light band */
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.3) 0%,
    #11ee11aa,
    rgba(255, 255, 255, 0.3) 80%
  );
  background-size: 200% 100%;
  background-position: -100% 0;

  /* Clip gradient to text */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: shine-sweep 2.5s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}


/****************************************************** Product Overview ***/

.overview-drawings {
	height: calc(100vh - var(--divider-height) );
/*	overflow: scroll; */
	margin-bottom: 1rem;
}

#svgTitle, #svgHeadline, #svgDescription {
	font-family: Orbitron, courier, monospace;
	margin: 0;
}

.svgTitle {
	font-size: clamp(0.1rem, 4vw, 3.05rem);
}

#svgHeadline {
	font-size: clamp(1.6rem, 2vw, 2.44rem);
	color: #11ee11a0;
	padding: 1rem;
	display: flex;
	min-height: 25svh;
	align-items: center;
	justify-content: center;
}
#svgDescription {
	font-size: clamp(1rem, 1.5vw, 2rem);
	padding: 1rem;
	min-height: calc( 3cap + 2rem );
}

.svgTitleHolder {
	display: flex;
	justify-content: space-evenly;
	font-size: clamp(1rem, 4vw, 3rem);
	color: rgba(255,255,255,0.1);
	margin: 1rem 1rem 0 1rem;
	position: relative;
	height: var(--svgTitle-height);
	border-radius: 0.5rem 0.5rem 0 0);
}

.svgTitle {
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 0.5rem 0.5rem 0 0;
	padding: 1rem;
	cursor: pointer;
}

.svgTitle:hover {
	text-shadow: 1px 1px 10px yellow;
}

.svg-stage {
	border: 1px solid #1e1;
	border-radius: 0.5rem 0.5rem 0 0;
	z-index: -99;
	margin: 0;
	
}
.svg-slide {
	
}
.svgTitleActive {
	color: rgba(255,255,255,1);
	border: 1px solid #1e1;
	border-radius: 0.5rem 0.5rem 0 0;
	border-bottom: #1e1e1e solid 1px;
	box-shadow:  0 1px 0 #1e1e1e;
}




/** The drawing animations on the SVGs. Also see the js. **/
  .svg-stage {
    position: relative;
  }

  .svg-slide {
    display: none;
  }

  .svg-slide.active {
    display: block;
  }

  svg {
    width: 100%;
    height: auto;
  }

  .draw {
    fill: none;
    animation: draw 6s linear forwards;
  }

  @keyframes draw {
    to { stroke-dashoffset: 0; }
  }

  .fade-target {
    opacity: 0;
  }

  .fade-in {
    animation: fade-in 1.2s ease forwards;
  }

  @keyframes fade-in {
    to { opacity: 1; }
  }
  
  
  
/** The typewriter effect **/
    .cursor {
      display: inline-block;
      width: 10px;
      animation: blink 1s step-start infinite;
    }

    @keyframes blink {
      50% { opacity: 0; }
	}     

/*************************************************** Backup Time **/

#backuptime {
	min-height: calc(100svh - var(--divider-height));
}


/** Stopwatch **/
#secondHand {
  transform-origin: 100px 100px;
  animation: rotate 60s linear infinite;
  animation-play-state: paused;
}

#minuteHand {
  transform-origin: 100px 100px;
  animation: rotate 3600s linear infinite;
  animation-play-state: paused;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#stopwatch {

	max-width: 27vw;
}
#backuptime {
	padding: 1rem;
}

.runtimeinfo {
	display: grid;
	grid-template-columns: 1fr 3fr;
	grid-column-gap: 1rem;
	align-items:center;
	justify-content:center;
}
.theclock {
	/* min-width:30%; */
}
.runtimeText {
	/* max-width: 70%; */
	padding: 0;
}
.rtmodel { display: inline-block; width: 12cap;}

@media (max-width: 400px) {
	.runtimeinfo {
		grid-template-columns: 1fr;
		text-align: center;
	}
}

/************BackupTime Modal **************/
/* Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal container */
.modal {
    background: #1e1e1e;
    min-width: 350px;
    max-width: clamp(350px,100svw,1200px);
    max-height: 90vh;              /* KEY: limits height */
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Close button */
.modal-close {
    background: #1e1;
    border: 1px solid #11ee11aa;
	border-radius: .5rem;
    font-size: 4rem;
	height: 1.5cap;
	width: 1.5cap;
	
    cursor: pointer;
    line-height: 1;
}

/* Scrollable content */
.modal-body {
    padding: 20px;
    overflow-y: auto;              /* KEY: enables scrolling */
}

/* Optional calculator styling */
.calculator-content label {
    display: block;
    margin-bottom: 15px;
}


#powerRanger {
  -webkit-appearance: none; /* Chrome, Safari */
  appearance: none;
  width: 100%;
  height: 6px;
  background: transparent;
  cursor: pointer;
}

#powerRanger::-webkit-slider-runnable-track {
  height: 1rem;
  background: #11ee1188;
  border-radius: 999px;
}
#powerRanger::-moz-range-track {
  height: 1rem;
  background: #11ee1188;
  border-radius: 999px;
}
#powerRanger::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 2rem;
  width: 2rem;
  background: #1e1;
  border-radius: 0%;
  margin-top: -.5rem; /* Align with track */
}
#powerRanger::-moz-range-thumb {
  height: 2rem;
  width: 2rem;
  background: #1e1;
  border-radius: 0%;
  border: none;
}
#powerRanger::-webkit-slider-thumb:hover {
	box-shadow: 1px 1px 10px yellow;
}
#powerRanger::-moz-range-thumb:hover {
	box-shadow: 1px 1px 10px yellow;
}
#powerRanger:focus-visible::-webkit-slider-thumb {
  outline: 3px solid #93c5fd;
}

#powerRanger:focus-visible::-moz-range-thumb {
  outline: 3px solid #93c5fd;
}

.rtcInput {
	border: 1px solid #1e1;
	border-radius: 0.5rem;
	min-height: 5rem;
}
#powerRanger {
	max-width: 70svw;
}
.rtcInput label {
	font-size: clamp(1rem, 2vw, 2rem);
	position: relative;
	top:  -1.5cap;
	padding: 0.5ex;
	color: #1e1;
	background: #1e1e1e;
	left: 2rem;
	max-width: 5cap;
}
#rtcPower {
	font-family: doto, courier, monospace;
	min-width: 20svw;
	text-align: center;
	color: #1e1;
	font-size: clamp(1rem,2.5vw,4rem);
}
.prHolder {
	display: flex;
	align-items: center;
	justify-content: space-around;
}


/***********Contact*******************/

#contactHolder {
	min-height: calc(100svh - var(--divider-height));
}
.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
.form-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-row label {
	font-size: clamp(1rem, 2.5vw, 2rem);
  flex: 0 0 16rem; /* fixed label width */
}
.form-row input {
	min-height: 2.5cap;

}
.form-row input, .form-row textarea {
  flex: 1;
  min-width: 0; /* important to prevent overflow */
  font-size: clamp(1rem, 2.5vw, 2rem);
}
.form-row textarea {
	min-height: 12cap;
}

@media (max-width: 600px) {
	.form-row {
		flex-direction: column;
		gap: 0;
		
	}
	.form-row label {
		flex: 0;
	}
	.form-row input, .form-row textarea {
		width: 87%;
	}
}

.success-message {
	min-height: 50svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content:center;
	text-align: center;
	width: 98%;
	margin-left: 1%;
	border: 1px solid #1e1;
	background: #11ee110c;
	margin-bottom: 2rem;
}

.success-thanks {
	font-size: clamp(4cap, 2.5vw, 4rem);
}
.success-notify {
	font-size: clamp(2cap, 2vw, 2rem);
}

/*******downloads********/
#downloadwrapper {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-column-gap: 1px;
	justify-content: space-between;
	 align-items:flex-start; 
	margin-top: 4rem;
	min-height: calc(100svh - var(--divider-height));
}
.download-row {

	text-align: center;
}
.download-model {
	padding: 2cap;
}

.download-link {
	margin-bottom: 1rem;
}
.download-link img {
	background: #11ee1190;
	margin-bottom: 1rem;
	
}
.download-link img:hover {
	box-shadow: 1px 1px 10px yellow;
}
/*******footer******/
#footer {
	margin-top: 2rem;
	background-image:linear-gradient(to bottom,#11ee11a0,#1e1e1e);
	padding-top: 2rem;
	min-height: 100svh;
	
}
.footerdisc, .footercopy {
	font-size: clamp(1rem, 2svw, 2rem);
	padding: 2rem;
	text-align: center;
}

.company-details {
	display: grid;
	grid-template-columns: 1fr 5fr 5fr 1fr;
	
}
.contact-item {
	grid-column: 2 / 3;
	display: grid;
	gap: clamp(1rem, 5svw, 5rem);
	grid-template-columns: 1fr 11fr;
	gap: 1rem;

}
.contact-icon {
	width: clamp(16px, 5svw, 3rem);
	text-align: right
}
.contact-sub {
	margin: 0;
	font-weight: bold;
	font-size: calc( var(--para-size) * 1.2);
}
.footercopy {
	text-shadow: 1px 1px 10px #000;
}

.footersite {
	text-align: center;
}
#toneus {
	font-size: 2rem;
	display: inline-block;
	font-family: times;
}

#toneust {
	display: inline-block;
	transform: rotate( -20deg );
	padding: 0.25ex;
}

