@import 'css/window.css';
@import 'css/guestbook.css';

:root {
    /* variables for styling goes here */
    --body-background: url('media/Background.jpg');
    --header-background: #5e4e8c;
    --navigation-background: #532ab9;
    --navigation-color: #ED64F5;
    --navigation-hover-color: #a49cba;
    /* Bootstrap variables */
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;

    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-font-size: 1rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
    --bs-body-color: #212529;
    --bs-body-color-rgb: 33, 37, 41;

    --bs-secondary-color: rgba(33, 37, 41, 0.75);
    --bs-secondary-bg: #e9ecef;
    --bs-tertiary-color: rgba(33, 37, 41, 0.5);
    --bs-tertiary-bg: #f8f9fa;
    --bs-heading-color: inherit;
    --bs-link-color: #0d6efd;
    --bs-link-decoration: underline;
    --bs-link-hover-color: #0a58ca;
    --bs-code-color: #d63384;
    --bs-highlight-color: #212529;
    --bs-highlight-bg: #fff3cd;
    --bs-border-width: 1px;
    --bs-border-style: solid;
    --bs-border-color: #dee2e6;
    --bs-border-radius-pill: 50rem;
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(13, 110, 253, 0.25);
    --bs-form-valid-color: #198754;
}

body {
    /* Main css for the body  */
    margin: 0;
    background: var(--body-background);
    height: 100vh;
    overflow: hidden;
}

/* Styling for the menu and header */
#header {
    width: 100%;
    background-color: var(--header-background);
    height: 150px;
    background-image: var(--header-image);
    background-size: 100%;
}

/* navigation section!! */
#navbar {
    height: 40px;
    background-color: var(--navigation-background);
    width: 100%;
}

#navbar ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style-type: none;
    justify-content: space-evenly;
}

#navbar li {
    padding-top: 10px;
}

/* navigation links*/
#navbar li a {
    color: var(--navigation-color);
    font-weight: 800;
    text-decoration: none;
}

/* navigation link when a link is hovered over */
#navbar li a:hover {
    color: var(--navigation-hover-color);
    text-decoration: underline;
}

.class {
    /* Styling for a class item (replace class with the class that you want to change, like header, content, footer) */
}

#id {
    /* Styling for an item with an id (replace id with the id you used in the html) */
}

.background {
    position: relative;
    pointer-events: none;
    height: 100vh;
}

.flowers-left {
    position: absolute;
    bottom: 0;
    left: 15px;
}

.flowers-right {
    position: absolute;
    bottom: 0;
    right: 0;


}

@media screen and (max-width: 960px) {
    .flowers-right {
        display: none;
    }
}

.taskbar {
    position: fixed;
    background: #EFBFEE;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 42px;

    background: #EFBFEE;

    border-top: 2px solid #ffffff;

    display: flex;
    align-items: center;

    padding: 2px;

    z-index: 99999;

    font-family: Tahoma, sans-serif;
    font-size: 12px;

    .start-button {
        height: 100%;

        min-width: 90px;

        display: flex;
        align-items: center;
        gap: 8px;

        padding: 0 12px;

        background: #EFBFEE;

        border-top: 2px solid #ffffff;
        border-left: 2px solid #ffffff;

        border-right: 2px solid #404040;
        border-bottom: 2px solid #404040;

        cursor: pointer;

        font-weight: bold;
    }

    .start-button img {
        width: 18px;
    }

    .start-button:active,
    .start-button.active {
        border-top: 2px solid #404040;
        border-left: 2px solid #404040;

        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;

        background: #a0a0a0;
    }

    .taskbar-divider {
        width: 2px;
        height: 90%;

        margin: 0 4px;

        background: #808080;

        border-left: 1px solid #ffffff;
    }

    .taskbar-applications {
        display: flex;
        align-items: center;

        gap: 4px;

        flex: 1;

        height: 100%;
    }

    .footer-application {
        min-width: 160px;
        height: 32px;

        display: flex;
        align-items: center;
        gap: 8px;

        padding: 0 10px;

        background: #EFBFEE;

        border-top: 2px solid #ffffff;
        border-left: 2px solid #ffffff;

        border-right: 2px solid #404040;
        border-bottom: 2px solid #404040;

        cursor: pointer;

        user-select: none;
    }

    .footer-application img {
        width: 18px;
        height: 18px;
    }

    .footer-application span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-application.active {
        border-top: 2px solid #404040;
        border-left: 2px solid #404040;

        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;

        background: #F6DBF0;
    }

    .footer-application:hover {
        background: #f9d0f0;
    }

    .taskbar-clock {
        min-width: 80px;

        height: 32px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0 10px;

        background: #EFBFEE;

        border-top: 2px solid #808080;
        border-left: 2px solid #808080;

        border-right: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
    }
}

.footer {

    width: 100%;

    position: absolute;
    bottom: 0;
    left: 0;
    height: 50px;

    display: flex;
    gap: 10px;

    .footer-application {
        width: 50px;

        &.start {
            background: #EFBFEE;
            width: unset;
            display: flex;
            align-items: center;
            gap: 5px;
            border-top-color: RGBA(0, 0, 0, 0.5);

            img {
                height: 20px;
                width: 20px;

            }
        }

        .img {
            height: 50px;
            width: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        img {
            height: 35px;
            display: block;
            margin: auto;

        }

        &.active {
            background: rgba(255, 255, 255, 0.2);
            box-shadow:
                inset 0 0 10px rgba(255, 255, 255, 0.3);
        }
    }
}

.application-sidebar {
    width: 100%;
    height: calc(100vh - 50px);

    .application {
        width: 80px;
        text-align: center;

        img {
            width: 50px;
        }
    }
}

.modal-backdrop.show {
    display: none;
}

#homeModal {
    .window-body {
        background: url('media/bg-home.webp');
        background-size: cover;
    }
}