* {
    font-family: Cruinn;
}

/* Text */

@font-face {
    font-family: Cruinn;
    src: url(cruinn/Cruinn_Regular.ttf);
  }

i {
    font-weight: 200;
}



/* Headers */
.nn-header1{
    font-size: 45px;
}

.nav-bar1{
    text-align: center;
    width: 100%;
    height: fit-content;
    background-color: rgba(236, 236, 236, 0.25);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0%;
    z-index: 1000;
    transition: all 1s ease-in-out;
    border-bottom-left-radius: 25px; border-bottom-right-radius: 25px;
}

/* Btn Nav Bar Styles */
.nav-bar1-btns1 {
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-left-radius: 25px; border-bottom-right-radius: 25px;
}

/* Horizontal Nav */
.nav-bar1-btns1 nav {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    border-bottom-left-radius: 25px; border-bottom-right-radius: 25px;
}

.nav-bar1-btns1 nav a {
    text-decoration: none;
    margin: 10px;
}

.nav-bar1-btns1 .btn-nn1 {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 25px;
}

.nav-bar1-btns1 .btn-nn1:hover {
background-color: rgba(0, 0, 0, 0);
color: black;
border: 1px solid black;
}

/* Form Styles */

/* Form: Kj - kCal, kCal - Kj */
input, select, option{
    border: 1px solid rgba(0, 0, 0, 1);
    border-radius: 5px;
    transition: all .5s ease-in-out;
}

#kilojoule-kcal{
    scale: 200%;
    width: fit-content;
    height: auto;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    margin: 0 auto;
    transform: translateY(25%);
    border-radius: 25px;
    border: 1px solid black;
    transition: all 1s ease-in-out, height 1s ease-in-out;
}
#kilojoule-kcal:hover{
    backdrop-filter: blur(15px);
}

.kjkc-table{
    transition: all 1s ease-in-out;
    margin: 0 auto;
}

#result-kjkc {
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transform: translateY(25%);
    transition: all 1s ease-in-out;
}

/* Button Styles */
.btn-nn1{
    background-color: rgba(0, 0, 0, 1);
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0);
    color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(2px);
    transition: all .5s ease-in-out;
    text-align: center;
    
}
.btn-nn1:hover{
    background-color: rgba(255, 255, 255, 0.75);
    border-radius: 25px;
    border: 1px solid rgb(0, 0, 0);
    color: rgb(0, 0, 0);
    backdrop-filter: blur(15px);
}




/* Responsive CSS */
footer{
    display: none;
}

#navbar-btns-1-id{
    display: flex;
}

/* Small */
@media (max-width: 750px) {
    
    #kilojoule-kcal{
        scale: 105%;
        transform: translateY(-15%);
    }

    #navbar-btns-1-id{
        display: none;
    }

    footer{
        display: flex;
        scale: 50%;
    }

}

@media (max-width: 450px) {
    
    #kilojoule-kcal{
        scale: 100%;
        transform: translateX(-15%);
    }

    #kcal-sect{
        transform: translateX(44%) translateY(-25%);
    }

    #navbar-btns-1-id{
        display: none;
    }

    footer{
        display: flex;
        scale: 75%;
    }

    body, main{
        overflow-x: hidden;
    }

}