@font-face {
    font-family: "Segoe UI Custom";
    src: url("./fonts/segoeui.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

body{
    background-image: url("./images/wallpapers/wallpaper1.jpg");
    background-repeat:no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    font-family: "Segoe UI", sans-serif; 
}

/* the look of the windows */

.window{
    position: fixed;
    box-sizing: border-box;
    background: rgba(176, 226, 255, 0.5);
    border: 2px solid #fff;
    border-radius: 10px;
    box-shadow: 3px 5px 10px rgba(33, 50, 66, 0.8);
    overflow: hidden;
    overflow-y: auto;
    width: min(90vw, 550px);
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 60px);
    z-index: 100;
}

.titlebar{
    background: linear-gradient(to bottom, #c2deff, #5cacf2);
    /* haha web safe colors are a myth they cant hurt me haha.... */
    padding: 1px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    touch-action: none;
    font-size: 1.15rem;
    color: #1860a8;
    cursor: grab;
    box-shadow: 0 5px 10px rgba(13, 40, 67, 0.2);
}

.titlebar:active {
    cursor: grabbing;
}

.titlebar p{
    margin: 2px 0;
}

.windowcontent{
    padding: 10px;
}

.windowcontent h2{
    margin: 5px 0;
    font-size: 1.5rem;
    color: #0f447a;
}

.windowcontent p{
    margin: 5px 0;
    font-size: 1.1rem;
    color: #0f447a;
}

.windowcontent span{
    margin: 0;
    font-size: 1.1rem;
    color: #0f447a;
    background-color: rgba(176, 226, 255, 0.5);
    padding: 0 10px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.5;
    box-shadow: 0 5px 4px rgba(13, 40, 67, 0.2);
}

.windowcontent span:hover{
    background-color: rgba(203, 236, 255, 0.5);
}

.close, .minimize, .maximize{
    border: none;
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #1860a8;
}

.close img:hover,
.minimize img:hover,
.maximize img:hover {
    filter: brightness(0) invert(1);
}

/* ouuuu navigation buttons insert eyes emoji here */

.navbutton{
    background: linear-gradient(to bottom, #e3effd, #b8d9f4);
    font-size: 1.1rem;
    cursor: pointer;
    color: #1860a8;
    width: 100%; 
    min-width: 0;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 10px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(13, 40, 67, 0.2);
}

.navcontainer{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 100px));
    gap: 3px;
    justify-content: center;
}

.navitem{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
}

.navitem img{
    width: 40px;
    height: 40px;
}

.navitem p{
    margin: 2px 0;
    font-size: 0.9rem;
    color:#0f447a;
    text-align: center;
}

.navitem:hover{
    background-color: rgba(176, 226, 255, 0.5);
    border-radius: 10px;
}

/* uhhh contact buttons yippee!!!*/

.contactbutton{
    background: linear-gradient(to bottom, #e3effd, #b8d9f4);
    font-size: 1.1rem;
    cursor: pointer;
    color: #1860a8;
    width: 100%; 
    min-width: 0;
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 10px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(13, 40, 67, 0.2);
}

.contactcontainer{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 100px));
    gap: 3px;
    justify-content: center;
}

.contactitem{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
}

.contactitem img{
    width: 40px;
    height: 40px;
}

.contactitem p{
    margin: 2px 0;
    font-size: 0.9rem;
    color:#0f447a;
    text-align: center;
}

.contactitem:hover{
    background-color: rgba(176, 226, 255, 0.5);
    border-radius: 10px;
}

/* wallpaper stuff */
.wallpaperbutton{
    background: transparent;
    font-size: 1.1rem;
    cursor: pointer;
    color: #1860a8;
    width: 100%; 
    min-width: 0;
    aspect-ratio: 4/3;
    padding: 0;
    border-radius: 10px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 10px rgba(13, 40, 67, 0.2);
}

.wallpapercontainer{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 250px));
    gap: 3px;
    justify-content: center;
}

.wallpaperitem{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
}

.wallpaperitem img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.wallpaperitem:hover{
    background-color: rgba(176, 226, 255, 0.5);
    border-radius: 10px;
}

/*hiding the windows... wink wink */

#aboutwindow {
    display: none;
}

#favoriteswindow {
    display: none;
}

#interestswindow {
    display: none;
}

#skillswindow {
    display: none;
}

#clubswindow {
    display: none;
}

#contactwindow {
    display: none;
}

#settingswindow {
    display: none;
}
#widgetswindow {
    display: none;
}


#attributionswindow {
    display: none;
}

/* taskbar AHHHH */

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    box-sizing: border-box;
    background: rgba(176, 226, 255, 0.5);
    border-top: 2px solid #fff;
    box-shadow: 0 -5px 20px rgba(33, 50, 66, 0.8);
    z-index: 1;
}

.systemtray {
    padding: 0 10px;
    font-size: 0.96rem;
    white-space: nowrap;
    color: #1860a8;
    text-align: right;
}

.taskbaritems {
    display: flex;
    gap: 10px;
    padding: 1px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    align-items: center;
}

.taskbarapp {
    height: 40px;
    width: 40px;
    cursor: pointer;
    padding: 0;
    background: linear-gradient(to bottom, #e3effd, #b8d9f4);
    border-radius: 15px;
    border: 1px solid #fff;
    box-shadow: 0 5px 4px rgba(13, 40, 67, 0.2);
}

.taskbarapp img {
    height: 32px;
    width: 32px;
    display: block;
    margin: auto;
}

/* desktop shortcuts GAHHH */

.desktopshortcuts {
    position: fixed;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    height: 85vh;
    z-index: 0;
}

.shortcut {
    width: 75px;
    cursor: pointer;
    box-sizing: border-box;
    padding: 10px 0 0;
    margin: 15px;
    background: linear-gradient(to bottom, #e3effd, #b8d9f4);
    border-radius: 15px;
    border: 2px solid #fff;
    box-shadow: 3px 5px 4px rgba(33, 50, 66, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    aspect-ratio: 1/1;
}

.shortcut:hover {
    background: linear-gradient(to bottom, #f2f8ff, #d1e7fa);
}

.shortcut img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    display: block;
}

.desktopshortcuts p {
    text-align: center;
    margin: 0;
    color: #1860a8;
    white-space: nowrap;
    font-size: 0.9rem;
}

/* widgets insert face with tongue sticking out emoji here */

.musicplayer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-align: left;
    width: min(90vw, 390px);
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 80px);
    padding: 15px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: rgba(176, 226, 255, 0.5);;
    box-shadow:3px 5px 4px rgba(33, 50, 66, 0.8);
    color: #0f447a;
    user-select: none;
    touch-action: none;
    cursor: grab;
    position: absolute;
}

.musicplayer:active {
    cursor: grabbing;
}

.album img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

#albumart {
    border: 4px solid #fff;
    border-radius: 10px;
}

.songinfo{
    flex: 1;
    min-width: 0;
}

.songinfo p{
    margin: 5px;
}

.musicbuttons {
    display: flex;
    gap: 10px;
    margin: 12px 0;
}

.musicbuttons button {
    border: 2px solid #fff;
    border-radius: 8px;
    margin-top: 5px;
    padding: 8px 12px;
    background: linear-gradient(to bottom, #e3effd, #b8d9f4);
    color: #164b69;
    cursor: pointer;
}

.musicbuttons button:hover {
    background: linear-gradient(to bottom, #f2f8ff, #d1e7fa);
}

#timestamp {
    font-size: 0.8rem;
}

.musicplayerinfo {
    flex: 1;
    min-width: 0;
}

.musicplayerinfo h2 {
    margin: 0;  
    text-align: left;
}

#songtitle {
    font-weight: bold;
    font-size: 1.2rem;
}

.weather {
    width: min(90vw, 400px);
    max-width: calc(100vw - 60px);
    max-height: calc(100vh - 80px);
    border: 2px solid #fff;
    border-radius: 10px;
    background: rgba(176, 226, 255, 0.5);;
    box-shadow:3px 5px 4px rgba(33, 50, 66, 0.8);
    color: #0f447a;
    user-select: none;
    touch-action: none;
    cursor: grab;
    position: absolute;
}

.weatherdisplay {
    display: flex;
    align-items: center;
    gap: 12px;
}

#weathericon{
    font-size: 6rem;
    flex-shrink: 0;
}

.weatherinfo{
    min-width:0;
}

.weatherinfo h1{
    margin: 0;
    font-size: 3rem;
}

.weatherinfo p{
    margin: 3px 0;
    font-size: 1.6rem
}

label{
    color: #0f447a;
    display: block;
    margin: 12px 0;
    cursor: pointer;
}

.widget-hidden {
    display: none !important;
}

/* phone compatibility yippee */ 

@media screen and (max-width: 600px) {

    .window {
        width: min(90vw, 550px);
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 80px);
        border-width: 1.5px;
        border-radius: 9px;
    }

    .titlebar {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        padding: 2px 5px;
    }

    .windowcontent {
        padding: clamp(7px, 2.5vw, 10px);
    }

    .windowcontent h2 {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
    }

    .windowcontent p, .windowcontent span {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

    .windowcontent span {
        padding: 0 6px;
        white-space: normal;
    }

    .close, .minimize, .maximize {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
    }

     .navcontainer, .contactcontainer {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: min(100%, 300px);
        gap: 3px;
        margin: auto;
    }

    .navitem, .contactitem {
        padding: clamp(5px, 2vw, 10px) 3px;
    }

    .navitem img, .contactitem img {
        width: clamp(25px, 8vw, 40px);
        height: clamp(25px, 8vw, 40px);
    }

    .navitem p, .contactitem p {
        font-size: clamp(0.7rem, 3vw, 0.9rem);
    }

    .wallpapercontainer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-rows: auto;
        align-items: start;
        justify-content: stretch;
        width: 100%;
        gap: 8px;
        box-sizing: border-box;
    }

    .wallpapercontainer {
        display: contents;
    }

    .windowcontent:has(.wallpapercontainer) {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: start;
    }

    .windowcontent:has(.wallpapercontainer) > h2,
    .windowcontent:has(.wallpapercontainer) > p {
        grid-column: 1 / -1;
    }

    .wallpaperitem {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        min-width: 0;
        padding: 5px;
        margin: 0;
        box-sizing: border-box;
    }

    .wallpaperbutton {
        width: 100%;
        aspect-ratio: 4 / 3;
        padding: 0;
        overflow: hidden;
    }

    .wallpaperitem img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .taskbar {
        height: clamp(42px, 12vw, 48px);
        gap: 5px;
        padding: 0 5px;
    }

    .taskbaritems {
        gap: 5px;
    }

    .taskbarapp {
        width: clamp(32px, 9vw, 40px);
        height: clamp(32px, 9vw, 40px);
        flex-shrink: 0;
        border-radius: 10px;
    }

    .taskbarapp img {
        width: 75%;
        height: 75%;
    }

    .systemtray {
        font-size: clamp(0.65rem, 2.5vw, 0.85rem);
        padding: 0 3px;
    }

    .desktopshortcuts {
        height: calc(100dvh - 110px);
        max-width: 100vw;
    }

    .shortcut {
        width: clamp(55px, 17vw, 75px);
        margin: clamp(5px, 2vw, 15px);
        padding-top: 6px;
        border-radius: 10px;
    }

    .shortcut img {
        width: 70%;
        height: 70%;
    }

    .desktopshortcuts p {
        font-size: clamp(0.65rem, 2.8vw, 0.85rem);
        white-space: normal;
        overflow-wrap: anywhere;
    }


    .musicplayer{
        position: fixed;
        z-index: 50;
        box-sizing: border-box;
    }

    .album img {
        width: clamp(75px, 25vw, 150px);
        height: clamp(75px, 25vw, 150px);
    }

    #albumart {
        border-width: 2px;
        border-radius: 7px;
    }

    .songinfo p {
        margin: 3px;
        font-size: clamp(0.7rem, 3vw, 0.95rem);
    }

    .musicplayerinfo h2 {
        font-size: clamp(0.9rem, 3.8vw, 1.3rem);
    }

    #songtitle {
        font-size: clamp(0.8rem, 3.5vw, 1.2rem);
        overflow-wrap: anywhere;
    }

    .musicbuttons {
        gap: clamp(3px, 1.5vw, 10px);
        margin: 6px 0;
        flex-wrap: wrap;
    }

    .musicbuttons button {
        padding: clamp(5px, 1.5vw, 8px);
        margin-top: 3px;
        font-size: clamp(0.65rem, 2.8vw, 0.9rem);
    }

    #timestamp {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
    }

    .weather {
        position: fixed;
        z-index: 50;
        box-sizing: border-box;
    }

    .weatherdisplay {
        gap: clamp(5px, 2vw, 12px);
    }

    #weathericon {
        font-size: clamp(2.8rem, 12vw, 6rem);
    }

    .weatherinfo h1 {
        font-size: clamp(1.7rem, 8vw, 3rem);
    }

    .weatherinfo p {
        font-size: clamp(0.85rem, 4vw, 1.6rem);
    }

    label {
        margin: 8px 0;
        font-size: clamp(0.8rem, 3vw, 1rem);
    }

    .desktopshortcuts {
        display: none;
    }
}