/* Global styles */
body {
    background-color: #2d2d2d;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    text-align: center;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

h1 {
    font-size: 40px;
    color: #d32f2f;
    text-shadow: 2px 2px 5px rgba(255, 0, 0, 0.8);
}

p {
    font-size: 18px;
    margin-top: 10px;
}

form {
    margin-top: 20px;
}

input[type="text"] {
    padding: 10px;
    font-size: 18px;
    width: 80%;
    max-width: 400px;
    border: 2px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
}

input[type="submit"] {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #d32f2f;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #b71c1c;
}

input[type="text"]:focus {
    outline: none;
    border-color: #d32f2f;
}

.question, .message, .answer, .randomNumber {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.answer {
    color: #d32f2f;
    font-size: 24px;
}

.message {
    color: #f1f1f1;
    font-size: 18px;
    font-style: italic;
}

.randomNumber {
    font-size: 18px;
    color: #8e8e8e;
    margin-top: 10px;
}

a {
    color: #d32f2f;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: block;
}

a:hover {
    color: #ff4081;
}

/* Navigation Bar Styles */
nav {
    margin-top: 20px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    padding: 10px 0;
    border-radius: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 20px; 
    margin: 0 10px;
    border-radius: 5px; 
    transition: all 0.3s ease; 
}

nav a:hover {
    background-color: #ff006a; 
    color: #fff; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4); 
    transform: translateY(-2px); 
}

nav a.active {
    background-color: #d32f2f; 
    color: #fff; 
    font-weight: bold;
    border-bottom: 3px solid #fff; 
    padding-bottom: 9px; 
    transition: all 0.3s ease; 
}

/* Music Button Styles */
#music-btn {
    background-color: #d32f2f;
    border: none;
    padding: 10px 20px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 20px;
    border-radius: 5px; 
    transition: background-color 0.3s, transform 0.3s; 
}

#music-btn:hover {
    background-color: #b71c1c;
    transform: scale(1.05); 
}

#music-btn:active {
    transform: scale(0.98); 
}


.magic-8-ball {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.ball {
    width: 200px;
    height: 200px;
    background-color: black; 
    border-radius: 50%; 
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); 
    position: relative;
    animation: glow 1.5s ease-in-out infinite; 
}

/* Glowing effect */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
    50% {
        box-shadow: 0 0 20px #ff4081, 0 0 40px #ff4081, 0 0 60px #ff4081;
    }
    100% {
        box-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
    }
}

/* "▲" symbol replacing*/
.triangle {
    font-size: 100px; 
    color: #2196F3; 
    position: absolute;
    z-index: 1; 
    top: 50%; 
    transform: translateY(-50%); 
    animation: triangle-glow 2s ease-in-out infinite; 
}

/* Glowing effect for the triangle */
@keyframes triangle-glow {
    0% {
        opacity: 0.8; 
        color: #2196F3;
    }
    50% {
        opacity: 0.2; 
        color: #2196F3; 
    }
    100% {
        opacity: 0.8; 
        color: #2196F3;
    }
}
