:root {
  --main-bg-color: #3e3e3e;
  --main-bg-accent: #348aa7;
  --main-bg-accent-dark: #286b82;
  --main-bg-accent-light: #61a4bb;
}

html {
  box-sizing: border-box;
}

*, *::after, *::before {
  box-sizing: inherit;
}

*, *:before, *:after {
  box-sizing: border-box;
  outline: none;
}

body {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-smooth: auto;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
  overflow-x: hidden;
}

main
{
    background-color: #3e3e3e;
}

h2
{
    font-size: 56px;
}

.menu {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  transition: transform 250ms ease;
  cursor: pointer;
  z-index: 200;
}
.menu span {
  position: relative;
  display: block;
  width: 50%;
  height: 2px;
  background-color: #444;
  float: left;
  transform-origin: center center;
  transition: transform 250ms ease;
  z-index: 200;
}
.menu span:nth-of-type(1) {
  transform: translateY(-5px);
}
.menu span:nth-of-type(3) {
  transform: translateY(5px);
}

#menu {
  display: none;
}
#menu:checked ~ .menu {
  background-color: transparent;
  transform: rotate(360deg);
  transition: transform 250ms ease;
}
#menu:checked ~ .menu span {
  background-color: white;
  transition: transform 250ms ease;
}
#menu:checked ~ .menu span:nth-of-type(1) {
  transform: translateY(1px) rotate(45deg);
}
#menu:checked ~ .menu span:nth-of-type(2) {
  display: none;
}
#menu:checked ~ .menu span:nth-of-type(3) {
  transform: translateY(-1px) rotate(-45deg);
}
#menu:checked ~ .nav {
  left: 0px;
  transition: left 500ms ease;
}
#menu:checked ~ main {
  transform: translateX(250px);
  transition: transform 500ms ease;
}

.nav {
  position: fixed;
  top: 0;
  left: -210px;
  width: 300px;
  height: 100vh;
  margin: 0;
  padding: 0;
  background-color: #444;
  transition: left 500ms ease;
  z-index: 0;
    display:block;
}
.nav ul {
  position: relative;
  list-style-type: none;
  margin: 100px 0;
  padding: 0;
}
.nav ul li {
  position: relative;
  display: block;
  border-bottom: 1px solid var(--main-bg-accent);
}
.nav ul li a {
  position: relative;
  display: block;
  margin: 0;
  padding: 15px 20px;
  color: white;
  font-size: 14px;
  /*font-weight: bold;*/
  text-decoration: none;
  text-transform: uppercase;
}
.nav ul li a:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  transition: width 250ms ease;
  z-index: -1;
}
.nav ul li a:hover {
  /*color: #444;*/
}
.nav ul li a:hover:before {
  width: 100%;
  height: 100%;
  background-color: var(--main-bg-accent);
  transition: width 250ms ease;
}

.container {
  width: 75%;
  margin: 0 auto;
}

main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: translateX(0px);
  transition: transform 500ms ease;
  z-index: 0;
}
main header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--main-bg-color);
}
main header h1 {
  color: #ccc;
  z-index: 3;
}
main section {
  position: relative;
  display: block;
  margin: 0;
  background-color: white;
  z-index: 100;
}
main section p {
  margin-bottom: 30px;
}
main .img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 300px;
  background-color: #444;
}
main .img h1 {
  color: rgba(255, 255, 255, 0.2);
}
main footer {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 20px 20px 20px;
  background-color: #444;
}
main footer::after {
  clear: both;
  content: "";
  display: block;
}
main footer .logo {
  font-size: 28px;
  color: whitesmoke;
  line-height: 0;
  margin-bottom: 8px;
  margin-right: 4px;
}
@media screen and (min-width: 1024px) {
  main footer .logo {
    float: left;
    margin-bottom: 0;
  }
}
main footer ul {
  line-height: 1.5;
  margin: 0 0 16px 0;
  padding: 0;
}
main footer ul::after {
  clear: both;
  content: "";
  display: block;
}
@media screen and (min-width: 1024px) {
  main footer ul {
    float: left;
    line-height: 1.8;
    margin-bottom: 0;
    margin-left: 16px;
  }
  main footer ul::after {
    clear: both;
    content: "";
    display: block;
  }
}
main footer ul li {
  list-style: none;
  padding-right: 16px;
}
@media screen and (min-width: 1024px) {
  main footer ul li {
    display: inline;
    text-align: left;
  }
}
main footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
}
main footer ul li a:focus, main footer ul li a:hover {
  color: white;
}
@media screen and (min-width: 1024px) {
  main footer .secondary-links {
    float: right;
  }
}
main footer .secondary-links li a {
  font-size: 12px;
  font-weight: 100 !important;
}
main footer .secondary-links .social {
  margin: 1em 0 0 0;
}
@media screen and (min-width: 1024px) {
  main footer .secondary-links .social {
    float: right;
    margin-top: 0;
  }
}
main footer .secondary-links .social li {
  float: left;
  font-size: 1em;
  line-height: 0;
  margin: 0;
  padding-right: 0.7em;
}
main footer .secondary-links .social li:last-child {
  padding-right: 0;
}
main footer .secondary-links .social li > a {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #444;
  text-align: center;
  line-height: 30px;
}
main footer .secondary-links .social li > a:hover {
  background-color: white;
}

.headerLogo
{
    height: 70px;
    max-width: calc(100% - 150px);
    margin-top:20px;
    margin-bottom:20px;
}

.cubeTypeImg
{
    height: 50px;
    margin: 0px;
}

.algArea
{
    padding-top:20px;
    padding-bottom:20px;
    background-color: var(--main-bg-color);
}

.translationBox
{
    font-family: 'Lato', sans-serif;
    display: block;
    width: calc(100% - 190px);
    max-width: 800px;
    height: 50px;
    /*
    padding: .375rem .75rem;
    padding-right: 0.75rem;
    */
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.translationBoxOption
{
    position: absolute;
    right: 200px;
    top: 0px;
    z-index: 1;

    background: none;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    width: 120px;
    height: 82px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px;
}

.translationBoxDropDown
{
    background: none;
    border: none;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 18px;
    width: 120px;
    height: 82px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 10px;
}

.translatorSection
{
    margin-top:-20px;
}

.translatorCanvas
{
    width:100%;
    height: 60vw;
    max-height: 600px;
}

.btn-cube
{
    padding:0px;
}

.btn:focus 
{
    outline: 0;
    box-shadow: none;
}

.dropdown-menu
{
    padding:0px;
    margin:0px;
    border:0px;
    border-radius:0px;
    background-color: var(--main-bg-color);
}

.dropdown-item
{
    padding:0px;
    margin-left:0px;
    margin-right:0px;
    margin-top:5px;
    margin-bottom:5px;
}


.dropdown-item.active, .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #888888;
}

.bg-main
{
    background-color: var(--main-bg-color);
    color: #FFFFFF;
}

.bg-accent
{
    background-color: var(--main-bg-accent);
    color: #FFFFFF;
}

.bg-accent-dark
{
    background-color: var(--main-bg-accent-dark);
    color: #FFFFFF;
}

.svgThumb svg
{
    background-color: var(--main-bg-color);
}


/*------------------------------
	REFERENCE
------------------------------*/
.grid {
    
    
    /*
	padding: 10px 0px;
	max-width: 1300px;
	margin: 0 auto;
    */
	list-style: none;
	text-align: center;
}

/*
.grid li {
	display: inline-block;
	width: 350px;
	margin: 0;
	padding: 20px;
	text-align: left;
	position: relative;
}
*/


.grid li {
	padding: 10px 0px;
}


.grid figure {
	margin: 0;
	position: relative;
    background-color: var(--main-bg-color);
}

/*
.grid figure img {
	max-width: 100%;
}
*/

.grid figcaption {
	position: absolute;
	top: 0;
	left: 0;
	padding: 15px;
	background: var(--main-bg-accent-dark);
	color: var(--main-bg-accent-light);
}

.grid figcaption h3, 
.grid figcaption h5,
.grid figcaption p
 {
	margin: 0;
	padding-top: 0;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
	color: #fff;
}

.grid figcaption span:before {
	content: 'by ';
}

.grid figcaption a {
	text-align: center;
	padding: 5px 10px;
	border-radius: 2px;
	display: inline-block;
	background: var(--main-bg-accent-light);
	color: #fff;
}

/* Caption Style 4 */
.cs-style-4 li {
	-webkit-perspective: 1700px;
	-moz-perspective: 1700px;
	perspective: 1700px;
	-webkit-perspective-origin: 0 50%;
	-moz-perspective-origin: 0 50%;
	perspective-origin: 0 50%;
}

.cs-style-4 figure {
	-webkit-transform-style: preserve-3d;
	-moz-transform-style: preserve-3d;
	transform-style: preserve-3d;
}

.cs-style-4 figure > div {
	overflow: hidden;
}

.cs-style-4 figure img,
.cs-style-4 figure .item-label
 {
	-webkit-transition: -webkit-transform 0.4s;
	-moz-transition: -moz-transform 0.4s;
	transition: transform 0.4s;
}

.no-touch .cs-style-4 figure:hover img,
.cs-style-4 figure:hover img,
.cs-style-4 figure:hover .item-label {
	-webkit-transform: translateX(25%);
	-moz-transform: translateX(25%);
	-ms-transform: translateX(25%);
	transform: translateX(25%);
}

.cs-style-4 figcaption {
	height: 100%;
	width: 50%;
	opacity: 0;
	-webkit-backface-visibility: hidden;
	-moz-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	transform-origin: 0 0;
	-webkit-transform: rotateY(-90deg);
	-moz-transform: rotateY(-90deg);
	transform: rotateY(-90deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s 0.3s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s 0.3s;
	transition: transform 0.4s, opacity 0.1s 0.3s;
}

.no-touch .cs-style-4 figure:hover figcaption,
.cs-style-4 figure:hover figcaption {
	opacity: 1;
	-webkit-transform: rotateY(0deg);
	-moz-transform: rotateY(0deg);
	transform: rotateY(0deg);
	-webkit-transition: -webkit-transform 0.4s, opacity 0.1s;
	-moz-transition: -moz-transform 0.4s, opacity 0.1s;
	transition: transform 0.4s, opacity 0.1s;
}

.cs-style-4 figcaption a {
	/*
    position: absolute;
	bottom: 15px;
	*/
	background-color: var(--main-bg-accent-light);
}

.cs-style-4 figcaption a:hover {
	color: var(--main-bg-accent-light);
	background-color:#ffffff;
}

.cs-style-4 img {
	 height: 250px;
}


/*------------------------------
	REFERENCE END
------------------------------*/

.dropdown-toggle::after {
    color: #FFF;
}

.alg .alg-item
{
    margin-bottom: 40px;
}

.alg p
{
    padding: 0px 0px 0px 30px;
    margin: 0px;
}

.algName
{
    padding: 0px 0px 0px 30px;
    margin: 0px;
    font-weight: 500;
    font-size: 16px;
    color: #FFF;
}

.algNote
{
    padding: 0px 0px 0px 30px;
    margin: 0px;
    font-weight: 400;
    font-size: 16px;
    color: #DDD;
}

.algDesc
{
    padding: 0px 0px 0px 30px;
    margin: 0px;
    font-weight: 400;
    font-size: 12px;
    color: #DDD;
}

hr 
{
    display: block; height: 1px;
    border: 0; 
    border-top: 1px solid #ccc;
    margin: 1em 0; 
    padding: 0; 
}


.hljs
{
    font-size:16px;
}

.hljs-punct
{
    color: #808080;
}

.hljs-tag
{
    color: #569cd6;
}

.hljs-att
{
    color: #9cdcfe;
}

.hljs-str
{
    color: #ce9178;
}

.description
{
    font-size:18px;
}

.code-snippet
{
    font-family: 'Inconsolata', monospace;
    text-align: left;
    padding: 10px 5px 10px 5px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Opera and Firefox */
}

.api-icon
{
    display:inline; 
    padding:8px 2px 12px 6px; 
    background-color:rgba(255,255,255,0); 
    border-radius: 3px; 
    margin-right:5px;
    cursor: pointer;
}

.api-icon:hover
{
    background-color:#3e3e3e; 
}

.api-icon.selected
{
    background-color:#3e3e3e; 
}

.api-icon img
{
    height:32px; 
    width:32px;
    margin-top:3px;
}

.translator-button
{
    color:#FFF; 
    cursor:pointer;  
    padding-left:10px;
    padding-right:10px; 
    font-size:16px;
    border-left: 1px solid #DDD; 
    border-right: 1px solid #DDD;
}

.translator-button img
{
    width:25px; 
    height:25px; 
    display:inline;
}

.translator-button:hover
{
    background-color:#3e3e3e; 
}

.translator-button.selected
{
    background-color:#000000; 
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

.cushan-cp
{
    background: #3e3e3e;
    border: none;
    border-radius: 3px; 
    padding:9px;
    color: #FFF;
}

.sp-preview {
    border: none;
}

.sp-picker-container
{
    border: none;
    background: #3e3e3e;
    border-radius: 3px; 
}

.sp-container
{
    border: 1px solid #FFF;
    border-radius: 3px; 
    background: rgba(0,0,0,0); 
}

.sp-input
{
    color: #FFF;
}

.sp-container button {
    background-color: #888888;
    background-image: none;
    border: none;
    border-radius: 3px;
    color: #FFF;
    font-size: 14px;
    line-height: 1;
    padding: 5px 4px;
    text-align: center;
    text-shadow: none;
    vertical-align: middle;
}

.sp-cancel {
    background-color: #888888;
    background-image: none;
    border: none;
    border-radius: 3px;
    color: #FFF !important;
    font-size: 14px;
    line-height: 1;
    padding: 1px;
    text-align: center;
    text-shadow: none;
    vertical-align: middle;
}

.sp-cancel:hover {
    background-color: #bebebe;
    color: #FFF !important;
    text-decoration: none;
}



.social-icon
{
    padding: 10px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    background: var(--main-bg-accent-dark);
    cursor: pointer;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon-footer
{
    padding: 4px;
    height: 32px;
    text-align: center;
    text-decoration: none;
    background: var(--main-bg-accent-dark);
    cursor: pointer;
    object-fit: cover;
    border-radius: 50%;
}

.social-icon-footer:hover {
  opacity: 0.7;
}

.license-icon
{
    padding: 0px;
    margin-bottom:10px;
    height: 32px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin:0px;
}
