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

body {
    cursor: url("jellyfish.png") 16 16, auto;
}

#home {
    display: block;
}

#packingList{
    list-style: none;
}

#packingList button, #scheduleList button{
    margin-left: 10px;
}

.header-image{
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

body{
    margin: 0;
    font-family: Arial, sans-sarif;
    background-color: #f4ecc8;
    color: #16425b;
}

header{
    background-color: #3392c2;
    color: white;
    text-align: center;
    padding-top: 20px;
}

.logo{
    font-size: 28px;
    padding-bottom: 15px;
}

.top-bar {
    display: flex;
    justify-content: center;
    gap: 0;
    background-color: #005377;
    padding: 0;
}

.top-link {
    background-color: transparent;
    color: #fff8e7;
    border: none;
    border-bottom: 4px solid transparent;
    padding: 14px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.top-link:hover {
    background-color: #006994;
    border-bottom: 4px solid #f3c677;
}

section {
    display: none;
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background-color: rgb(251, 252, 233);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

input{
    padding: 10px;
    border: 2px solid #90e0ef;
    border-radius: 8px;
    font-size: 15px;
    margin: 5px;
}

#addItemButton, #addEventButton{
    background-color: #f28c6f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
}

#addItemButton:hover, #addEventButton:hover{
    background-color: #e76f51;
}

#packingList button,
#scheduleList button {
    margin-left: 10px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
}

#packingList button:hover,
#scheduleList button:hover {
    background-color: #d90429;
}

li {
    margin: 12px 0;
    font-size: 17px;
}

.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.beach-game {
    position: relative;
    width: 100%;
    height: 500px;
    margin-top: 25px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(
        to bottom,
        #8ed8f8 0%,
        #b8e8f7 45%,
        #42b9d6 45%,
        #42b9d6 65%,
        #f4d49a 65%,
        #f4d49a 100%
    );
}

.game-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: white;
    text-shadow:
        4px 0 0 #00ffff,
        -4px 0 0 #ff2bd6,
        0 0 5px #000000;
}

.trash {
    position: absolute;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.game-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.game-controls p {
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: #111111;
    text-shadow:
        2px 0 #00ffff,
        -2px 0 #ff2bd6;
}

.timer-options {
    display: flex;
    gap: 8px;
}

.time-option {
    padding: 10px 12px;
    font-family: 'Press Start 2P', cursive;
    font-size: 9px;
    color: #111111;
    background: white;
    border: 2px solid #00ffff;
    box-shadow:
        3px 3px 0 #ff2bd6,
        0 0 6px #00ffff;
    cursor: pointer;
}

.time-option:hover {
    background: #00ffff;
    color: #111111;
}

#timer {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: white;
    text-shadow:
        3px 0 #00ffff,
        -3px 0 #ff2bd6,
        0 0 5px #000000;
}

#winMessage {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
}

#winMessage span {
    display: block;
    font-size: 36px;
    color: white;
    text-shadow:
        6px 0 0 #00ffff,
        -6px 0 0 #ff2bd6,
        0 0 10px #000000;
}

#playAgainButton {
    margin-top: 25px;
    padding: 12px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background: #00ffff;
    border: 3px solid white;
    cursor: pointer;
}

#playAgainButton:hover {
    background: white;
}

#loseMessage {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    text-align: center;
    font-family: 'Press Start 2P', cursive;
}

#loseMessage span {
    display: block;
    font-size: 36px;
    color: white;
    text-shadow:
        6px 0 0 #00ffff,
        -6px 0 0 #ff2bd6,
        0 0 10px #000000;
}

#loseMessage button {
    margin-top: 25px;
    padding: 12px 20px;
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    background: #00ffff;
    border: 3px solid white;
    cursor: pointer;
}

#loseMessage button + button {
    margin-left: 10px;
}

#loseMessage button:hover {
    background: white;
}