html {
    scrollbar-width: none;
}

body{
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    color: #ffffff;
    padding:0;
    margin:0;
    background-color:#000000;
    -ms-overflow-style: none;
}
/*
body.main_page {
    background-image: url(./../images/cross_paving.jpg);
    background-position: center;
    background-repeat: repeat;
}
*/
/* Header */
body.main_page header {
    color:#ffffff;
    padding-top:23px;
    padding-left: 5%;
    padding-right: 5%;
    min-height: 100px; /* Increase height to see the parallax effect clearly */
    margin: auto;
    overflow: hidden;
    border-bottom:rgb(2, 136, 253) 4px solid;

    /* Parallax */
    background-image: url(./../images/banner.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

body header {
    color:#ffffff;
    padding-top:23px;
    padding-left: 5%;
    padding-right: 5%;
    min-height: 60px; /* Increase height to see the parallax effect clearly */
    margin: auto;
    overflow: hidden;
    border-bottom:rgb(2, 136, 253) 4px solid;

    /* Parallax */
    background-image: url(./../images/banner.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

/* Navbar links */
nav li{
    display: inline-block;
    font-size: 0;
    padding: 0 20px 0 20px;
}

nav li a{
    display:inline-block;
    text-align:center;
    color:#ffffff;
    text-decoration:none;
    font-size:16px;
    transition: 0.2s;
}

/* Custom header links*/
nav a{
    display: block;
    color: white;
    text-decoration: none;
    position: relative;
  }
  
nav a::after{
    content: "";
    background: white;
    mix-blend-mode: exclusion;
    width: calc(100% + 20px);
    height: 0;
    position: absolute;
    bottom: -4px;
    left: -10px;
    transition: all .3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

nav{
    float:right;
    margin-top:10px;
}

nav a:hover::after{
    height: calc(100% + 8px)
}

nav ul{
    margin:0;
    padding:0;
}

/* Highlight current location in navbar */
nav .highlight, header .current a{
    color:rgb(2, 136, 253);
    font-weight:bold;
}

header #titleName{
    float:left;
    color: white;
}

header #titleName h1{
    margin:0;
    font-size:27px;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

/* General purpose containers */
.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.container a {
    color: black;
    text-decoration: none;
}

/* Multi-column container */
.multiColumnContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
}

.multiColumnContainer .column {
    flex: 1;
    text-align: center;
    padding: 0% 5% 0% 5%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* space between items */
}

/* Text Container */
.textContainer {
    width: 80%;
    margin: auto;
    overflow: hidden;
    text-align: justify;
}
.textContainer a {
    color: rgb(2, 136, 253);
    text-decoration: none;
}

/* Simulaion container, typically simu on the left, controls on the right */
.simuContainer {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.visualSimuContainer {
    width: 500px;
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ctrlPanelContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 3%;
    margin-left: 10%;
}

.ctrlPanelContainer p {
    margin-bottom: 0;
}


/* Matrix input */

#show3x3{
	float:left;
    width: 90px;
}
#show4x4{
	float:left;
    width: 120px;
}
#show5x5{
	float:left;
    width: 150px;
}

/* Matrix 3x3 input*/
.matrixContainer3x3{
    float:left;
    width: 90px;
}
.box3x3 {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid gray;
    border-top: 1px solid gray;
    color:gray;
}
.box3x3:focus{
    outline: 0px;
}

/* Add right border to elements at the end of rows */
.box3x3:nth-child(3n) {
    border-right: 1px solid gray;
}

/* Add bottom border to elements at the bottom */
.box3x3:nth-child(n+7) {
    border-bottom: 1px solid gray;
}


/* Matrix '4x4' input*/
.matrixContainer4x4{
    display: none;
}
.box4x4 {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid gray;
    border-top: 1px solid gray;
    color:gray;
}
.box4x4:focus{
    outline: 0px;
}

/* Add right border to elements at the end of rows */
.box4x4:nth-child(4n) {
    border-right: 1px solid gray;
}

/* Add bottom border to elements at the bottom */
.box4x4:nth-child(n+13) {
    border-bottom: 1px solid gray;
}

/* Matrix 5x5 input*/
.matrixContainer5x5{
    display: none;
}
.box5x5 {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid gray;
    border-top: 1px solid gray;
    color:gray;
}
.box5x5:focus{
    outline: 0px;
}

/* Add right border to elements at the end of rows */
.box5x5:nth-child(5n) {
    border-right: 1px solid gray;
}

/* Add bottom border to elements at the bottom */
.box5x5:nth-child(n+21) {
    border-bottom: 1px solid gray;
}


/* Coordinate input container*/
.coordContainer{
    float:left;
    width: 100px;
}

.coordBox {
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    width: 50px;
    height: 30px;
    box-sizing: border-box;
    border: 0;
    border-left: 1px solid gray;
    border-top: 1px solid gray;
    color:gray;
}

/* Add right border to elements at the end of rows */
.coordBox:nth-child(2n) {
    border-right: 1px solid gray;
}


/* Cards */

.cardContainer{
    display: flex;
    justify-content: center;
}

.cardContainer a{
    color:white;
    text-decoration: none;
}

.card{
    width:310px;
    height:200px;
    border-radius: 10px;
    padding: 1px 25px;
    box-sizing: border-box;
    box-shadow: 5px 5px 15px black;
    cursor: pointer;
    margin: 20px 12px;
    background-position: center;
    background-size: cover;
    transition: 0.2s;
}

.card:hover{
    transform: scale(1.02);
    color:#176fdb;
    text-shadow: 0px 0px 5px rgb(22, 42, 197);
}

/* Filter cards for home page */

.filterbar{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.filter-label {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    padding: 0 0.5rem;
    text-shadow: 0 2px rgba(0, 0, 0, 0.7);
}

.filter-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background: hsl(0, 0%, 0%);
    max-width: 15rem;
    width: 100%;
    height: 6.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 0.1rem solid;
    transition: all 0.2s;
    filter: grayscale(100%);
    cursor: pointer;
    padding: 0;
}

.filter-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.filter-btn:hover {
    border-color: rgb(2, 136, 253);
}

.filter-btn.active{
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
}

/* Card + description */

.textcard_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem 0;
    gap: 2rem;
}

.textcard_container a {
    color: white;
    text-decoration: none;
}

.textcard {
	--shadowColor: 220 60% 40%;
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 auto;
	background: hsl(240, 100%, 3%);
	max-width: 60%;
	width: 100%;
    height: 10rem;
	box-shadow: 0.2rem 0.2rem 0 hsl(var(--shadowColor) / 1);
	border-radius: 0.5rem;
	overflow: hidden;
	border: 0.1rem solid;
    transition: transform .2s;
}

.textcard:hover {
    box-shadow: 0.55rem 0.55rem 0 rgb(2, 136, 253);
    transform: scale(1.01);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.textcard.hidden{display:none;}

.textcard img {
    object-fit: cover;
    max-width: 30%;
	flex: 1 1 auto;
	outline: 0.1rem solid;
}

.textcard_content {
    color: white;
	padding: 0rem 1rem 1rem 1rem;
	flex: 1;
}


/* custom links*/

.linklist a{
    font-size: 18px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    line-height: 1;
    position: relative;
    z-index: 0;
    display: inline-block;
    padding: 5px 5px 5px 5px;
    margin: 5px 5px 5px 0px;
    overflow: hidden;
    vertical-align: bottom;
    transition: color .3s ease-out;
}

.linklist a::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    transform: translateY(calc(100% - 2px));
    width: 100%;
    height: 100%;
    background-image: linear-gradient(60deg, #2029d6 0%, #269bf4 100%);
    transition: transform .25s ease-out;
}

.linklist a:hover::before {
    transform: translateY(0);
    transition: transform .25s ease-out;
}

/* Custom Button */

.customButton {
    align-items: center;
    appearance: none;
    background-color: #3EB2FD;
    background-image: linear-gradient(1deg, #0911b0, #146df3 99%);
    background-size: calc(100% + 20px) calc(100% + 20px);
    border-radius: 10px;
    border-width: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-flex;
    font-family: CircularStd,sans-serif;
    font-size: 1rem;
    height: auto;
    justify-content: center;
    line-height: 1.5;
    padding: 6px 15px;
    position: relative;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s,background-position .2s;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: top;
    white-space: nowrap;
}

.customButton:active,
.customButton:focus {
    outline: none;
}

.customButton:hover {
    background-position: -20px -20px;
}

.customButton:focus:not(:active) {
    box-shadow: rgba(40, 170, 255, 0.25) 0 0 0 .125em;
}

/* Sliders */

input[type="range"] {    /* Custom sliders */
    width: 140px;
    padding: 0px;
}

input[type="range"]::-ms-tooltip {
    display: none;       /* hide readout in IE */
}

input[type="range"]::-ms-track {
    color: transparent;  /* hide tick marks in IE */
}
    
input {                  /* Mobile fixes */
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
}

/* Color choices */

.colorPanel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

input[type="color"] {
    padding: 0px;
    width: 2em;
    height: 2em
}
