/* Import font here */
@font-face {
    font-family: "Stretch Pro";
    src: url(../font/StretchPro.otf) format("opentype");
}

@font-face {
    font-family: "Angora";
    src: url(../font/Angora-1G3BB.otf) format("opentype");
}

:root {
    /* == Default Setting == */
    /* Font Color */
    --font-color: rgb(255, 255, 255);

    /* Font Family */
    --font-family: "consolas", sans-serif;
    --font-family-special: "Stretch Pro", sans-serif;

    /* Font Size */
    --font-size-x-small: 0.75rem;
    --font-size-small: 0.85rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.2rem;
    --font-size-x-large: 1.5rem;

    /* Border Color */
    --border-color: rgb(20, 100, 225);
    --border-size-top: 30px;
    --border-size-around: 6px;

    /* == Desktop Setting == */
    /* Icon */
    --application-icon-size: 80px;
    --application-icon-image-size: 64px;
    --application-icon-font-size: 16px;

    /* == Window Setting == */
    /* Window Background */
    --application-background-color: rgba(0, 0, 0, 0.8);
    --application-background-blur: blur(4px);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);

    overflow: hidden;

    height: 100vh;

    padding: 0;
    margin: 0;

    background-color: black;
    background-image: url(../img/background/ARC_1080P.png);
    background-size: cover;

}

h1, h2, h3, h4, h5 {
    padding: 0;
    margin: 0;
}

ul,
li {
    margin: 0;
}

hr {
    border-color: var(--font-color);
    width: 100% ;
    border: 2px solid var(--border-color);
    box-shadow: none;
}

a {
    text-decoration: none;
    color: white;

    :visited {
        color: white
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    /* border-radius: 5px; */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* Add this to remove the white corner */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Image Display */
.svg {
    aspect-ratio: 1;
    height: var(--font-size-large);
}

img {
    -webkit-user-drag: none;
    /* user-drag: none; */
    -webkit-user-select: none;
    user-select: none;
}

/* Icon Default Style */
.icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    z-index: 0;

    width: var(--application-icon-size);

    -webkit-user-select: none;
    user-select: none;

    padding: 8px;
    gap: 6px;

    position: absolute;

    .icon_img {
        aspect-ratio: 1/1;
        object-fit: contain;
        height: var(--application-icon-image-size);

        border-radius: 16px;
        box-shadow: 0 0 12px black;
    }

    .icon_name {
        flex: 1;

        padding: 0;
        margin: 0;

        width: var(--application-icon-size);

        font-family: var(--font-family);
        font-size: var(--application-icon-font-size);
        text-align: center;
        text-shadow: 0 0 6px black;
        word-wrap: break-word;

        color: var(--font-color);

    }
}

.icon:hover {
    background-color: rgb(20, 100, 225, 0.7);
}

.selected {
    outline: 2px solid var(--border-color);
}

/* Windows Default Style */
[id$="_Container"]:not(#Topbar_Container *) {
    display: flex;
    flex-direction: column;

    [class$="_header"] {
        color: white;
        display: flex;
        justify-content: space-between;
        align-items: center;

        overflow: hidden;
        text-wrap: nowrap;

        font-weight: 800;

        margin: 0;
        padding: 8px 5px;

        /* Act like a border for the content */
        height: 24px;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--border-color);

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

            margin: 0;
        }
    }

    [class$="_main"] {
        display: flex;
        flex-direction: column;
        position: relative;
        border: var(--border-size-around) var(--border-color) solid;
        border-top: none;
        background-color: var(--application-background-color);
        backdrop-filter: var(--application-background-blur);
    }

    /* Popup: image element */

    [class$="popup"] {
        display: flex;
        flex-direction: column;
        border: var(--border-size-around) var(--border-color) solid;
        border-top: none;
        background-color: var(--application-background-color);
        backdrop-filter: var(--application-background-blur);

        max-width: 55vw;

        img {
            margin: 0;
            padding: 0;
            object-fit: contain;
            width: 100%;
        }
    }
}
