@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
:root{
    --primary:tomato;
}
::-webkit-scrollbar{
    width:10px;
}
::-webkit-scrollbar-thumb{
    background-color: rgb(197, 197, 197);
    border-radius:100px;
}
::-webkit-scrollbar-thumb:hover{
    background-color: red;
}
::selection{
    background-color: var(--primary);
}
*{
    box-sizing: border-box;
    padding: 0;
    margin:0;
    user-select: none;
}
body{
    background-image: url(../assets/archLogo.png);
    background-repeat: no-repeat;
    background-position: center;
    background-color: #353535;
    height:100vh;
    width:100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: monospace;
    position: relative;
    overflow: hidden;
}
/*------------------------- WIDGETS -------------------------------*/
.widgets{
    position: absolute;
    top:5vh;
    right:3vw;
    height:50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:5vh;
}
.widgets .widget{
    background: rgba(255, 255, 255, 0.37);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(11.8px);
    -webkit-backdrop-filter: blur(11.8px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding:20px;
    font-size:1.5rem;
    color:white;
    font-weight: bold;
}
.widgets .specs,
.widgets .weather{
    display: none;
}
/*------------------------- PROGRAMS ------------------------------*/
.programs{
    position: absolute;
    top:5vw;
    left:2vw;
    /* height:80%; */
    display: grid;
    gap:20px;
    grid-template-columns: repeat(2,1fr);
    grid-template-rows: repeat(2,1fr);
}
.program{
    width:auto;
    margin:auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
.program:hover,
.program:focus{
    opacity: 0.8;
}
.program:active{
    opacity: 0.6;
}
.program img{
    padding:10px;
    width:100px;;
    aspect-ratio: 1;
    object-fit: cover;
} 
.program h1{
    color:white;
}
/*------------------------- TASK BAR ------------------------------*/
.taskBar{
    z-index: 9999;
    background: rgba(255, 255, 255, 0.19);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius:15px 15px 0 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-bottom: none;
    height:100px;
    position: absolute;
    bottom:0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* overflow: hidden; */
}

/*=================== START MENU ======================*/
.OSKey{
    height: 100%;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.OSKey:hover,
.OSKey:focus{
    background-color:var(--primary);
}
.OSKey:active{
    opacity: 0.7;
}
.tasks{
    height: 100%;
    display: flex;
    align-items: center;
    gap:8px;
}
.task{
    height: 100%;
    padding: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius:5px;
}
.task:hover,
.task:focus{
    background-color:var(--primary);
}
.tasks .task:active{
    opacity: 0.7;
}
.task.isActive{
    background-color:var(--primary);
}
/*=================== SETTINGS ========================*/
.settings{
    width:100px;
    height: 100%;
    position: relative;
    border-radius: 0 15px 0 0;
}
.settings-window {
    width:280px;
    height:300px;
    background-color: white;
    position: absolute;
    top:-310%;
    left:50%;
    transform: translate(-50%) ;
    border-radius: 15px;
    overflow: hidden;
    animation: closeSettings 1s 0s forwards;
    display: none; /*gets toggled*/
    justify-content: space-between;
    align-items: center;
    border:2px solid blue;
}
.settings-window.isActive{
    display: flex;
    animation: openSettings 1s 0s forwards;
}
.settings-window .brightness-container{
    height: 100%;
    width:30%;
    position: relative;
}

.brightness-container .brightness{
    cursor: pointer;
    position: absolute;
    top:55%;
    left:50%;
    transform: translate(-50%,-50%) rotate(-90deg);
}
.brightness-container img{
    width:40px;
    position: absolute;
    left:50%;
    top:15%;
    transform: translate(-50%,0%);
}

/*!!!!!!!!!!!!! BRIGHTNESS FILTER !!!!!!!!!!!!!!!*/
.brightness-filter{
    background-color: black;
    height:100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 11111;
    opacity: 0;
    pointer-events: none;
}
.widgetSwitches{
    width:70%;
    display: flex;
    flex-direction: column;
    height: 100%;
    display: flex;
    justify-content: center;
    gap:30px;
    padding-left:10px;
    border-left:2px solid black;
}
.widgetSwitches .switch{
    font-size: 35px;
    font-weight: bold;
    font-family: "VT323",monospace;
    letter-spacing: 3px;
    text-align: center;
    display: flex;
    align-items: center; 
    gap:30px;
    cursor: pointer;
}
.widgetSwitches .switch input{
    height:30px;
    aspect-ratio: 1;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.settings-exe{
    border-radius: 0 15px 0 0;
    width:100%;
    padding:15px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.settings-exe:hover,
.settings-exe:focus{
    background-color:var(--primary);
}
.settings-exe:active{
    opacity: 0.7;
}

/*=================== START MENU ========================*/
.startMenu{
    width:100px;
    height:100%;
    border-radius: 15px 0 0 0 ;
}
.startMenu-exe{
    width:100%;
    padding:15px;
    border-radius: 15px 0 0 0 ;
    cursor: pointer;
    transition: background-color 0.3s;
}
.startMenu-exe:hover,
.startMenu-exe:focus{
    background-color:var(--primary);
}
.startMenu-exe:active{
    opacity: 0.7;
}
.start__buttons{
    background-color: rgb(28, 28, 28);
    position: absolute;
    top:40%;
    left:0;
    transform: translate(-110%,-50%);
    padding:5px;
    border-radius:10px;
    border:3px solid tomato;
    display: none; /* gets toggled */
    animation: closeStartMenu 1s 0s forwards;
}
.start__buttons.isActive{
    display: flex;
    animation: openStartMenu 1s 0s forwards; 
}
.start__buttons img{
    width:80px;
    object-fit: cover;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius:10px;
    padding:10px;
}
.start__buttons img:hover,
.start__buttons img:focus{
    background-color: #aaff00;
}
.start__buttons img:active{
    opacity: 0.6;
}
/*!!!!!!!!!!!!!!!!! SHUTDOWN SCREEN !!!!!!!!!!!!!!!!*/
.screen{
    position: fixed;
    background-color: black;
    height:100vh;
    width:100vw;
    z-index: 10000;
    position: relative;
    display: none;
}
.screen::after{
    content: "";
    color:white;
    font-size:5vw;
    font-family: "VT323",monospace;
    letter-spacing:3px ;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
}
.screen.isActive{
    display: block;
    animation: fadeIn 1.5s 0s forwards; 
}
.shutdownScreen::after{
    animation: shutdown 5s infinite forwards; 
}
.rebootScreen::after{
    animation: reboot 5s infinite forwards;
}
.offScreen{
    z-index: 10001;
    position: relative;
    position: fixed;
    top:0;
}
.offScreen img{
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:8vw;
    cursor: pointer;
    border-radius: 20px;
    padding: 10px;
    transition: background-color 0.2s;
}
.offScreen img:hover{
    background-color: white;
}
.offScreen img:active{
    opacity:0.6;
}
/*------------------------- ANIMATIONS ------------------------------*/
@keyframes closeWindow{
    0%{
        transform: scale(1);
    }
    30%{
        transform: scale(0);
    }
    100%{
        display:flex;
    }
}
@keyframes openWindow{
    0%{
        display: none;
        transform: translateY(-300%) scale(0.5);
    }
    100%{
        display: flex;
        transform:  scale(1);
    }
}
@keyframes fadeOut {
    0%{
        opacity: 1;
    }
    100%{
        opacity: 0;
        display: none;
    }
}
@keyframes fadeIn {
    from{
        opacity: 0;
        display: none;
    }
    to{
        opacity: 1;
        display: block;
    }
    
}
@keyframes slideUp {
    from{}
    to{ 
        transform:translateY(-100%);
        display: none;
    }
}
@keyframes pulse {
    0%,100%{
        box-shadow:none;
    }50%{
        box-shadow:0 0 300px 100px purple;
    }
}
@keyframes closeSettings {
    from{
        transform: translate(-50%,0%) scale(1);
        display: flex;
    }
    to{ 
        transform: translate(-50%,100%) scale(0);
        display: none;
    }
}
@keyframes openSettings {
    from{
        transform: translate(-50%,100%) scale(0);
        display: none;
    }
    to{ 
        transform: translate(-50%,0%) scale(1);
        display: flex;
    }
}
@keyframes closeStartMenu {
    from{
        transform: translate(-110%,-50%) scale(1);
        display: flex;
    }
    to{
        transform: translate(-30%,-50%) scale(0);
        display: none;
    }
}
@keyframes openStartMenu{
    from{
        transform: translate(-30%,-50%) scale(0);
        display: none;
    }
    to{
        transform: translate(-110%,-50%) scale(1);
        display: flex;
    }
}
@keyframes shutdown {
    0%,100%{
        content: "Shutting Down";
        opacity: 1;
    }
    10%,90%{
        content: "Shutting Down .";
        opacity: 0.2;
    }
    20%,80%{
        content: "Shutting Down ..";
        opacity: 1;
    }
    30%,70%{
        content: "Shutting Down ...";
        opacity: 0.2;
    }
    40%,60%{
        content: "Shutting Down ....";
        opacity: 1;
    }
    50%{
        content: "Shutting Down .....";
        opacity: 0.2;
    }
}
@keyframes reboot{
    0%,100%{
        content: "Rebooting";
        opacity: 1;
    }
    10%,90%{
        content: "Rebooting .";
        opacity: 0.2;
    }
    20%,80%{
        content: "Rebooting ..";
        opacity: 1;
    }
    30%,70%{
        content: "Rebooting ...";
        opacity: 0.2;
    }
    40%,60%{
        content: "Rebooting ....";
        opacity: 1;
    }
    50%{
        content: "Rebooting .....";
        opacity: 0.2;
    }
}
/*------------------------- WINDOW ------------------------------*/
.window{
    z-index: 10;
    position: absolute;
    width:50%;
    height:60%;
    background-color: tomato;
    border-radius:10px;
    overflow: hidden;
    transform: translateX(-200%); /*when loading*/
    padding-top:35px;
    display: flex;
    flex-direction: column;
}
.window main{
    height:100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.titleBar{
    position: absolute;
    top:0;
    height:35px;
    width:100%;
    background-color: #d7dee9;
    cursor: pointer;
    cursor:grab;
    display: flex;
    align-items: center;
}
.titleBar:active{
    cursor:grabbing;
}
.titleBar button{
    width:20px;
    aspect-ratio: 1;
    border:none;
    border-radius: 100%;
    cursor: pointer !important;
    margin-left:10px;
    position: relative;
}
.titleBar button:hover{
    opacity:0.8;
}
.closeButton{
    background-color: red;
}
.closeButton::after{
    content: "X";
    display: block;
    font-weight: bold;
    position: absolute;
    top:50%;
    left:52%;
    transform:translate(-50%,-50%);
    opacity: 0;
    transition: opacity 0.2s;
}

.hideButton{
    background-color: yellowgreen;
}
.hideButton::after{
    content: "";
    height:2px;
    width:7px;
    background-color: black;
    display: block;
    position: absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    opacity: 0;
}
.hideButton:hover::after,
.closeButton:hover::after{
    transition-duration: 0.2s;
    opacity: 1;
}
.closeButton:active::after ,
.hideButton:active::after{
    opacity:0;
}



.folder__window{
    background-color: orange;
}

.projects__window{

}


/*------------------------- LOADING SCREEN------------------------------*/
.loadingScreen{
    z-index:99999;
    position: fixed;
    height:100vh;
    width: 100vw;
    background-color: black;
    animation:slideUp 1s 5s forwards;
}
.loadingScreen img{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    width:20vw;
    aspect-ratio: 1;
    border:none;
    padding: 10px;
    border:20px solid white;
    border-radius: 1000px ;
    animation: pulse 2s infinite forwards;
}

/********* TO BE REMOVED *************/
.msg404{
    font-size:6rem;
    margin:50px;
    text-align: center;
}
.msgerror{
    font-size:1.5rem;
    text-align: center;
}
/*----------------------- SCREEN SIZE GUARD ---------------------------------*/
.screenSizeGuard{
    display: none; /* gets toggled */
    position: fixed;
    height:100vh;
    width:100vw;
    background-color: black;
    z-index: 99999;
}
.screenSizeGuard::before{
    content:"WARNING";
    background-color: red;
    position: absolute;
    font-size:10vw;
    font-family: "VT323", monospace;
    padding:10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.screenSizeGuard::after{
    content:"Resolution Too Small";
    color: white;
    position: absolute;
    width: 100%;
    text-align: center;
    font-size:6vw;
    font-family: "VT323", monospace;
    top: 65%;
    left: 50%;
    transform: translate(-50%,-50%);
}
@media (max-width:800px),(max-height:500px) {
    .screenSizeGuard{
        display: block;
    }
}