@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    background: #D68AC4; 
    font-family: 'Press Start 2P', cursive;
    margin: 0;
    height: 100vh; 
    display: flex;
    justify-content: center; 
    align-items: center; 
    flex-direction: column;
}

/* center window */
.window {
    width: 420px;
    background: #c0c0c0;
    border: 3px solid black;
    box-shadow: 5px 5px 0px black;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.window-header {
    background: navy;
    color: white;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.close-btn {
    background: silver;
    border: 2px solid black;
    font-size: 12px;
    padding: 2px 6px;
    cursor: pointer;
}

.desktop-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.desktop-icon-text {
    font-size: 10px;
    margin-top: 5px;
    color: white;
    text-shadow: 1px 1px 2px black;
}

.desktop-icon {
    width: 100%;  
    height: 100%;  
    object-fit: contain;
}

.show-tweets-btn:hover {
    transform: scale(1.1);  
    box-shadow: 5px 5px 5px #666;  
}

.show-tweets-btn:before {
    content: none;
}

.window-body {
    padding: 10px;
    font-size: 12px;
    background: white;
    border-top: 2px solid gray;
}

/* nav */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background: #c0c0c0;
    border-top: 2px solid white;
    border-bottom: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    padding: 2px 5px;
    font-family: 'MS Sans Serif', sans-serif;
}

/* nav start button */
.start-button {
    background: silver;
    border: 2px outset gray;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-button:hover {
    border: 2px inset gray;
}

/* nav start menu */
.start-menu {
    position: absolute;
    bottom: 26px;
    left: 5px;
    width: 160px;
    background: silver;
    border: 2px solid black;
    display: none;
    box-shadow: 4px 4px 0px black;
}

.start-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.start-menu li {
    padding: 5px 10px;
    font-size: 14px;
    border-bottom: 1px solid gray;
}

.start-menu li:hover {
    background: navy;
    color: white;
}

.start-menu a {
    text-decoration: none;
    color: black;
    display: block;
}

.start-menu li:hover a {
    color: white;
}

/* nav clock */
.taskbar-clock {
    font-size: 11px;
    background: #c0c0c0;
    color: black;
    padding: 2px 8px;
    border: 2px inset #a0a0a0;
    margin-right: 6px;
    min-width: 50px;
    text-align: center;
    flex-shrink: 0;
}

.taskbar .taskbar-clock {
    margin-left: auto;
}

.start-icon {
    width: 20px;  
    height: 20px;
    image-rendering: pixelated; 
}

.taskbar-icon {
    width: 16px; 
    height: 16px;
    margin-right: 8px; 
    vertical-align: middle; 
}

/* centering game screen */
.game-screen {
    width: 420px;
    height: 600px;
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
}

.game-title {
    font-size: 2rem;
    color: #ff4d6d;
    font-weight: bold;
    margin-bottom: 15px;
}

/* instructions */
.game-instructions {
    font-size: 1.2rem;
    margin: 20px 0;
    color: #555;
}

/* center buttons */
.buttons {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.buttons button {
    background-color: #ff4d6d;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
}

.buttons button:hover {
    background-color: #e04458;
}

/* heart float area */
.game-area {
    position: relative;
    width: 300px;
    height: 300px;
    min-height: 150px;
    min-width: 300px;
    margin: 20px auto;
    background: #fff0f0;
    border: 1px solid #ff4d6d;
    overflow: hidden;

    touch-action: manipulation;
}

/* hearts */
.heart {
    font-size: 2rem;
    position: absolute;
    cursor: pointer;
    animation: floatHeart 5s linear infinite;
}


/* scoreboard */
.scoreboard {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #c0c0c0;
    border: 2px solid black;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 3px 3px 0px black;
}

/* leaderboard */
.leaderboard {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #c0c0c0;
    border: 2px solid black;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    box-shadow: 3px 3px 0px black;
    width: 150px;
}

.leaderboard h3 {
    margin: 0;
    font-size: 16px;
}

.leaderboard ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.leaderboard li {
    font-size: 12px;
    background: white;
    padding: 5px;
    border: 1px solid black;
    margin-bottom: 5px;
}

/* initials */
.initials-input {
    display: none; /* hide as default */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 2px solid black;
    padding: 20px;
    text-align: center;
    box-shadow: 5px 5px 0px black;
}

.initials-input input {
    font-size: 16px;
    text-transform: uppercase;
    width: 50px;
    text-align: center;
}


/* heart float animation */
@keyframes floatHeart {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-300px);
    }
}




/**************/
/* other game */
/**************/
/* Basket */
.basket {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

/* Falling Objects */
.falling-object {
    position: absolute;
    top: 0;
    font-size: 2rem;
    transition: top 0.05s linear;
}

/* Game area */
.game-area {
    position: relative;
    width: 300px;
    height: 400px;
    margin: 20px auto;
    background: #fff0f0;
    border: 1px solid #ff4d6d;
    overflow: hidden;
}

.skull-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4d6d;
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}


/* mobile buttons */
#mobile-controls {


    margin-bottom: 5px; 
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  #mobile-controls button {
    font-size: 24px;
    padding: 15px;
    background:none;
    color: white;
    border: none;
    cursor: pointer;
    width: 80px;

    touch-action: manipulation;
  }




.sub {
    font-size: 10px;
}




/* some media */
@media screen and (max-width: 650px) { 
    .window {
        width: 90%; 
        height: auto; 
        max-height: 80vh;
        position: absolute;
        top: 50%; 
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .game-screen {
        width: 90%; 
        padding: 15px;
    }

    .game-area {
        width: 300px; 
        height: 300px;
    }

    .window-header {
        font-size: 12px; 
        padding: 4px;
    }

    .close-btn {
        font-size: 12px;
        padding: 2px 6px;
    }

    /* scoreboard and leaderboard smaller */
    .scoreboard {
        font-size: 12px; 
        padding: 5px; 
        width: 120px; 

    .leaderboard {
        font-size: 12px; 
        padding: 5px; 
        width: 120px; 
    }

    .leaderboard h3 {
        font-size: 14px; 
    }

    .leaderboard ul {
        margin-top: 10px;
    }

    .leaderboard li {
        font-size: 10px; 
    }
}
}