@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 800;
    font-style: bold;
    font-display: swap;
}

:root {
    --color-first-category: #ff8f77;
    --color-second-category: #8bbb46;
    --color-third-category: #54b5db;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background: #f9f9f9;
    font-family: Inter, sans-serif;
    user-select: none;
}

button {
    padding: 10px 20px;
    margin: 20px 0;
    font-size: 16px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    background-color: #4998ff;
    color: white;
    transition: background-color 0.2s ease;
    letter-spacing: 2px;
}

button:hover {
    background-color: #0a519e;
}

button img {
    width: 15px;
    margin-right: 20px;
}

.transparent {
    opacity: 0.1;
    pointer-events: none;
}

.content {
    width: 100%;
    max-width: 1000px;
    padding: 0 1rem;
}

#headline {
    text-align: center;
    margin: 0;
    color: #755a08;
}

#subtitle {
    text-align: center;
    color: #c4a548;
    font-size: 20px;
    font-weight: normal;
    margin: 13px auto 35px auto;
}

.main-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid #e6c16a;
    border-radius: 28px;
    background: linear-gradient(35deg, #fffce9, #fff1d1);
}

#left-container {
    width: 500px;
}

#content-container {
    display: flex;
    gap: 33px;
    width: 100%;
    justify-content: center;
}

.sub-container {
    padding-top: 20px;
    text-align: center;
}

.container-head {
    font-weight: bold;
    font-size: 21px;
    margin: 0 auto 5px auto;
    color: #513e07;
}

.description {
    text-align: center;
    display: inline-block;
    color: #73580a;
}

.sub-sub-container {
    margin-top: 20px;
}

#data-container {
    display: flex;
}

#imgs-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    width: 500px;
    height: 500px;
    position: relative;
}

.img-data {
    position: relative;
    border: 1px solid #e1ad0b;
    cursor: pointer;
    display: none;
    padding: 5px;
    background-color: white;
    width: 98px;
    height: 98px;
    box-sizing: border-box;
    border-radius: 15px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.img-data:not(.hidden) {
    display: block;
}

.img-data.selected {
    border: 2px solid #007bff;
    padding: 4px;
}

.img-data img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    user-drag: none;
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#right-wrapper {
    display: flex;
    flex-direction: column;
    width: 350px;
    gap: 33px;
}

.selected-category-btn {
    color: white !important;
}

.category-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.img-data.selected .category-label {
    opacity: 1;
}

#data-metrics {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 15px 0 30px 0;
    width: 100%;
    gap: 15px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin-bottom: 15px;
}

.category {
    display: flex;
    gap: 25px;
    align-items: center;
}

.category-btn {
    background-color: white;
    border: 2px solid transparent;
    border-radius: 4px;
    width: 150px;
    margin: 0;
    transition: background-color 0.3s, border-color 0.3s;
}

#category-1-btn {
    border-color: var(--color-first-category);
    color: var(--color-first-category);
}

#category-2-btn {
    border-color: var(--color-second-category);
    color: var(--color-second-category);
}

#category-3-btn {
    border-color: var(--color-third-category);
    color: var(--color-third-category);
}

.data-metrics-label {
    text-align: center;
    margin: 0;
}

#next-data-btn {
    width: 220px;
    height: 50px;
    border-radius: 100px;
    background-color: #bd9107;
}

#training-btn-container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex-grow: 1;
}

#training-btn-container p{
    margin: 0;
}

#training-btn {
    width: 100%;
    height: 66px;
    margin: 0;
    border-radius: 100px;
    background: linear-gradient(150deg, #77b705, #c6b000);
}

.dialog-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.856);
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.dialog-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 50px;
    height: fit-content;
    width: 400px;
    border: 1px solid #e6c16a;
    border-radius: 28px;
    background: linear-gradient(35deg, #fffce9, #fff1d1);
    box-shadow: 7px 7px 5px -2px #8a650d24;
}

#training-label {
    margin: 0 0 25px 0;
}

#training-progress-container {
    width: 100%;
    height: 25px;
    background-color: #ececec;
    border-radius: 100px;
    overflow: hidden;
}

#training-progress {
    width: 0%;
    height: 30px;
    background-color: #369ad4;
}

#training-progress-metric {
    margin: 15px 0 0 0;
}

#close-container {
    display: flex;
    justify-content: end;
    width: 100%;
    margin: -10px -60px 0 0;
}

#close-btn {
    height: 30px;
    cursor: pointer;
}

#test-results {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

#test-image-block
{
    display: flex;
    justify-content: end;
    width: 200px;
}

#test-image {
    height: 128px;
    width: 128px;
    padding: 5px;
    border: 2px solid #fdc968;
    border-radius: 15px;
    background-color: white;
}

#test-message {
    background-color: white;
    border-radius: 10px;
    border: 1px solid #d0d0d0;
    padding: 12px;
    width: calc(100% - 40px);
    height: 64px;
    margin: 20px 0 0 0;
}

#prediction-block {
    width: 200px;
}

#prediction-head {
    font-size: 18px;
    font-weight: bold;
}

#prediction-text {
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

#test-btn {
    width: 250px;
    height: 50px;
    border-radius: 100px;
    background-color: #bd9107;
}

#smartphone-container {
    position: fixed;
    width: 100%;
    height: 100%;
    border: 0;
}