@import url("https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&display=swap");

body {
    margin: 0;
    padding: 0;
    font-family: "Inconsolata", monospace;
    font-size: 14px;
    color: white;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#navigationComponent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

button {
    cursor: pointer;
    border: none;
    color: white;
    background: transparent;
    font-family: "Inconsolata", monospace;
    padding: 10px;
    font-size: 1em;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#info-left,
#info-right {
    position: absolute;
    top: 80px;
    z-index: 10;
}

#info-left {
    left: 25px;
}

#info-right {
    right: 25px;
    text-align: right;
}

#bomb-grab-area {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: transparent;
    cursor: grab;
    z-index: 5;
}

#instructions,
#congratulations {
    position: absolute;
    transition: visibility 0s, opacity 0.5s linear;
    z-index: 100;
}

@media (min-height: 535px) {
    #instructions {
        min-height: 200px;
    }
}

#congratulations {
    background-color: rgba(255, 255, 255, 0.95);
    color: black;
    padding: 50px 80px;
    opacity: 0;
    visibility: hidden;
    max-width: 400px;
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

#congratulations h1 {
    margin-top: 0;
    font-size: 2em;
}

#congratulations p {
    margin: 20px 0;
}

#congratulations button {
    border: 1px solid rgba(0, 0, 0, 0.9);
    color: black;
    margin: 5px;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: bold;
}

#congratulations button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

#back-to-home {
    background-color: #667eea !important;
    color: white !important;
    border: none !important;
}

#back-to-home:hover {
    background-color: #5568d3 !important;
}

#settings {
    position: absolute;
    top: 80px;
    display: flex;
    align-items: center;
    gap: 10px;
    right: 11em;
    z-index: 10;
}

#settings,
#info-left,
#info-right {
    opacity: 0;
    transition: opacity 3s;
}

@media (max-width: 450px) {
    #settings,
    #info-left,
    #info-right {
        opacity: 0;
    }
    #instructions {
        visibility: hidden;
    }
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 5px;
}

.dropbtn:after {
    content: "▼";
    margin-left: 7px;
    font-size: 0.8em;
    vertical-align: text-top;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#windmill {
    position: absolute;
    right: 0;
    fill: rgba(255, 255, 255, 0.5);
    transform-origin: bottom;
    z-index: 1;
}

#windmill-head {
    animation-name: rotate;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#wind-info {
    position: absolute;
    width: 150px;
    text-align: center;
    margin-bottom: 30px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

#fullscreen {
    all: unset;
    cursor: pointer;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 10;
}
