:root {
    --color: #dcddde;
    --taskbar-height: 40px;
}

body {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-flow: column;
    overflow: hidden;
    background-image: url("../background.webp");
    background-size: 100vw 100vh;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    body {
        flex-flow: column;
        
        overflow: auto;
    }

    .icon {
        width: 80px;
        height: 80px;
    }

    .taskbar {
        height: 50px;
    }

    .popup-window {
        width: 90%;
        height: 80%;
        top: 10%;
        left: 5%;
    }

    .notepad-window {
        width: 90%;
        height: 70%;
        top: 15%;
        left: 5%;
    }
}


.icon {
    /* width: 100px; 
    width: 100px;
    height: 64px;
    margin: 10px;*/
    width: 100px;
    height: 100px;
    margin: 10px;
    text-align: inherit;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.start-menu img{
    
    width: 100px;
    height: 40px;

}
.icon img {
    width: 64px;
    height: 64px;
}

.cv {
    width: 100%;
    text-align: right;
}

.desktop {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    position: relative;

}

.h4 {
    font-style: normal;
}

.taskbar {
    height: var(--taskbar-height);
    background-color: #215CD8;
}

.popup-window {
    position: fixed;
    top: 10%;
    left: 20%;
    width: 60%;
    height: 80%;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #3366cc;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: Tahoma, sans-serif;
}

.popup-header {
    display: flex;
    flex-direction: column;
    background-color: #e4e4e4;
    border-bottom: 1px solid #a9a9a9;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0055E5;
    color: white;
    border-radius: 4px;
    padding: 5px;
}

.menu-bar, .navigation-bar, .popup-address {
    display: flex;
    align-items: center;
    padding: 5px;
}

.menu-bar span, .navigation-bar button {
    margin-right: 10px;
}

.popup-address input {
    flex: 1;
    margin-right: 5px;
}

.popup-body {
    display: flex;
    flex: 1;
    border-radius: 8px;
}

.sidebar-section{
    background-color: #D6DFF7;
}

.sidebar-section p{
    background: rgb(255,255,255);
background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(198,210,245,1) 94%);
}

.popup-sidebar {
    width: 200px;
    background-color: #6D88DD;
    border-right: 1px solid #a9a9a9;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-radius: 8px;
}

.popup-window.closed {
    display: none;
}

.start-menu-button {
    display: flex;
    align-items: center;
    padding: 10px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.start-menu-button div {
    display: flex;
    flex-direction: column;
}

.start-menu-button img {
    margin-right: 10px;
}

.start-menu-button:hover {
    background-color: #3D64BD;
}

.start-menu-button:hover h3, 
.start-menu-button:hover p {
    color: white;
}


.sidebar-section p {
    font-weight: bold;
    color: #3366cc;
    margin-bottom: 10px;
}

.sidebar-section ul {
    list-style: none;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 5px;
}

.popup-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
    gap: 10px;
    overflow-y: auto;
}

.folder {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    text-align: center;
    cursor: pointer;
}

.folder img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.popup-footer {
    background-color: #e4e4e4;
    padding: 5px;
    border-top: 1px solid #a9a9a9;
}
/* Responsive Design */
@media (max-width: 768px) {
    .popup-window {
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
    }

    .popup-nav {
        flex-wrap: wrap;
    }

    .popup-address {
        flex-direction: column;
        align-items: flex-start;
    }

    .popup-address input {
        width: 100%;
    }

    .popup-content {
        gap: 5px;
        padding: 5px;
    }

    .folder {
        width: 80px;
    }

    .folder img {
        width: 32px;
        height: 32px;
    }
}

/* Grayscale effect for the background */
body.grayscale main.desktop,
body.grayscale footer.taskbar,
body.grayscale .start-menu-popup,
body.grayscale .popup-window
{
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: opacity 0.5s ease;
}

.overlay.hidden {
    display: none;
}

.shutdown-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: linear-gradient(to bottom, #3366cc, #003399);
    border: 1px solid #0055E5;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    padding: 20px;
    text-align: center;
    z-index: 1000;
    color: white;
}

.shutdown-popup.hidden {
    display: none;
}

.shutdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background-color: #003399; /* Set background color */
    padding: 10px; /* Add padding */
    border-radius: 5px 5px 0 0; /* Round the top corners */
}

.shutdown-header h2 {
    margin: 0;
}

.shutdown-header img {
    width: 40px;
    height: 40px;
}

.shutdown-content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background-color: #97B5F5;
}

.shutdown-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background-color: #97B5F5; /* Set background color */
    padding: 10px; /* Add padding */
    border-radius: 5px; /* Add border radius */
}

.shutdown-option img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.shutdown-footer {
    background-color: #003399; /* Set background color */
    padding: 10px; /* Add padding */
    border-radius: 0 0 5px 5px; /* Round the bottom corners */
    text-align: right; /* Align the button to the right */
}

.shutdown-cancel {
    background: white;
    color: black;
    border: 1px solid #a9a9a9;
    padding: 5px 20px;
    cursor: pointer;
}

.shutdown-cancel:hover {
    background: #f0f0f0;
}
.notepad-window {
    width: 600px;
    height: 400px;
    top: 20%;
    left: 20%;
    background-color: white;
    border: 2px solid #C0C0C0;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.notepad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0055E5;
    color: white;
    padding: 5px 10px;
    border-bottom: 2px solid #C0C0C0;
}

.notepad-menu {
    display: flex;
    background-color: #C0C0C0;
    padding: 2px 5px;
    border-bottom: 1px solid #808080;
}

.notepad-menu span {
    margin-right: 10px;
    cursor: pointer;
}

.notepad-content {
    display: flex;
    padding: 10px;
    background-color: white;
}

.notepad-content img.aboutme-image {
    max-width: 40%;
    height: auto;
    margin-right: 10px;
    border: 1px solid #C0C0C0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.notepad-content .aboutme-text {
    max-width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.aboutme-popup{
    z-index: 1;
}

.experiences-popup{
    z-index: 1;
}

.projects-popup{
    z-index: 1;
}

.games-popup{
    z-index: 1;
}
