
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

body {
    font-family: 'Roboto', sans-serif;
}

body.waiting * {
    cursor: wait;
}

header {
    background-color: #161A1C;
    border-bottom: 5px solid #19938D;
    color: white;
    display: flex;
    padding: 2rem; 
    justify-content: space-between;
    font-family: 'Roboto', sans-serif;
}

a {
    color:#c99900;
}

select {
    padding: 0.5rem;
    border-radius: 5px;
}

iframe {
    height: 100%;
    width: 100%;
}

button#cad_download_btn.download_cad:enabled:hover {
    background-color:#fcca26 !important; 
}

#cadLink {
    display: flex;
    gap: 0.5rem;
    content: '\200b';
}

.content {
    display: flex;
    gap: 2rem;
    margin: 5%;
}

.flex-btn {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.optionsContainer {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.column {
    width: 100%;
}

.selection-path-container {
    display: flex;
    flex-direction: column;
    height: 18vh;
}



#cad_download_btn {
    background-color: #c99900;
    padding: 0.5rem;
    border-radius: 5px;
    border: none;
    transition: all 0.3s ease-in-out;
    color:black;
    font-weight: bolder;
    cursor: pointer;
}


#cadCheckbox, #cubeCheckbox {
    accent-color: #c99900;
}

#panel_3d {
    width: 100%;
    display: flex;
}

#ifCad3d, #jsonContainer {
    position: relative;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border-radius: 10px;
    width: 100%;
  }

#finalButton {
    padding: 1rem;
    background-color: #c99900;
    border-radius: 10px;
    border: none;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    font-weight: bolder;
}

.disabled#finalButton, .disabled#cad_download_btn {
    background-color: #dbdbdb;
    color:#828282;
    cursor: default;
    user-select: none;
    pointer-events: none;
}

.disabled#finalButton:hover, .disabled#cad_download_btn:hover {
    background-color: #dbdbdb;
    color:#828282;
    cursor: default;
    user-select: none;
}

#fullscreenBtn {
position: absolute;
top: 1rem;
left: 1rem;
z-index: 100;
background-color: #c99900;
color: #fff;
border: none;
height: 36px;
width: 36px !important;
display: flex;
justify-content: center;
margin: auto;
font-size: 20px !important;
align-items: center;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s ease-in-out;
} 

#fullscreenBtn:hover, #finalButton:hover {
    background-color: #fcca26;
}

#cubeViewer {
    display: block;
    position: relative;
}

#cadLink p {
    margin: 0;
}

#cubeViewer p {
    color: gray;
}

#cadDownloadContainer {
    display: grid;
    opacity: 1;
    user-select: auto;
    pointer-events: auto;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border-radius: 10px;
    row-gap: 1rem;
}

#cadDownloadContainer p {
    margin-top: 0%;
}

form, #jsonContainer {
    display: flex;
    flex-direction: column;
    height: 50vh;
}

#jsonContainer textarea, #tokenTextarea {
    display: flex;
    height: 100%;
    align-items: flex-start;
    flex-wrap: wrap;
    resize: none;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15);
    border-radius: 10px 10px 0 0;
    border: none;
    padding: 1rem;
}


#partFamilyCode {
    display: flex;
    height: 20% !important;
    align-items: flex-start;
    flex-wrap: wrap;
    resize: none;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15);
    border: none;
    border-top: solid 1px #dbdbdb !important;
    border-radius: 0px !important;
    padding: 1rem;
}

#jsonContainer textarea:focus, #selectionPathResult:focus, #partFamilyCode:focus, #cad-format:focus, #tokenTextarea:focus {
    outline-color:#c99900;
}

#jsonContainer button, #saveTokenButton {
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    height: 5rem;
    border: none;
    border-radius: 0 0 10px 10px;
    background-color: #c99900;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.5rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Roboto', sans-serif;
}

#jsonContainer button:hover, #saveTokenButton:hover {
    background-color: #fcca26;
}

#cad_download_link {
    opacity : 1;
    user-select : auto;
    pointer-events : auto;
    margin-top : 1rem;
    margin-bottom : 1rem;
  }

#checkboxContainer {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border-radius: 10px;
}

#checkboxContainer input {
    height: 20px;
    width: 20px;
}

#checkboxContainer label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#cubeViewer {
    display: grid;
    justify-items: center;
    height: 100%;
}

#cubeViewer p {
    align-items: center;
    display: grid;
}

#selectionPathResult {
    display: flex;
    height: 50%;
    margin-top: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    resize: none;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border-radius: 10px 10px 0 0;
    border: none;
    padding: 1rem;
}


#selectionPathButton {
    width: 100%;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    height: 4rem;
    border: none;
    border-radius: 0 0 10px 10px;
    background-color: #c99900;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 0.2rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Roboto', sans-serif;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#selectionPathButton:hover, #tokenGenerator:hover {
    background-color: #fcca26;
}

#tokenGenerator {
    width: 10%;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border: none;
    border-radius: 10px;
    background-color: #c99900;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.2rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-family: 'Roboto', sans-serif;
}


#tokenInput {
    display: none;
    height: 0px;
    width: 0px;
    position: absolute;
    top: 0;
    right: 0;
}

#tokenInput.show {
    display: grid;
    position: absolute;
    height: 50px;
    width: 50px;
    top: 127px;
    right: 322px;
    z-index: 100;
}


#tokenTextarea {
    height: 300px;
    width: 300px;
}

#saveTokenButton {
    height: 3rem;
    letter-spacing: 0cap;
}

.loader {
    display: none;
    position: relative;
    width: 10px;
    height: 10px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid;
    border-color: #c99900 #fcca26;
    animation: l1 1s infinite;
  }
  @keyframes l1 {to{transform: rotate(.5turn)}}


  #loaderID.show, #loaderID2.show {
    display: inline;
  }

  .loader-cont, .loader-cont2 {
    display: flex;
    gap: 1rem;
  }

  .loader-cont2 {
    align-items: center;
  }

  
#symbolNumber {
    position: absolute;
    right: 0;
    align-self: center;
    margin: 0;
    margin-right: 10px;
}

#errorMessageCont {
    opacity: 0;
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    padding-top: 3%;
    right: 0;
    z-index: 90;
    margin-right: 5%;
    padding-bottom: 3%;
    margin-top: 5%;
    width: 70%;
    background-color: #19938d63;
    box-shadow: 0 1px 3px rgba(40, 54, 84, 0.15), 0 0 20px rgba(40, 54, 84, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

#errorMessageCont.show {
   opacity: 1;
}

#errorMessage {
    width: 90%;
    text-align: center;
}
