@font-face {
    font-family: headingFont;
    src: url(lilita-one-v15-latin-regular.woff2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #082757;
    overflow-x: hidden;
    color: #082757;
    margin: 0 0 0 0;
}

body::-webkit-scrollbar {
    width: 0.25rem;
}

body::-webkit-scrollbar-track {
    background-color: #082757;
}

body::-webkit-scrollbar-thumb {
    background-color: #0e408b;
    border-radius: 5%;
}

.navbar {
    background-color: #082757;
    display: flex;
    align-items: center;
    height: 20vh;
    background-image: url(navbarTexture.png);
    background-size: 200px 200px;
    background-repeat: repeat;
}

.logo {
    height: 20vh;
    padding-left: 30px;
}

.title {
    font-family: headingFont;
    color: #fac6c6;
    font-size: 2.9vw;
    margin-left: 16vw;
    justify-self: center;
}

.nav-links {
    padding-left: 10vw;
    display: flex;
    height: 100%;
    align-items: flex-end;
    flex-direction: column;
    gap: 1vh;
    padding-top: 1vh;
    padding-bottom: 1vh;
}

.nav-links button {
    background-color: #ff6b6b;
    font-family: headingFont;
    border: none;
    padding: 1vh;
    color: #fac6c6;
    font-size: 3vh;
    cursor: pointer;
    height: 6vh;
    width: 200px;
    animation: fadeInBottom 1s forwards 0.5s;
    transition: all 0.5s;
}

.navLinkButtons :hover {
    background-color: #fac6c6;
    box-shadow: inset 0 1.5em 0em 0em #fac6c6,
        inset 0 -1.5em 0em 0em #fac6c6;
    color: #ff6b6b;
    transform: scaleX(1.3);
}

.main-container {
    display: flex;
    height: 80vh;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    background-color: #fac6c6;
}

.sidebar {
    width: 20vw;
    background-color: #ff6b6b;
    text-align: center;
    color: white;
}

.functions-title{
    color:#011c47;
    font-family: headingFont;
    font-size: 4vh;
}

.functions {
    background-color: #011c47;
    height: 60vh;
    margin-left: 10px;
    margin-right: 10px;
    padding-top: 2vh;
    padding-bottom: 2vh;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 15px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.and {
    background-color: #082757;
    height: 11.2vh;
    margin-bottom: 1vh;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    transition: transform 0.1s;
    width: 95%;
    overflow: hidden;
}

.or {
    background-color: #082757;
    height: 11.2vh;
    margin-bottom: 1vh;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 95%;
    transition: transform 0.1s;
    overflow: hidden;
}

.nand {
    background-color: #082757;
    height: 11.2vh;
    margin-bottom: 1vh;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 95%;
    transition: transform 0.1s;
    overflow: hidden;
}

.nor {
    background-color: #082757;
    height: 11.2vh;
    margin-bottom: 1vh;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 95%;
    transition: transform 0.1s;
    overflow: hidden;
}

.xor {
    background-color: #082757;
    height: 11.2vh;
    margin-bottom: 1vh;
    border-radius: 10px;
    margin-left: 5px;
    margin-right: 5px;
    width: 95%;
    transition: transform 0.1s;
    overflow: hidden;
}

.and:hover, .or:hover, .nand:hover, .nor:hover, .xor:hover{
    transform: scale(1.05);
}

.functionsText{
    font-family: headingFont;
    margin-top: 3.6vh;
    font-size: 4vh;
    color:#093375;
}

.functionsImage{
    height: 100%;
}

.simulation {
    text-align: center;
    padding: 20px;
    width: 80vw;
    border-radius: 10px;
}

.simulation-title {
    color: #fac6c6;
    font-family: headingFont;
    font-size: 5vh;
    display: inline-block;
    padding-bottom: 10px;
    padding-top: 10px;
    margin: 0 0 0 0;
}

.simulation-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 20px 20px 20px;
    background-color: #ffabab;
    border-radius: 10px;
}

.simulation-title-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 20px 20px 20px 20px;
}

.simulation-title-thing{
    background-color: #ff6b6b;
    font-family: headingFont;
    border: none;
    color: #fac6c6;
    width: 10vw;
    padding-top: 10px;
    padding-bottom: 10px;
}

.input-section{
    height: 100%;
    width: 20vw;
    height: 47vh;
}

.input-box1 {
    border-radius: 10px;
    background-color: #011c47;
    width: 90%;
    height: 16.45vh;
    margin-top: 4.7vh;
    margin-bottom: 2.35vh;
    align-items: center;
    justify-content: center;
    display: flex;
}

.input-box2 {
    border-radius: 10px;
    background-color: #011c47;
    width: 90%;
    height: 16.45vh;
    margin-top: 4.7vh;
    margin-bottom: 4.7vh;
    align-items: center;
    justify-content: center;
    display: flex;
}

.numberInput1{
    background-color: #082757;
    color: #093375;
    height: 50%;
    width: 20%;
    border-radius: 10px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.numberInput2{
    background-color: #082757;
    color: #093375;
    height: 50%;
    width: 20%;
    border-radius: 10px;
    margin-right: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

.switchInput{
    background-color: #082757;
    height: 50%;
    width: 50%;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 90%;
    height: 80%;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 10px;
    background-color: #011c47;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #011c47;
    -webkit-transition: .4s;
    transition: .4s;
    height: 100%;
    border-radius: 10px;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 78%;
    width: 35%;
    left: 7px;
    bottom: 11%;
    background-color: #082757;
    border-radius: 13px;
    -webkit-transition: .4s;
    transition: .4s;
}

.switchInput2{
    background-color: #082757;
    height: 50%;
    width: 50%;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* The switch - the box around the slider */
.switch2 {
    position: relative;
    display: inline-block;
    width: 90%;
    height: 80%;
}

.switch2 input {
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 10px;
    background-color: #011c47;
}

.slider2 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #011c47;
    -webkit-transition: .4s;
    transition: .4s;
    height: 100%;
    border-radius: 10px;
}
  
.slider2:before {
    position: absolute;
    content: "";
    height: 78%;
    width: 35%;
    left: 7px;
    bottom: 11%;
    background-color: #082757;
    border-radius: 13px;
    -webkit-transition: .4s;
    transition: .4s;
}
  
input:checked + .slider {
    background-color: #ff6b6bd6;
}
  
input:checked + .slider:before {
    -webkit-transform: translateX(155%);
    -ms-transform: translateX(155%);
    transform: translateX(155%);
}

input:checked + .slider2 {
    background-color: #ff6b6bd6;
}
  
input:checked + .slider2:before {
    -webkit-transform: translateX(155%);
    -ms-transform: translateX(155%);
    transform: translateX(155%);
}

.function-section{
    height: 100%;
    width: 20vw;
    height: 47vh;
}

.function-box {
    border-radius: 15px;
    background-color: #011c47;
    width: 100%;
    height: 40vh;
    margin-top: 3.5vh;
    margin-bottom: 3.5vh;
    align-items: center;
    justify-content: center;
    display: flex;
}

.function-box-inner {
    border-radius: 15px;
    background-color: #082757;
    width: 80%;
    height: 80%;
    align-items: center;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    display: flex;
}

.function-default-text{
    color: #093375;
}

.output-section{
    height: 100%;
    width: 20vw;
    height: 47vh;
    align-items: center;
    justify-content: center;
    display: flex;
}

.output-picture{
    height: 47vh;
}

.history{
    background-image: url(historyTexture.png);
    background-size: 900px 900px;
    background-repeat: repeat;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
}

.posterTitle{
    background-color: #ff6b6b;
    font-family: headingFont;
    border: none;
    color: #fac6c6;
    margin: 0 0 0 0;
}

.posterImage{
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    width: 80vw;
}
.footer{
    width: 100%;
    display: flex;
    color:#ff6b6b;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: headingFont;
}
/* Responsive layout adjustments */
@media (max-width: 1000px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .sidebar {
        width: 100%;
        height: auto;
        order: 2;
    }

    .simulation {
        width: 100%;
        padding: 10px;
        order: 1;
    }

    .simulation-container {
        flex-direction: column;
        gap: 20px;
    }

    .input-section, .function-section, .output-section {
        width: 100%;
        height: auto;
    }

    .function-box, .output-box {
        height: 30vh;
    }

    .functions {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 10px;
    }

    .functions > div {
        width: 45%;
        height: auto;
    }

    .functionsImage {
        height: auto;
        max-height: 10vh;
    }

    .navbar {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    .logo {
        height: 10vh;
        padding: 10px;
    }

    .title {
        font-size: 5vw;
        margin: 1vh 0;
    }

    .nav-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 10px;
        gap: 10px;
    }

    .nav-links button {
        font-size: 2.5vh;
        width: auto;
        padding: 0.5vh 2vw;
    }

    .simulation-title-thing {
        display: none;
    }

    .simulation-title {
        font-size: 4vh;
    }

    .numberInput1Text, .numberInput2Text {
        font-size: 3vh;
    }

    .posterImage {
        width: 95vw;
    }

    .title {
        font-size: 4vw;
        margin-left: 5vw;
    }
}

@media (max-width: 600px) {

    .title {
        font-size: 6vw;
    }

    .functions > div {
        width: 100%;
    }

    .function-default-text {
        font-size: 2vh;
        text-align: center;
    }

    .output-picture {
        height: auto;
        max-height: 25vh;
    }
}