@import url('https://fonts.googleapis.com/css2?family=Geomini:wght@200..800&family=Sansation:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Stack+Sans+Notch:wght@200..700&display=swap');

/* Global Settings */
body {
    font-family: 'Sansation', 'Geomini', sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
    background-image: url(assets/background.jpeg);
    background-size: cover;
    height: 100vh;
    box-sizing: border-box;
}

h1 {
    font-family: 'Stack Sans Notch', sans-serif;
    font-weight: bold;
    margin: 20px 0;
}

h2 {
    font-family: 'Stack Sans Notch', 'Sansation', 'Geomini', sans-serif;
    margin: 10px 0;
    font-size: 2em;
}

p {
    font-family: 'Geomini', 'Sansation', sans-serif;
    line-height: 1.6;
    margin: 5px 0;
    font-size: 1em;
}

a {
    text-decoration: none;
    color: #8C4DB1;
}

img {
    max-width: 100%;
    height: auto;
}
/* */
.brightness-overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: black;
    opacity: 0;
    z-index: 99999;
    pointer-events: none;
    transition: opacity 0.1s;
}

.taskbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
    box-sizing: border-box;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    user-select: none;
    font-size: 1.2em;
    z-index: 100;
}

.taskbar div {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
}

.taskbar-left {
    justify-content: left;
}

.taskbar-left button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    height: 100%;
}

.taskbar-left img {
    height: 70%;
}

.window {
    position: absolute;
    display: none;
    border: 1em ridge grey;
    background-color: white;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: absolute;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
    user-select: none;
    top: 0;
    cursor: grab;
}

.closebutton {
    width: 15px;
    height: 15px;
    background-color: #fd5754;
    border: 1px solid #de4542;
    border-radius: 50%;
    cursor: pointer;
}

/* Home Window */
#home {
    display: block;
    border: 1em ridge #8C4DB1;
    background-color: #f0ffe8;
    width: 1000px;
    z-index: 5;
}

#home .hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #429e00;
    color: white;
    margin-bottom: 20px;
    padding: 35px 15% 5px 15%;
}

#home .hero-section table {
    width: 60%;
    border-collapse: collapse;
}

#home .hero-section tr {
    max-height: 200px;
}

#home .hero-section td {
    padding: 20px;
    width: 50%;
}

#home .logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#home .logo-container img {
    width: 100%;
}

#home .hero-section h1 {
    font-size: 4em;
    font-family: 'Stack Sans Notch', sans-serif;
    margin: 0;
}

#home .hero-section p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

#home .main-content {
    padding: 20px 15%;
}

#home .socials img {
    width: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Terminal Window */
#terminal {
    display: block;
    color: #4AF626;
    background-color: black;
    height: 300px;
    top: 20%;
    left: 20%;
}

#terminal .header {
    background-color: rgba(255, 255, 255, 0.25);
}

#terminal .main-content {
    padding: 20px;
    padding-top: 60px;
    font-family: monospace;
    font-size: 1em;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

#terminal .main-content h2, #terminal .main-content p {
    font-family: monospace;
}

#terminal input {
    background: black;
    color: #4AF626;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1em;
    width: 80%;
}

#terminal .terminalprefix {
    color: #8C4DB1;
    font-weight: bold;
}

#terminal .terminalcommand {
    color: white;
}

/* Calculator Window */
#calculator {
    display: block;
    color: black;
    background-color: whitesmoke;
    height: 600px;
    border: 1em ridge lightblue;
    top: 40%;
    left: 80%;
}

#calculator .main-content {
    padding: 60px 20px 20px 20px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 5%;
}

#calculator .calcoutput {
    height: 20%;
    width: 95%;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: rgb(197, 197, 197);
    color: black;
    border: 3px solid grey;
    border-radius: 10px;
    font-size: 4.5em;
    font-family: monospace;
}

#calculator .calcbuttons {
    height: 80%;
    width: 100%;
    padding: 0;
    display: grid;
    gap: 2%;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

#calculator .calcbuttons button {
    border: 2px solid grey;
    border-radius: 10px;
    font-size: 2em;
    font-family: monospace;
}

#calculator .calcbuttons button:hover {
    background-color: rgb(186, 186, 186);
    cursor: pointer;
}

/* Settings Window */
#settings {
    background-color: rgb(252, 252, 252);
    color: black;
    border: 1em ridge lightgrey;
}

#settings .main-content {
    padding: 60px 40px 20px 40px;
    height: 100%;
    box-sizing: border-box;
}

#settings .main-content b {
    display: block;
    font-size: 1.2em;
    margin: 10px 0;
}

#settings .main-content .wallpaper-colour {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3%;
    margin: 10px 0 20px 0;
}

#settings .main-content .wallpaper-colour button {
    width: 40px;
    height: 40px;
    border: 1px solid grey;
    border-radius: 50%;
}

#settings .main-content .wallpaper-colour button.active {
    border: 3px solid skyblue;
}

#settings .main-content .wallpaper-image {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
    margin-top: 10px;
}

#settings .main-content .wallpaper-image button {
    background: none;
    border: none;
    padding: 0;
    height: 100%;
}

#settings .main-content .wallpaper-image img {
    border: 3px solid transparent;
    border-radius: 5px;
    height: 80px;
    width: 120px;
    overflow: hidden;
}

#settings .main-content .wallpaper-image img.active {
    border: 3px solid skyblue;
}

#settings .main-content .brightness-slider-container {
    width: 100%;
    margin: 10px 0;
}

#settings .main-content .slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 10px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    transition: all 0.2s;
}

#settings .main-content .slider:hover {
    opacity: 1;
}

#settings .main-content .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    background: #439E02;
}

#settings .main-content .slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    background: #439E02;
}

/* Music Player Window */
#music {
    background-color: rgb(25, 10, 10);
    color: white;
    border: 1em ridge #DF354A;
    height: 650px;
}

#music .header {
    background-color: rgba(255, 255, 255, 0.25);
}

#music .main-content {
    display: block;
    padding: 60px 20px 20px 20px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

#music .main-content .now-playing {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#music .main-content .now-playing p {
    margin: 0;
}

#music .main-content .now-playing .album-cover-container {
    height: 40%;
    width: 40%;
    border-radius: 25px;
    margin: 10px 0;
    overflow: hidden;
    box-sizing: border-box;
}

#music .main-content .now-playing img {
    height: 100%;
    width: 100%;
}

#music .main-content .progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    font-size: 12px;
}

#music .main-content .progress-container span {
    width: 10%;
    text-align: center;
}

#music .main-content #progressbar {
    width: 80%;
    margin: 0 10px;
    cursor: pointer;
    accent-color: #DF354A;
}

#music .main-content .music-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
    margin: 20px 30%;
}

#music .main-content .music-controls button {
    width: 40px;
    height: 40px;
    border: 1px solid grey;
    border-radius: 50%;
    background-color: aliceblue;
    display: flex;
    justify-content: center;
    align-items: center;
}

#music .main-content .music-controls button img {
    width: 80%;
    height: auto;
}

#music .main-content .playlist {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    overflow-y: auto;
}

#music .main-content .playlist .playlist-track {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}