
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: var(--font-regular);
}

a{
    text-decoration: none;
    color: inherit;
}

/* import local fonts */

@font-face {
    font-family: 'Montserrat';
    src: url('/assets/fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat-Medium';
    src: url('/assets/fonts/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('/assets/fonts/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 700;
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('/assets/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 600;
}

/* body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f0f0f0;
}

.model-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

model-viewer {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

button[slot="ar-button"] {
    background-color: white;
    border-radius: 4px;
    border: none;
    position: absolute;
    top: 16px;
    right: 16px;
}

#playAllBtn {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#playAllBtn:hover {
    background-color: #45a049;
} */

.page{
    min-height: 100dvh;
    width: 100vw;
}

#home-page{
    background-image: url('/assets/images/bg-home.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home__page_header{
    background-color: var(--blue);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    height: 40px;
}


.home__page_header a{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: white;
    width: 100%;
    height: 100%;
}

.home__page_header a::before{
    content: '';
    display: inline-block;
    width: 12px;
    height: 10px;
    background-image: url('./assets/images/heart.svg');
    background-size: cover;
}

.home__page_main{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    height: calc(100dvh - 40px);
}

.home__page_footer{
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
}

.home__page_text{
    color: white;
    text-align: center;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 40%;
}

.home__page_btn{
    color: white;
    background-color: var(--green);
    border: none;
    padding: 16px 24px;
    border-radius: 30px;
    font-family: var(--font-roboto);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.home__page_text h1{
    font-size: 24px;
    font-weight: 500;
}

.home__page_text h1 strong{
    font-size: 40px !important;
    font-weight: 700 !important;
    font-family: var(--font-medium);
}

.home__page_logo{
    height: 20%;
}

.home__page_btn_container{
    height: 10%;
}

.page_hide{
    display: none;
}

/* models page */

#models-page{
    background: var(--gradient);
}

.models__page_header{
    background-color: var(--blue);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
    font-size: 10px;
    height: 71px;
}

.return_home_btn{
    background: transparent;
    border: none;
    outline: none;
}

.unoc3{
    font-size: 14px;
}

.models__page_main{
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preview__model{
    background-color: var(--blue-light);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
    height: 170px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

.loading .loader {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
  pointer-events: none;
  opacity: 0.6;
}

model-viewer{
    width: 100%;
    border-radius: 8px;
    background-color: transparent;
    height: 170px;
    position: relative;
}

.preview__model_img{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview__title{
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    max-width: 50%;
}

.preview__model_img img{
    width: 95%;
    height: 95%;
    object-fit: scale-down;
}

.preview__model_info{
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.preview__model_title{
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin-right: 20px;
    font-family: var(--font-medium);
}

.preview__model_btn{
    background-color: var(--green);
    border: none;
    padding: 10px 14px;
    border-radius: 30px 0 0 30px;
    width: 100%;
    color: white;
    font-family: var(--font-roboto);
    font-size: 14px;
    font-weight: 600;
}

.preview__model_btn::before{
    content: '';
    display: inline-block;
    width: 15px;
    height: 10px;
    background-image: url('./assets/images/eye.svg');
    background-size: cover;
}



:root{
    --font-regular: 'Montserrat', sans-serif;
    --font-bold: 'Montserrat-Bold', sans-serif;
    --font-medium: 'Montserrat-Medium', sans-serif;
    --font-roboto: 'Roboto-Bold', sans-serif;
    --blue: #1768A5;
    --green: #74BD4C;
    --blue-light: #46C9F280;
    --gradient: transparent linear-gradient(180deg, #3EAEDA 0%, #1768A5 50%, #084676 100%) 0% 0% no-repeat padding-box;
}