@font-face {
    font-family: 'Argandir';
    src: url('https://storage.googleapis.com/morrow-store-media/static/fonts/Agrandir-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Argandir', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    height: 100vh;
    margin: 0;
    background-image: url('https://storage.googleapis.com/morrow-store-media/images/morrow_background.jpeg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.container {
    background-color: rgba(15, 17, 19, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    color: #fff;
    margin: 0;
    height: 90vh;
    vertical-align: middle;
    display: flex !important;
    flex-direction: column;
    padding: 0;
}

.container-data {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
    justify-content: center;
}

.container h2 {
    text-align: center;
    font-family: 'Argandir', sans-serif;
    font-size: 30px;
    margin-bottom: 20px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    background-color: #0C0C0CFF;
    height: 50px;
    padding: 10px;
    top: 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.user-info .username {
    font-size: 16px;
}

.logout {
    background: url('https://storage.googleapis.com/morrow-store-media/images/ico-logout.svg');
    background-size: cover;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
}

.back-button {
    width: 30px;
    height: 30px;
    display: block;
    background: url('https://storage.googleapis.com/morrow-store-media/images/ico-back.svg');
    background-size: cover;
}

.container .logo {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.container .logo img {
    height: 20px;
    filter: invert(100%);
}

.frames-container {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.frame-details {
    text-align: center;
}

.container .logo {
    margin-top: 40px;
    text-align: center;
    margin-bottom: 20px;
}

.container .logo img {
    height: 20px;
    filter: invert(100%);
}

.frame-details {
    text-align: center;
}

.frame-details img {
    width: 250px;
    height: auto;
    border-radius: 15px;
    aspect-ratio: 1 / 0.3;
    object-fit: cover;
}

.frame-details h3 {
    margin-top: 10px;
    font-size: 24px;
    font-family: 'Yantramanav', sans-serif;
}

.color-options {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin: 0 10px;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative; /* Necessary for positioning the tooltip */
}

.color-circle:hover {
    border: 2px solid #0e623b;
}

/* Tooltip styling */
.color-circle:hover::after {
    content: attr(title); /* Using the title attribute for the tooltip text */
    position: absolute;
    bottom: 100%; /* Position above the circle */
    left: 50%;
    transform: translateX(-50%);
    background-color: #000; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 5px;
    border-radius: 3px;
    white-space: nowrap;
    z-index: 1;
    opacity: 0.8;
}

.color-circle.selected {
    border: 2px solid #0e623b;
}

.form-container {
    width: 100%;
}

.check-buttons {
    display: flex;
    justify-content: flex-end;
}

.check-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: #0e623b;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-family: 'Yantramanav', sans-serif;
    transition: background-color 0.3s;
}

.check-buttons button:hover {
    background-color: #0e623b;
}

tr th {
    width: 10%;
    padding: 2px;
}

tr td:nth-child(2) {
    width: 40%;
    padding: 2px;
}

tr td:nth-child(3) {
    width: 40%;
    padding: 2px;
}

td .select2 {
    height: 100%;
}

td {
    vertical-align: middle !important;
    padding: 0 10px !important;
}

th {
    text-align: center;
}

/* LOGIN FORM */
.login-container {
    background-color: rgba(15, 17, 19, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 40%;
    color: #fff;
}
.login-container h2 {
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Argandir', sans-serif;
    font-size: 30px;
}
.login-container form {
    display: flex;
    flex-direction: column;
}
.login-container form input {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Argandir', sans-serif;
    color: #0F1113;
}
.login-container form button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #0e623b;
    color: white;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Argandir', sans-serif;
}
.login-container form button:hover {
    background-color: #0e623b;
}
.login-container .forgot-password {
    margin-top: 10px;
    text-align: center;
    color: #ffffff;
    cursor: pointer;
}
.login-container .forgot-password:hover {
    color: #155bb5;
}
.login-container .logo {
    margin-top: 20px;
    text-align: center;
}
.login-container .logo img {
    height: 20px;
    filter: invert(100%);
}

.frames-container h2 {
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Argandir', sans-serif;
    font-size: 30px;
}
.frames-list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    flex-direction: row;
    max-height: 93%;
}
.frame-card-container {
    width: 33.3%;
    padding: 20px;
    border: 2px solid rgba(0, 0, 0, 0);
}
.frame-card-container:hover {
    border: 2px solid #0e623b;
}
.frame-card {
    background-color: #1f1f1f;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    text-decoration: none !important;
    color: inherit;
}
.frame-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 1 / 0.3;
    object-fit: cover;
}
.frame-card h3 {
    margin-top: 10px;
    font-size: 20px;
    font-family: 'Argandir', sans-serif;
}
.frame-card p {
    margin-top: 5px;
    font-size: 16px;
    color: #aaa;
}
.frame-card {
    color: inherit !important;
}

.checkbc-form {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.frame-left-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 30%;
}

.warranty-information {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frame-right-side {
    flex: 1;
}

.checkout-container {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.checkout-container form {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 5px;
}

.checkout-container .check-buttons {
    margin-top: 32px;
}

@media (max-width: 600px) {

    body {
        padding: 10px;
    }

    .container {
        width: 100%;
    }

    .frame-card-container {
        width: 50%;
    }

    .table td, .table th {
        padding: .75rem 0;
    }

    .table {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .table tr {
        display: flex;
        flex-direction: row;
    }

    .table th {
        flex: 1;
    }

    .table td {
        flex: 1;
        padding: 0 2px !important;
    }

    .login-container {
        width: 100%;
    }

    .checkbc-form {
        flex-direction: column;
    }

    .container-data {
        justify-content: unset;
    }

    td .select2 {
        margin-top: 10px;
    }

    th[scope="row"], .col-1 {
        max-width: 60px;
    }

    .frame-card-container {
        padding: 6px;
    }

}
