body{
    background-image: url('./assets/wallpaper.jpg');
    background-size: cover;
    height: 98vh;
}

.topbar{
    display: flex;
    justify-content: space-evenly;
    position: absolute;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgb(219, 236, 255);
    height: 40px;
}

.topbartext{
    font-size: 24px;
    font-family: 'Londrina Solid', cursive;
    color: #000000;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 35%;
    transform: translateY(-10px);
    
} 

.handle{
    width: 100%;
    height: 40px;
    background-color: #e6e6e6;
    transform: translateY(-20px);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    user-select: none;
    cursor: grab;
}


.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.desktopicons {
    position: absolute;
    top: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.desktopicon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
    user-select: none;
}

.desktopicon p {
    color: #ffffff;
    font-family: 'Londrina Solid', cursive;
    font-size: 16px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    margin: 4px 0 0 0;
    text-align: center;
}

.window {
    border:solid;
    width: 500px;
    border-radius: 16px;
    position: absolute;
    top: 45%;
    left: 35%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    height: 650px;
    animation: windowOpen 0.8s ease-out forwards;
}

.calcgrid {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
}

.calcbutton {
    background-color: #167cdb;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    width: 100px;
    height: 100px;
    cursor: pointer;
    border-radius: 8px;
    font-family: 'Londrina Solid', cursive;
    font-size: 50px;
    font-weight: bold;
    color: #001427;
    text-align: center;
    transition: background-color 0.1s ease, transform 0.1s ease;
}
.calcbutton:hover {
    background-color: #0f5ca8;
}

.calcbutton:active {
    background-color: #0b3f74;
    transform: scale(1.05);
}
.calcdisplay {
    display: block;
    width: 416px;
    height: 50px;
    margin: 0 auto 10px auto;
    font-size: 24px;
    text-align: right;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Londrina Solid', cursive;
    font-size: 50px;
    font-weight: bold;
    color: #167cdb;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    animation: titleLoad 0.5s ease-out forwards;
}

.windowbig {
    border:solid;
    width: 1500px;
    border-radius: 16px;
    position: absolute;
    top: 45%;
    left: 35%;
    transform: translate(-50%, -50%);
    background-color: #f9f9f9;
    height: 800px;
    animation: windowOpen 0.8s ease-out forwards;
}

.browserhandle {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding: 0 12px;
    box-sizing: border-box;
    transform: none;
    position: relative;
    z-index: 2;
}

.browsertitle {
    flex: 1;
    text-align: center;
    margin: 0;
    font-family: 'Londrina Solid', cursive;
    font-size: 30px;
    font-weight: bold;
    color: #167cdb;
    white-space: nowrap;
}

.browserbtn {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.browserbtn:hover { background: rgba(0, 0, 0, 0.08); }
.browserbtn:active { background: rgba(0, 0, 0, 0.16); }

.browserurl {
    flex: 0 0 600px;
    height: 30px;
    font-size: 16px;
    text-align: left;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.browseriframe {
    display: block;
    width: 100%;
    height: calc(100% - 50px);
    border: none;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* ---- Spotify app ---- */
.spotifywindow {
    width: 500px;
    height: 480px;
    left: 50%;
    background-color: #121212;
    border: none;
    overflow: hidden;
}

.spotifyhandle {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 14px;
    box-sizing: border-box;
    transform: none;
    background-color: #000000;
}

.spotifytitle {
    flex: 1;
    font-family: 'Londrina Solid', cursive;
    font-size: 22px;
    color: #ffffff;
}

.spotifybody {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100% - 44px);
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
    color: #ffffff;
    font-family: 'Londrina Solid', cursive;
    line-height: 1.5;
}

.spotifylogin, .spotifyplaying {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.spotifyprompt {
    font-size: 26px;
    margin: 0;
    color: #b3b3b3;
    letter-spacing: 0.5px;
}

.spotifyconnectbtn, .spotifylogoutbtn {
    font-family: 'Londrina Solid', cursive;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    background-color: #1DB954;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.1s ease;
}
.spotifyconnectbtn:hover, .spotifylogoutbtn:hover { background-color: #1ed760; }
.spotifyconnectbtn:active, .spotifylogoutbtn:active { transform: scale(1.05); }

.spotifylogoutbtn {
    background-color: transparent;
    color: #b3b3b3;
    border: 1px solid #b3b3b3;
    font-size: 16px;
    padding: 8px 24px;
    margin-top: 8px;
}
.spotifylogoutbtn:hover { background-color: rgba(255,255,255,0.1); color: #ffffff; }

.spotifyconfignote {
    font-size: 15px;
    color: #e0245e;
    margin: 0;
    max-width: 300px;
    line-height: 1.5;
}

.spotifyclientinput {
    width: 300px;
    height: 42px;
    font-size: 16px;
    padding: 6px 16px;
    margin: 0;
    border: 1px solid #535353;
    border-radius: 21px;
    background-color: #282828;
    color: #ffffff;
    outline: none;
    box-sizing: border-box;
    text-align: center;
}
.spotifyclientinput::placeholder { color: #8a8a8a; }
.spotifyclientinput:focus { border-color: #1DB954; }

.spotifyredirectnote {
    font-size: 13px;
    color: #8a8a8a;
    margin: 0;
    max-width: 300px;
    line-height: 1.6;
    word-break: break-all;
}

.spotifyhelplink {
    font-size: 15px;
    color: #1DB954;
    margin: 0;
    text-decoration: none;
}
.spotifyhelplink:hover { text-decoration: underline; }

.spotifyart {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    background-color: #282828;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    margin-bottom: 6px;
}

.spotifytrackname {
    font-size: 28px;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
    letter-spacing: 0.5px;
    max-width: 380px;
}

.spotifyartistname {
    font-size: 20px;
    margin: 0;
    color: #b3b3b3;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.spotifystatustext {
    font-size: 16px;
    margin: 0;
    color: #1DB954;
    letter-spacing: 1px;
}