@import url("./colors.css");

* {
    font-size: 1rem;
    font-family: "Roboto Slab", serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-margin-top: 20px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-color);
    background-color: var(--main-color);
}

::selection {
    color: var(--text-color);
    background: var(--accent-color);
}

textarea {
    resize: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bolder;
}

h1 {
    font-size: 3.5em;
    line-height: 1.5em;
    margin-bottom: 16px;
}

h2 {
    font-size: 2.5em;
    line-height: 1.4em;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.75em;
    line-height: 1.3em;
    margin-bottom: 14px;
}

h4 {
    font-size: 1.5em;
    line-height: 1.3em;
    margin-bottom: 12px;
}

h5 {
    font-size: 1.25em;
    line-height: 1.2em;
    margin-bottom: 10px;
}

h6 {
    font-size: 1.1em;
    line-height: 1.2em;
    margin-bottom: 8px;
}

p {
    color: var(--text-color);
    font-size: 1em;
    line-height: 1.5em;
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

a:hover {
    text-decoration: underline;
    color: var(--hover-color);
    text-decoration-color: var(--hover-color);
}

pre {
    font-family: "Roboto Slab", serif;
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-color);
}

pre p {
    margin-bottom: 8px;
}

.btn-primary {
    color: var(--main-color) !important;
    background-color: var(--accent-color) !important;
    transition: all 0.5s ease;
}

.btn-primary:hover {
    transform: scale(1.01);
    filter: opacity(0.75);
}

.full-height {
    /* monitor height - footer height - margin top - margin bottom - random number of pixel for more beautiful page view */
    min-height: calc(100dvh - 189px - 1rem - 1rem - 35px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 960px) {
    .full-height {
        margin-top: 95px !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2.2em;
    }

    h3 {
        font-size: 1.5em;
    }

    h4 {
        font-size: 1.3em;
    }

    h5 {
        font-size: 1.1em;
    }

    h6 {
        font-size: 1em;
    }
}
.navbar {
    color: var(--text-color) !important;
    background-color: var(--main-color) !important;
    box-shadow: 0 1px 10px var(--disable-color);
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: start;
    font-weight: bolder;
    transition: all 0.5s ease;
}

.navbar-brand img {
    width: 36px;
    margin-right: 8px;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.025);
}

.nav-item.active .nav-link {
    font-weight: bold;
    text-decoration: underline;
    color: var(--accent-color) !important;
    text-underline-offset: 4px;
}

.nav-link:hover {
    text-decoration: underline;
    color: var(--hover-color) !important;
    text-underline-offset: 4px;
}
.example-container {
    margin-top: 95px !important;
}

.example-container p {
    width: 100%;
    text-align: start;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: all .5s ease;
}

.card-img-top:hover {
    filter: opacity(0.8);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    flex-grow: 1;
    white-space: pre-wrap;
}

.card-view-all {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background-color: var(--accent-color);
    transition: all 0.5s ease;
    padding: 24px 16px;
    cursor: pointer;
}

.card-view-all h4 {
    font-size: 1.5rem;
    font-weight: bolder;
    color: var(--main-color);
}

.card-view-all a {
    text-decoration: none !important;
}

.card-view-all:hover {
    transform: scale(1.025);
    text-decoration: none !important;
}
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: var(--main-color);
    cursor: pointer;
    transition: all .5s ease;
}

.image-modal-close:hover {
    transform: scale(1.1);
    color: var(--second-color);
}
.contact-modal-container {
    display: none;
}

.contact-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-modal-content {
    max-width: 600px;
    width: 90%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--main-color);
    transition: 0.3s;
}

.contact-modal-close:hover {
    color: var(--second-color);
    transform: scale(1.1);
}

.submit-result {
    visibility: hidden;
    transition: visibility 0.5s, opacity 0.5s;
}

.submit-result.contact-success {
    visibility: visible;
    opacity: 1;
    color: #28a745;
}

.submit-result.contact-error {
    visibility: visible;
    opacity: 1;
    color: #dc3545;
}
.contact-button {
    position: fixed;
    bottom: 64px;
    right: 24px;
    font-size: 16px;
    padding: 12px 20px;
    border-radius: 25px;
    border: 0.5px solid var(--main-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.contact-button img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.contact-button:hover {
    transform: scale(1.05);
    border: 0.5px solid var(--main-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-button:active {
    border: 0.5px solid var(--main-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-button:focus {
    border: 0.5px solid var(--main-color) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 720px) {
    .contact-button {
        padding: 16px;
        border-radius: 100%;
    }

    .contact-button span {
        display: none;
    }

    .contact-button img {
        margin-right: 0;
    }
}
.footer-container {
    background-color: var(--accent-color);
}

.footer-wrap {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.footer-wrap p,
.footer-wrap a {
    color: var(--main-color);
}

.footer-wrap a {
    text-decoration: underline;
}