/* style.css */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('image_6.jpg') no-repeat center center fixed; /* Backdrop image */
    background-size: cover;
    color: white;
}

.backdrop {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop for readability */
    padding: 20px;
    border-radius: 10px;
    margin: 50px auto;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

h1 {
    font-size: 50px; /* Larger size */
    font-family: 'Libre Baskerville', serif; /* Change to your chosen font */
    margin-bottom: 20px;
    font-weight: bold; /* To ensure it's bold if needed */
}

.slider-container {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="range"],
input[type="number"] {
    width: 100%;
    margin-bottom: 10px;
}

button {
    margin: 10px 5px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #45a049;
}

#timer {
    font-size: 36px; /* or whatever size you prefer */
    margin-top: 20px; /* optional, for spacing */
    text-shadow: 
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000; /* Creates a subtle black outline */
    color: white; /* or another color that contrasts well with your background */
}

/* Existing slider textures */
input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
  height: 15px;
  border-radius: 5px;
  background-image: url('path-to-your-stone-marble-texture.png'); /* Stone/Marble texture */
  background-size: cover;
}

/* For WebKit browsers */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px; /* Slightly larger for visibility */
    height: 28px; /* Slightly larger for visibility */
    border-radius: 50%; /* Makes it circular */
    background: 
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%), /* Light inner highlight */
        radial-gradient(circle at 50% 50%, #606060 0%, #303030 100%); /* Darker base with slight gradient */
    border: 2px solid #000; /* Black border */
    cursor: pointer;
    margin-top: -10px; /* Adjust for vertical alignment */
}

/* For Firefox */
input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%),
        radial-gradient(circle at 50% 50%, #606060 0%, #303030 100%);
    border: 2px solid #000;
    cursor: pointer;
}

/* Mobile-friendly styles */
@media screen and (max-width: 600px) {
    .backdrop {
        margin: 20px auto;
        padding: 15px;
        width: 95%;
    }

    h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    #timer {
        font-size: 48px;
        margin-top: 15px;
    }

    .slider-container {
        margin-bottom: 20px;
    }

    label {
        font-size: 16px;
        margin-bottom: 8px;
    }

    input[type="range"] {
        height: 20px;
        margin-bottom: 8px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 36px;
        height: 36px;
        margin-top: -12px;
    }

    input[type="range"]::-moz-range-thumb {
        width: 36px;
        height: 36px;
    }

    input[type="number"] {
        font-size: 16px;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }

    button {
        font-size: 18px;
        padding: 15px 30px;
        margin: 10px 8px;
        min-width: 100px;
    }
}

/* Prevent zoom on input focus for iOS */
input[type="number"] {
    font-size: 16px;
}

/* Touch-friendly button active states */
button:active {
    background-color: #3d8b40;
    transform: scale(0.98);
}