/* Base Styling */
body {
    background-image: url("images/roserain.jpg");
    font-family: 'Courier New', Courier, monospace;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0;
    height: 100vh;
    color: #fff;
}

/* Header Styling */
.header {
    display: flex;
    justify-content: space-between; /* Adjust for smaller screens */
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header nav a {
    text-decoration: none;
    color: white;
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

.header nav a:hover {
    color: #00bcd4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header nav {
        display: flex;
        flex-direction: column; /* Stack links vertically */
        align-items: center;
    }

    .header nav a {
        font-size: 16px;
        margin: 5px 0;
    }
}

/* Content Styling */
.content {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 90%; /* Adjust for smaller screens */
    max-width: 400px;
}

#factDisplay {
    margin-top: 15px;
    font-size: 16px;
}

/* Button Styling */
button {
    padding: 10px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
}

button:hover {
    background: rgba(255, 255, 255, 0.6);
}

#pButton {
    height: 80px;
    width: 80px;
    border: none;
    background-size: cover;
    background-position: center;
    outline: none;
    border-radius: 50%;
}

.play {
    background: url('images/play.png') no-repeat center;
    background-size: contain;
}

.pause {
    background: url('images/pause.png') no-repeat center;
    background-size: contain;
}

/* Center Block Adjustments */
.center-block {
    max-width: 90%;
    margin: 10px auto;
    text-align: center;
    position: absolute;
    top: 25%;
    right: 40%;
}

/* Responsive Media Queries */
@media (max-width: 480px) {
    .content {
        padding: 15px;
        font-size: 14px;
    }

    button {
        padding: 8px 15px;
        font-size: 14px;
    }

    #pButton {
        height: 60px;
        width: 60px;
    }

    #factDisplay {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header {
        flex-direction: column;
        padding: 10px;
    }

    .header nav {
        flex-direction: column;
        align-items: center;
    }

    .header nav a {
        font-size: 16px;
        margin: 5px 0;
    }

    /* Content */
    .content {
        width: 95%;
        max-width: 350px;
        padding: 15px;
    }

    #factDisplay {
        font-size: 14px;
    }

    /* Button */
    button {
        padding: 8px 15px;
        font-size: 14px;
    }

    #pButton {
        height: 70px;
        width: 70px;
    }

    /* Center Block */
    .center-block {
        top: 30%;
        right: 19%;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    /* Header */
    .header nav a {
        font-size: 14px;
        margin: 3px 0;
    }

    /* Content */
    .content {
        width: 90%;
        max-width: 300px;
        padding: 10px;
    }

    #factDisplay {
        font-size: 12px;
    }

    /* Button */
    button {
        padding: 6px 12px;
        font-size: 12px;
    }

    #pButton {
        height: 60px;
        width: 60px;
    }

    /* Center Block */
    .center-block {
        top: 35%;
        right: 20%;
        max-width: 85%;
    }
}