html {
    --withe-contrast: #bcbcbc;
    margin: 0;
    padding: 0;
    color: white;
    background-color: black;
    font-family: monospace;
}

body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}

::-webkit-scrollbar {
    height: 0;
    width: 0;
}

custom-window.hidden {
    display: none;
}

custom-window.selected {
    z-index: 5;
}

.topBar {
    width: 100%;
    display: flex;
    padding: 0.4rem 1rem;
    box-sizing: border-box;
    user-select: none;
    position: fixed;
    backdrop-filter: blur(4px);
    justify-content: space-between;
    z-index: 12;
}

.topBar .barEnd {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.topBar .barEnd .lang {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.langMenu {
    position: absolute;
    top: 32px;
    left: -25px;
    width: 68px;
    border: 2px solid var(--withe-contrast);
    background-color: #000;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 5px 1px;
    height: 92px;
    overflow: auto;
    z-index: 100;
}

.langMenu span.lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.langMenu .lang.selected {
    background-color: var(--withe-contrast);
    color: black;
}

.langMenu .lang:hover {
    background-color: white;
    color: black;}

.topBar::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    border-bottom: 2px solid var(--withe-contrast);
    top: 25px;
    animation: showTopBar 1s ease-in-out 1.2s forwards;
}

.leftBar {
    z-index: 10;
    display: flex;
    height: calc(100vh - 25px);
    margin-top: 25px;
    width: 100px;
    user-select: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    backdrop-filter: blur(4px);
    background-color: #000000ad;
}

@media (orientation: landscape) {
    .leftBar {
        transform: translateX(-100px);
        animation: showLeftBar 1s ease-in-out 1.2s forwards;
    }
}

.leftBar::after {
    content: "";
    position: absolute;
    height: calc(100% - 8px);
    border-right: 2px solid var(--withe-contrast);
    bottom: 0;
    left: 100px;
}

.leftBar::before {
    content: "";
    position: absolute;
    border-radius: 8px 0 0;
    box-shadow: -3px -3px 0px 0px #000000;          
    border-top: 2px solid var(--withe-contrast);
    border-left: 2px solid var(--withe-contrast);
    top: 1px;
    left: 100px;
    width: 8px;
    height: 8px;
}

.leftBar .icon {
    margin: 0 1rem;
    display: block;
    width: 100%;
    height: 74px;
    border-radius: 100px;
    position: relative;
    background-color: rgb(255 255 255 / 0%);
    transition: all 400ms ease-in;
}

.leftBar .icon:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    transition: all 200ms linear;
    box-shadow: 0 0 0 0 rgb(255, 245, 135);
    position: absolute;
    top: 50%;
    left: 50%;
}

.leftBar .icon:hover:after {
    box-shadow: 0 0 20px 10px rgb(255, 245, 135);
    transition: all 240ms ease-in;
}
.leftBar .icon:active:after {
    box-shadow: 0 0 20px 16px rgb(255, 250, 200);
}
.leftBar svg {
    padding: 1rem 1rem;
    cursor: pointer;
}

.leftBar .icon.selected::before {
    content: '';
    display: block;
    width: 1px;
    height: 1px;
    border-radius: 100px;
    position: absolute;
    top: calc(50% - 5px);
    left: -19px;
    border: 5px solid #f44336;
}

container {
    box-sizing: border-box;
    overflow: hidden;
    display: block;
    height: 100vh;
    width: calc(100% - 100px);
    flex-wrap: nowrap;
    display: flex;
}

@supports (height: 100dvh) {
  container {
    height: 100dvh;
  }
}

container>div{
    overflow: scroll;
    height: 100%;
    width: 100%;
    flex: 0 0 100%;
    padding: 5rem;
    box-sizing: border-box;
}

container .main {
    padding: 50px 20px;
    box-sizing: border-box;
    overflow: scroll;
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}

.main .des.icon {
    width: 70px;
    height: calc(70px + 1rem);
    cursor: pointer;
    border: 2px solid transparent;
}
.main .des.icon.dragging {
    opacity: 0.5;
}
.main .des.icon.selected {
    border: 2px dotted var(--withe-contrast);
}

custom-window .chat {
    display: flex;
    flex-wrap: wrap;
    padding: 0.2rem;
    padding-top: calc(26px + 0.2rem);  
}

custom-window .chat .presentation,
custom-window .chat pre {
    width: 100%;
    margin: 0;
    margin-bottom: 1rem;
    white-space: pre-line;
}

custom-window .chat .userInput {
    color: var(--withe-contrast);
    width: 100%;
    display: flex;
}

custom-window .chat input {
    border: none;
    outline: none;
    background-color: transparent;
    color: white;
    flex-grow: 1;
}

custom-window .chat .response a{
    background-color: #2196F3;
    cursor: pointer;
}

.icon.hidden {
    height: 0;
    opacity: 0;
    width: 0 !important;
    display: none;
}

container span {
    max-width: 80%;
    line-height: 1.5;
    display: inline-block;
}

.expanded .chat {
    padding-inline-start: 1rem;
    padding-top: calc(26px + 1rem) !important;
}

time:hover {
    cursor: pointer;
}

my-calendar {
    position: absolute;
    top: 35px;
    right: 5px;
    backdrop-filter: blur(4px);
    background: rgb(28 28 28 / 50%);
    display: none;
    z-index: 100;
}

@keyframes expandToFull {
    0% {
        z-index:10;
        transform: scale(1); 
        opacity: 1;
    }
    100% {
        z-index:10;
        transform: scale(5);
        opacity: 0.1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

img.fullscreen {
    user-select: none;
    -webkit-user-select: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
}

img.fullscreen.prev{
    animation: fadeIn 200ms ease-in-out forwards;
}

container .about span {
    display: block;
}

@keyframes showTopBar {
    0% {
        left: 8px;
    }
    100% {
        left: 108px;
    }
}

@keyframes showLeftBar {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(0px);
    }
    
}

.actions {
    display: flex;
}

.actions .buttons {
    width: 100px;
    display: flex;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.actions .buttons>div {
    display: inline-block;
    border-radius: 20px;
    width: 14px;
    height: 14px;
    margin-inline-end: 0.5rem;
    cursor: pointer;
}

.actions.hidden .buttons>div {
    display: none;
}

.actions svg {
    transform: scale(1.2);
    display: none;
}

.actions .buttons:hover svg{
    display: block;
}

.big { background-color: #4caf50; }
.close { background-color: #f44336; }

.linkList {
    width: 100%;
    outline: none;
    padding: 1rem;
}

.expanded .linkList {
    padding-top: 2rem;
}

.linkList .text {
    padding: 0.55rem 0;
    display: inline-block;
}

.linkList a {
    position: relative; 
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    background-color: rgb(255 255 255 / 0%);
    padding: 0.1rem 1rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    z-index: 1;
    outline: none;
}

.linkList a::before {
    content: '';
    display: none;
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: white; 
    z-index: -1;
}

.linkList a:hover svg,
.linkList a:focus svg,
.linkList a span { 
    mix-blend-mode: difference;
}


.linkList a:focus::before,
.linkList a:hover::before {
    display: block;
    animation: moveBg 300ms ease-in;
    left: 0;
}

.linkList .links {
    display: none;
    animation: showFromTop 400ms ease-in-out;
}

@keyframes showFromTop {
    0% {height: 0;}
    100% {height: 50px;}
}

@keyframes moveBg {
    0% {left: -100%;}
    100% {left: 0;}
}
custom-window>* {
    padding-top: 26px !important;
    box-sizing: border-box;
}
custom-window.expanded .contact {
    padding-top: 2rem;
}
custom-window .contact {
    padding: 1rem;
    padding-top: calc(30px + 1rem) !important;
    min-width: 355px;
}
svg.bg {
    position: absolute;
    z-index: -10;
}
.copied {
    background-color: #4caf50;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    animation: fadeIn 250ms ease-in-out forwards;
}

custom-window .contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

custom-window .contact span svg {
    cursor: pointer;
}
custom-window .contact a{
    text-decoration: none;
    color: var(--withe-contrast);    
}

custom-window iframe {
    pointer-events: none;
}

custom-window .pdfContent {
    height: 100%;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

@media (orientation: portrait) {
    
    .leftBar {
        width: 100%;
        position: fixed;
        flex-wrap: nowrap;
        height: 60px;
        bottom: 0;
        justify-content: space-around;
        border-top: 0.5px solid var(--withe-contrast);
    }
    
   .leftBar .icon.selected::before {
        display: none;
    }
    .leftBar .icon.selected::after {
        box-shadow: 0 0 20px 10px rgb(255, 245, 135);
    }

    .leftBar .icon.selected::before {
       display: none;
    }

    container {
        width: 100% !important;
    }

    .topBar {
        border-bottom: 0.5px solid var(--withe-contrast);
    }

    .topBar .buttons,
    .topBar::after,
    .leftBar::before,
    .leftBar::after {
        display: none;
    }

    .leftBar .icon {
        width: 60px;
        height: 60px;
        padding: 0;
        margin: 0;
    }
}
