﻿body {
    margin: 0;
    padding: 0;
    background-color: var(--seccondary-content-bg);
}
:root {
    --primary-red: #bd1e2c;
    --brown-text: #741128;
    --light-red: #EE879F;
    --light-bg: #bd1e2c;
    --dark-bg: #bd1e2c;
    --primary-content-bg: #FCBA12;
    --seccondary-content-bg: #ccffcc;
    --navbar-bg: rgba(224, 19, 0, 0.8);
    --footer-bg: #E01300;
    --green-border: #006600;
}

.main-font-normal {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}
.main-font-bold {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}
.montserrat-normal {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.hidden {
    display: none;
}

.upload-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

    .upload-button:hover {
        background-color: #0056b3;
    }
main {
    background-color: var(--seccondary-content-bg);
    margin-top: 100px;
    margin-bottom:100px;
}
.main-normal {
    background-color: var(--seccondary-content-bg);
    margin-top: 100px !important;
    margin-bottom: 70px;
}

.main-admin {
    margin-top: 10px !important;
    margin-bottom: 70px;
    padding: 30px 15px 80px 15px;
    background-color: white;
}
.nav-toggler {
    background-color: #ff471a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

    .nav-toggler:hover {
        background-color: #ff704d;
        border: 1px solid white;
    }

.nav-toggler-admin {
    background-color: #f9521a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

    .nav-toggler-admin:hover {
        background-color: #fa6938;
        border: 1px solid white;
    }
.div-nav-menu {
    border-radius: 0px 0px 30px 30px;
    margin-left: 80px;
}

.navbar {
    background-color: var(--navbar-bg);
    width: 85%;
    border-radius: 0px 0 10px 10px;
    margin: auto;
    font-size:18px;
}
@media(max-width:992px) {
    .navbar {
        width: 98%;
        font-size: 14px;
    }
}
.brand-logo{
    width:200px;
    padding-left:20px;
    padding-right:20px;
    padding-top:10px;
    padding-bottom:10px;
}
.admin-nav-link{
    font-size:18px;
}
.nav-span{
    margin:0px 10px;
    font-size:24px;
}



.section-odd {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    border-left: 8px;
    border-left-style: solid;
    border-left-color: var(--green-border);
    border-bottom-left-radius: 15px;
    border-top-left-radius: 15px;
    margin: 5px 0px;
    padding: 20px;
    vertical-align: central;
}
.section-even {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
    border-right: 8px;
    border-right-style: solid;
    border-right-color: var(--green-border);
    border-bottom-right-radius: 15px;
    border-top-right-radius: 15px;
    margin: 5px 0px;
    padding: 20px;
    text-align: end;
    vertical-align: central;
}
.section-img {
    border-radius: 15px;
    width:90%;
    box-shadow: 5px 5px 10px var(--primary-red);
    position:relative;
}
.section-box {
    margin: 35px 0px;
    border-radius: 35px;
    background-color: var(--seccondary-content-bg);
    box-shadow: 3px 3px 6px var(--light-bg);
    padding:20px;
    min-height:150px;
}

.section-title {
    font-family: "Montserrat", sans-serif;
}
.div-left {
    bottom: 10px;
    left: 50px;
}
.div-right {
    bottom: 10px;
    right: 50px;
}
.btn-right2 {
    background-color: darkgreen;
    color: white;
    height: 55px;
    width: 100px;
    border-radius: 10px;
    align-content: center;
    border: 3px solid lightblue;
}

.btn-right {
    background-color: var(--navbar-bg);
    color: white;
    height: 55px;
    width: 150px;
    border-radius: 10px;
    align-content: center;
    border:3px solid lightblue;
}
.btn-left {
    background-color: var(--navbar-bg);
    color: white;
    height: 55px;
    width: 150px;
    border-radius: 10px;
    align-content:center;
    border:3px solid lightblue;
}
.btn-left2 {
    background-color: darkgreen;
    color: white;
    height: 55px;
    width: 100px;
    border-radius: 10px;
    align-content: center;
    border: 3px solid lightblue;
}
.home-logo{
    height:160px;
}
.home-logo img{
    height:80%;
}
.nav-logo{
    height: 80px;
}
.nav-admin{
    background-color:transparent;
}

hr {
    color: var(--primary-red);
    border-top: 3.8px;
    width: 75%;
    margin: auto;
    margin-top: 25px;
}
.about-us {
    width: 70%;
    margin: auto;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-size: 18px;
}
.about-left{
    text-align:end;
    margin:0;
    padding:3px;
}
.about-right {
    margin: 0;
    padding: 3px;
}
.footer{
    background-color:var(--footer-bg);
    height:50px;
    border-start-start-radius:15px;
    border-start-end-radius:15px;
    width:90%;
    margin:auto;
    color:white;
    /*display:flex;*/
}

.prodname-box {
    border-radius: 10px;
    background: linear-gradient(to right, var(--green-border), var(--seccondary-content-bg));
    margin: 10px 50px 30px 0px;
    color: white;
    padding: 10px 20px;
    font-family: "Montserrat", sans-serif;
    font-weight:bold;
    font-style:italic;
    font-size:18px;
}
.prodname-box-right {
    border-radius: 10px;
    background: linear-gradient(to left, var(--green-border), var(--seccondary-content-bg));
    margin: 10px 0px 50px 0px;
    color: white;
    padding: 10px 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: bold;
    font-style: italic;
    text-align: right;
    font-size: 18px;
}
/*carousel*/
.partial-div {
    background: linear-gradient(to right, var(--brown-text), var(--seccondary-content-bg));
    border-radius: 10px;
    margin-top: 10px;
    padding: 10px 20px;
}
.partial-box {
    margin:0;
    padding:0;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size:20px;
    font-weight: bold;
    font-style: italic;
}
.admin-homepage-man {
    border-radius: 10px 10px 0px 0px;
    background: linear-gradient(to right, var(--brown-text), var(--seccondary-content-bg));
    width: 70%;
    color:white;
    padding:15px;
    margin: auto;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 28px;
}
.admin-homepage-sub {
    border-radius: 0px 0px 10px 10px;
    background: linear-gradient(to right, var(--brown-text), var(--seccondary-content-bg));
    width: 70%;
    margin: auto;
    color: white;
    padding: 10px;
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: italic;
    font-size: 20px;
}
.admin-cate-group {
    border-radius: 10px;
    width: 70%;
    margin: auto;
}
tr {
    vertical-align: middle;
    margin-left: 10px;
}
.prod-title {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-size: 20px;
    color: var(--brown-text);
}
.card {
    border-radius: 10px;
}
.combobox {
    font-weight: normal;
    font-size: 18px;
}
.project-title {
    margin: auto;
    font-family: "Montserrat", sans-serif;
    font-weight:bold;
    color: var(--brown-text);
    text-align:center;
    text-shadow:2px 2px 2px darkgrey;
    font-size:32px;
}
.project-box {
    margin: 35px 0px;
    background-color: var(--seccondary-content-bg);
    box-shadow: 3px 3px 6px var(--light-bg);
    padding: 20px;
    min-height: 150px;
}

input:read-only {
    background-color: lightsteelblue;
}
input[read-only]:focus  {
    background-color: lightsteelblue;
}
input.form-control[readonly]:focus {
    background-color: lightsteelblue;
    border-color: #ddd;
}
input.form-control[readonly] {
    background-color: lightsteelblue;
    color: #6c757d;
    border-color: #ddd;
}
@media(max-width:768px) {
    .footer {
        width: 98%;
    }

    .home-logo {
        height: 95px;
    }

    .main-admin {
        margin-top: 10px !important;
        margin-bottom: 70px;
        padding: 10px !important;
        margin:0;
        background-color: white;
    }
    main{
        margin:0 !important;
        padding:0 !important;
    }
    .admin-homepage-man, .admin-homepage-sub , .admin-cate-group{
        margin: 0;
        padding: 5px;
        width:100%;
    }
    .body-outline {
        background: linear-gradient(to bottom, darkgreen, #ccffcc );
        padding: 1px;
        border-radius: 5px 5px 0px 0px;
    }

    .body-box {
        background: linear-gradient(to bottom, white, #ccffcc );
        margin-bottom: 3px;
        margin-top: 8px;
        margin-left: 3px;
        margin-right: 3px;
    }

    .prod-box {
        background-color: transparent;
        align-items: center;
        height: fit-content;
        min-height: 550px;
    }

    .prod-bg {
        background-color: #80ff80;
    }

    .cate-title {
        font-family: Rockwell;
        font-size: 22px;
        background-image: linear-gradient(to right, darkgreen, lightgreen);
        margin: 0;
        padding: 10px 20px;
        color: white;
    }

    .img-col {
        display: flex;
        align-items: center;
        width: 40%;
    }

    .detail-col {
        width: 60%;
        font-size: 18px;
    }

    .detail-title {
        font-weight: bold;
        font-size: 25px;
        color: #006600;
        font-family: 'Roboto Slab';
        text-align: center;
        padding: 25px 25px 15px 25px;
    }

    .prod-label {
        font-family: Roboto;
        color: #006600;
    }

    .related-prod {
        padding: 10px;
        background-color: lightgreen;
        color: darkred;
    }

    .shadow-box {
        box-shadow: 2px 2px 8px darkgreen;
    }

    .image-previewer {
        position: relative;
        width: 90%; /* Giới hạn chiều ngang */
        height: 90%; /* Giới hạn chiều dọc */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden; /* Ẩn tràn */
        background-color: rgba(0, 0, 0, 0.8);
        border-radius: 10px;
    }

    .html-content {
        padding: 10px;
        border-left: 8px;
        border-right: 0;
        border-top: 0;
        border-bottom: 0;
        border-style: solid;
        border-color: green;
        border-radius: 8px;
        background-color: #e6ffe6;
    }

    .back-button {
        position: sticky;
        top: 80px;
        left: 30px;
        z-index: 1000;
        height: 45px;
        width: 120px;
    }
    /* Ảnh luôn vừa khung cả ngang và dọc */
    .preview-img {
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        max-width: 99%;
        max-height: 99%;
    }

    .nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        font-size: 2rem;
        padding: 0.5rem 1rem;
        cursor: pointer;
        z-index: 10;
        border-radius: 5px;
    }

        .nav-btn:hover {
            background-color: rgba(0, 0, 0, 0.7);
        }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    @media(max-width:768px) {
        .img-col {
            width: 98%;
        }

        .detail-col {
            width: 98%;
        }

        .prod-box {
            width: 100%;
        }
    }
}
