@font-face {
    font-family: 'font';
    src: url("W95FA.otf");
}

@keyframes rainbowShift {
    0% {
      background-position: top;
    }
    100% {
      background-position: bottom;
    }
}

.rainbowText {
    color: transparent;
    background-image: linear-gradient(to bottom, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 100% 300%;
    background-position: top;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowShift 2s linear infinite; 
}

.rainbowTextHover:hover {
    color: transparent;
    background-image: linear-gradient(to bottom, red, orange, yellow, green, blue, indigo, violet, red);
    background-size: 100% 300%;
    background-position: top;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbowShift 2s linear infinite; 
}

.clickable {
    cursor: url("Art/pointer.png"), pointer;
}

html, body {
    margin: 0;
    height: 100dvh;
    width: 100dvw;
    font-family: 'font';
    cursor: url("Art/cursor.png"), auto;
    letter-spacing: 1px;
}

main {
    background-color: #008080;
    height: calc(100% - 50px - 4px - 4px); /* 58px = footer height + border-weight*2 */
    display: flex;
}

#desktopApps {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /* align-content: flex-start; */
    /* max-height: 100%; */
}

.desktopApp {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktopApp img {
    height: 100px;
}

.desktopApp img:hover {
    transform: scale(1.1);
    transition: all 0.3s ease-in-out;
}

.desktopApp label {
    color: white;
}

footer {
    background-color: #c3c3c3;
    height: 50px;
    border: 4px solid white;
    border-style: outset;
    padding-right: 5px;
    padding-left: 5px;
    display: flex;
    justify-content: space-between;
    line-height: 50px;
}

#footerText {
    font-size: large;
}

footer button {
    max-height: fit-content;
    margin-top: 12px;
}

#windowContainer {
    width: 500px;
    height: 400px;
    background-color: #c3c3c3;
    border: solid 3px white;
    border-style: outset;
    outline: solid 4px #818181;
    outline-style: outset;
    position: fixed;
    left: calc((100% - 500px + 6px + 8px) / 2);
    top: calc((100% - 400px + 6px + 8px) / 2);
    transform: scale(0);
    transition: transform 0.2s ease;
    transform-origin: center;
    display: none;
}

#windowContainer.expanded {
    left: 4px;
    top: 4px;
    width: calc(100% - 13px);
    height: calc(100% - 13px);
}

.grabbing {
    cursor: url("Art/grab.png"), grabbing;
}

#windowHeader {
    background-image: linear-gradient(to right, #000080 , #1084d0);
    display: flex;
    height: 35px;
    margin: 5px;
    align-items: center;
}

#windowHeader img {
    max-width: 100%;
    max-height: 100%;
}

#windowHeader span {
    color: white;
    /* font-weight: bold; */
    font-size: large;
}

#headerButtons {
    display: flex;
    flex-direction: row;
    margin-left: auto;
    margin-right: 5px;
    gap: 5px;
}

#headerButtons button {
    height: 25px;
    font-weight: bold;
    width: 25px;
}

#contentContainer {
    background-color: white;
    display: block;
    height: calc(100% - 35px - 10px - 6px - 8px - 20px); /* Full parent height - all margins, paddings, borders and header height */
    margin: 20px;
    outline: solid 4px white ; 
    outline-style: inset;
    border: solid 3px #818181; 
    border-style: inset;
    display: flex;
    justify-content: center;
    align-items: center;
}

button {
    cursor: url("Art/pointer.png"), pointer;
    border: 2px solid white;
    border-style: outset;
    font-family: 'Font';
}

button:hover {
    border-style: inset;
    outline-style: inset;
}

.normalButton {
    font-size: large;
    outline: solid 3px #818181;
    outline-style: outset;
    margin-left: 3px;
}

iframe {
    width: 100%;
    height: calc(100% - 40px); /* Full parent height - margin top - margin bottom*/
    margin: 20px;
    border: none;
}

#backButton {
    position: fixed;
    bottom: 3px;
    right: 3px;
}

.columnButtons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: 4px;
}

#wallpaperOptions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
}

.wallpaperOption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wallpaperOption div{
    width: 20px;
    height: 20px;
    border: 3px solid white;
    border-style: outset;
}

.wallpaperOption div:hover {
    border-style: inset;
}