/* Import the fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jacques+Francois+Shadow&display=swap');

body {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    padding: 20px;
    background-color: #f5f5dc; /* Light beige background */
}

/* Author label */
.author {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 15px;
    font-family: 'Oswald', sans-serif;
    color: #333;
    background-color: #f5f5dc;
    padding: 5px 10px;
    border-radius: 5px;
}

.container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
}

h1 {
    font-size: 32px;
    margin-bottom: 40px;
    font-family: 'Jacques Francois Shadow', serif; /* Supporting font for title */
}

#instruction {
    font-size: 40px;
    margin-bottom: 60px;
}

#circle {
    width: 100px;
    height: 100px;
    background-color: #18b833; /* Matches background */
    border-radius: 50%;
    margin: 60px auto;
    border: 5px solid #006400; /* Dark green border */
    transition: transform 7s ease-in-out;
    padding:80px;

}

.controls {
    position: absolute;
    top: 80px;
    left: 10px;
    text-align: left;
    margin-right: 0; /* Remove the margin since it's now top-left aligned */
}

button {
    padding: 10px 30px;
    font-size: 18px;
    background-color: #ffd700; /* Yellow buttons */
    color: black;
    border: none;
    cursor: pointer;
    margin: 5px 0;
    width: auto; /* Make buttons wider */
    font-family: 'Oswald', sans-serif; /* Main font */
    border-radius: 10px;
}

button:hover {
    background-color: #ffc107;
}

button:active {
    background-color: #ffa500; /* Darker yellow for active state */
    transform: scale(0.98); /* Slightly shrink the button for feedback */
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.music-control {
    text-align: center; /* Center the button inside this div */
    margin-top: 10px; /* Add some space above the music button */
}

#music-btn {
    background-color: transparent; /* Transparent background */
    border: 2px solid #ffd700; /* Yellow border */
    border-radius: 20px; /* Rounded corners */
    cursor: pointer;
    padding: 10px 0; /* Vertical padding for the button */
    width: 300px; /* Set the width to 400px */
    height:300px
}

#music-btn img {
    width: 100px; /* Adjust the image size */
    height: 100px;
}

#music-btn img:active {
    transform: scale(0.95); /* Add a slight shrink effect when clicked */
}

.journal-container {
    max-width: 400px;
    margin: 20px auto; /* Center the journal section */
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #ffffff00; /* White background for contrast */
    position: absolute; /* Fix position */
    top: 300px;
    right: 40px; /* Align to the right */
}

textarea {
    width: 100%; /* Full width */
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#save-journal {
    background-color: #ffd700; /* Yellow button */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
}

.counter {
    position: absolute; /* Fix position */
    top: 20px;
    right: 20px; /* Align to the right */
    background-color: #f5f5dc; /* Light beige background */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #333;
}

@keyframes wiggle {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.wiggle {
    animation: wiggle 0.8s; /* Duration of the wiggle effect */
}


@media only screen and (max-width: 768px) {
    body {
        display: none; /* Hide all content on mobile devices */
    }
    #mobile-warning {
        display: block; /* Show warning message */
    }
}

/* General Link Styles */
a {
    color: #3498db; /* Change to your site's primary color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s ease, background-color 0.3s ease; /* Smooth color transition */
}

/* Hover Effects */
a:hover {
    color: #2c3e50; /* Darker shade on hover */
    background-color: rgba(52, 152, 219, 0.2); /* Light background on hover */
    border-radius: 4px; /* Optional: add rounded corners */
    padding: 2px 4px; /* Optional: add padding */
}

/* Active Links */
a:active {
    color: #ffd700; /* Change color when the link is active */
}

/* Visited Links */
a:visited {
    color: blue; /* Change color for visited links */
}

/* Style for the circle container */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
    /* Center the sliders */
}

/* Instruction text */
.instructions {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    /* Center align the instruction */
}

/* Style for individual sliders */
input[type="range"] {
    width: 80%;
    appearance: none;
    height: 15px;
    /* Makes the slider thicker */
    background: #ddd;
    /* Gray background for the track */
    border-radius: 20px;
    /* Rounded track */
    position: relative;
}

/* Handle - the draggable part of the slider */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /* Circle shape for the thumb */
    background: #18b833;
    /* Green color matching the circle */
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: background 0.3s;
}

/* Hover effect for the thumb */
input[type="range"]::-webkit-slider-thumb:hover {
    background: #155e25;
    /* Darker green on hover */
}

/* Slider - Firefox */
input[type="range"]::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /* Circle shape */
    background: #18b833;
    cursor: pointer;
}

/* Slider - IE */
input[type="range"]::-ms-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    /* Circle shape */
    background: #18b833;
    cursor: pointer;
}

/* Custom Styling for Labels */
.slider-container label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}