* {
    box-sizing: content-box;
}

body {
    background-color: black;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

.main-header {
    position: relative;
    z-index: 99;
    background-color: rgb(56, 55, 55);
    height: 10svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    padding: 3svh 0;
    font-size: 1.5svw;
}

hr {
    margin: 0;
    margin-bottom: 2svh;
    z-index: 100;
    position: relative;
}

h1 {
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

#header-image1 {
    width: 33.33%; /* Adjust the width as needed */
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin-right: 25px; /* Add space between the image and header text */
    margin-left: 15px;
}

#header-image2 {
    width: 33.33%; /* Adjust the width as needed */
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin-right: 25px; /* Add space between the image and header text */
    margin-left: 15px;
}

main {
    height: 80svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#img-container {
    /* z-index: -1; */
    height: 100%;
    width: 50svw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#pika {
    position: absolute;
    z-index: 1;
    background-color: transparent;
    height: 100%;
    /* width: 100%; */
    /* right: 0%; */
    /* translate: -50vw; */
    /* left: 100%; */
    box-sizing: border-box;
    max-height: 100%;
    object-fit: contain;
}

.form-container {
    position: relative;
    z-index: 99;
    height: 80vh;
    width: 50svw;
    display: flex;
    justify-content: center;
    align-items: center;
}

form {
    background-color: rgb(56, 56, 56);
    border-radius: 10px;
    height: 70%;
    overflow: hidden;
    width: 60%;
    font-size: 1.4svw;
    text-wrap: nowrap;
    box-shadow: 0px 0px 200px rgba(0, 51, 255, 0.5);
}

.form-header {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #063FA7;
    border-bottom: 0.5svh solid #031e4f;
}

h2 {
    font-size: 2.0svw;
}

.selectionTabs {
    background-color: #0074d9;
    height: 10%;
    overflow: hidden;
    color: white;
    display: flex;
    justify-content:space-around;
    align-items: center;
}

input[type="radio"] {
    display: none;
}

.selectionTabs > label {
    width: 33.33%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 0.5svh solid;
    cursor: pointer;
}

label[for="slicing"] {
    border-right: 0.2svw solid;
} 

label[for="advanced"] {
    border-left: 0.2svw solid;
} 

input[type="radio"]:checked+label {
    font-weight: bold;
    background-color: #063FA7;
} 

.form-content {
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    height: 100%;
    justify-content: unset;
}

#file-input {
    height: 26.667%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

input[type="file"] {
    display: none;
}

button {
    box-sizing: border-box;
}

.custom-file-upload, button[type="button"] {
    overflow: hidden;
    padding: 0.5svh 1svw;
    font-size: 1.2svw;
    text-align: center;
    height: 4svh;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    display: inline-block;
    cursor: pointer;
} 

.custom-file-upload:hover, #bluetooth:hover, #reset:hover, #download:hover {
    background-color: #cbcbcb;
    border: 1px solid rgb(74, 74, 74);
}

.custom-file-upload:active, #bluetooth:active, #reset:active, #download:active {
    background-color: #898989;
    border: 2px solid black;
}

#ranges {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    /* gap: 2svw; */
    height: 26.667%;
    width: 100%;
    /* padding: 0 1.2svw; */
    /* margin: 0 2.5svw; */
}

#resolution {
    width: 50%;
}

#submit {
    height: 26.667%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#VoxelButton, #PrintButton {
    background-color: #0074d9;
    height: 6svh;
    width: auto;
    padding: 0 1.5svw;
    /* font-size: 2.5svw; */
    color: #fff;
    border-radius: 5px;
    font-weight: bolder;
    cursor: pointer;
    border: none;
}

#VoxelButton:hover {
    background-color: #015eb0;
    border: 1px solid gray;
}

#VoxelButton:active {
    background-color: #003c70;
    border: 2px solid black;
}

#buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-content.third {
    max-height: 80%;
    margin-bottom: 15svh;
    scrollbar-width: thin;
    scrollbar-color: black transparent;
    overflow-y: scroll;
}

.labelI {
    background-color: transparent;
    width: 2.5svw;
    font-weight: bold;
    font-size: 1.2svw;
    /* font-size: large; */
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

/* #bluetooth {
    overflow: hidden;
    padding: 0.5svh 1svw;
    font-size: 1.2svw;
    text-align: center;
    height: 4svh;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    display: inline-block;
    cursor: pointer;
} */

select {
    overflow: hidden;
    padding: 0.25svh 0.5svw;
    font-size: 0.8svw;
    text-align: center;
    height: 2.5svh;
    border: none;
    background-color: #ffffff;
    display: inline-block;
    cursor: pointer;
}

/* #reset, #download {
    overflow: hidden;
    padding: 0.25svh 0.5svw;
    font-size: 0.8svw;
    text-align: center;
    height: 2.5svh;
    border: none;
    border-radius: 5px;
    background-color: #ffffff;
    display: inline-block;
    cursor: pointer;
} */

@media only screen and (max-width: 1020px) and (orientation: portrait) {
    body {
        width: 100svw;
        height: 100svh;
        overflow: hidden;
    }
    
    main {
        flex-direction: column;
        gap: 3svh;
        overflow: hidden;
        /* overflow-x: hidden; */ 
    }

    #img-container {
        height: 40svh;
        width: 100svw;
    }

    #pika {
        height: 40svh;
        width: auto;
        max-width: 90svw;
        object-fit: contain;
        border: none;
    }

    h2 {
        font-size: 2.5svw;
    }

    .form-container {
        height: 35svh;
        width: 70svw;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    form {
        font-size: 2.5svw;
        height: 35svh;
        width: 100%;
    }

    .custom-file-upload, #bluetooth, #reset, #download {
        padding: 0.5svh 1svw;
        font-size: 2.5svw;
        height: 2svh;
    }

    #VoxelButton, #PrintButton {
        height: 3.5svh;
        padding: 0 5.5svw;
        font-size: 2.5svw;
    }

    .labelI {
        background-color: transparent;
        width: 5svw;
        font-weight: bold;
        font-size: 2.5svw;
        /* font-size: large; */
    }

    /* #reset, #download {
        overflow: hidden;
        padding: 0 2.5svw;
        font-size: 2.5svw;
        text-align: center;
        height: 2.5svh;
        border: 1px solid black;
        border-radius: 5px;
        background-color: #ffffff;
        display: inline-block;
        cursor: pointer;
    } */

    select {
        overflow: hidden;
        padding: 0.25svh 0.5svw;
        font-size: 2.5svw;
        text-align: center;
        height: 2.5svh;
        border: none;
        background-color: #ffffff;
        display: inline-block;
        cursor: pointer;
    }

    .custom-file-upload, #bluetooth, #reset, #download {
        overflow: hidden;
        padding: 0.75svh 2svw;
        font-size: 2.5svw;
        text-align: center;
        height: fit-content;
        border: none;
        border-radius: 5px;
        background-color: #ffffff;
        display: inline-block;
        cursor: pointer;
    }
}
