* {
    box-sizing: border-box;
    font-family: 'Roboto Condensed', sans-serif;
}

body,
html {
    height: 100dvh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    /* Style */
    color: white;
    font-size: 3vh;
}

html {
    background: url('../assets/galaxy-background.jpg') center center/cover no-repeat;
}

.hide {
    display: none;
}

.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

body {
    flex: 1;
    /*background: url('../assets/main-bd.svg') center center/cover no-repeat;*/
    backdrop-filter: blur(0.1em);
    -webkit-backdrop-filter: blur(0.1em);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);

    /* Styles for phones */
    margin: 0;
}

.idle-case-wrapper {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 500;
    background-color: rgba(0, 0, 0, 0.95);
}

#bttnclose {
    width: 5vh;
    height: 5vh;
    border-radius: 50%;
    border: 0.15vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
    z-index: 1000;
    position: absolute;
    top: 1.5vh;
    left: 1.5vh;
    background: url('../assets/close-sign.svg') no-repeat center;
    background-size: 60%;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

#bttnclose:hover {
    border: 0.15vh solid var(--tertiary-color);
    box-shadow: 0 0 0.25vh var(--tertiary-color), 0 0 1vh var(--tertiary-color);
    filter: drop-shadow(0 0 1vh var(--tertiary-color));
}

.project-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 700px;
    max-height: 800px;
    border-radius: 2vh;
    border: 0.15vh solid var(--secondary-color);
    box-shadow: 0 0 0.25vh var(--secondary-color), 0 0 1vh var(--secondary-color);
}

.project-content-overlay {
    width: 100%;
    height: 100%;
    border-radius: 2vh;
    padding: 2vh;
}

/* Desktops and larger screens - Default style */
@media (min-width: 1241px) {

    /* Styles for desktops and larger screens */
    body {
        margin: 2% 4%;
        border-radius: 0.5em;
    }
}

@media (max-height: 500px) {
    body {
        margin: 0;
        border-radius: 0;
    }
}

/* Customize scrollbar for WebKit browsers */
::-webkit-scrollbar {
    display: block;
    width: 2vh;
}

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

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    /* Color of the scrollbar handle */
    border-radius: 1vh;
    /* Roundness of the scrollbar handle */

    border: 0.5vh solid rgba(0, 0, 0, 0);
    background-clip: content-box;

}

::-webkit-scrollbar-thumb:hover {
    cursor: pointer;
}

::-webkit-scrollbar-track-piece:end {
    background: transparent;
    margin-bottom: 0.5vh;
}

::-webkit-scrollbar-track-piece:start {
    background: transparent;
    margin-top: 0.5vh;
}

textarea:focus::-webkit-scrollbar-thumb {
    background: var(--tertiary-color);
    /* Color of the scrollbar handle */
    border-radius: 1vh;
    /* Roundness of the scrollbar handle */

    border: 0.5vh solid rgba(0, 0, 0, 0);
    background-clip: content-box;
}