@font-face {
    font-family: 'clockicons';
    src: url('../fonts/clockicons.woff2') format('woff2'),
         url('../fonts/clockicons.woff') format('woff'),
         url('../fonts/clockicons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Regular.woff2') format('woff2'),
         url('../fonts/Orbitron-Regular.woff') format('woff'),
         url('../fonts/Orbitron-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Header Container */
.header-container {
    position: relative; /* Position relative to allow absolute positioning of logos */
    text-align: center;
    padding: 40px; /* Ensure padding to accommodate logo spacing */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    color: #f9f9f9; /* Text color */
}

/* Logo Left */
.logo-left {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-70%);
    width: 150px; /* Adjust logo size */
    height: 150px;
    opacity: 1; /* Transparency effect */
}

/* Logo Right */
.logo-right {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-70%);
    width: 150px; /* Adjust logo size */
    height: 150px;
    opacity: 1; /* Transparency effect */
}



/* Timer Display */
#timer {
    font-family: 'clockicons', sans-serif; /* Use the clockicons font */
    font-size: 350px;
    color: orange; /* Default color */
    margin: -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.5s, text-shadow 0.5s; /* Add transition for smooth color and shadow change */
}

#timer.red {
    color: red; /* Change color to red when remaining time is less than 60 seconds */
}

/* Buttons Styling */
button {
    font-family: 'Orbitron', sans-serif; /* Cinematic font for buttons */
    padding: 10px 20px;
    font-size: 20px;
    margin: 10px;
    border: none;
    cursor: pointer;
    color: rgb(228, 228, 228);
    border-radius: 20px;
}

.edit {
    background-color: #2195f346;
}

.reset {
    background-color: #aa6f0073;
}

.start {
    background-color: #4caf4f88;
}

.pause {
    background-color: #f4433659;
}

.save {
    background-color: #504c63;
}

button:hover {
    opacity: 0.8;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    background-color: #333;
    padding: 0px;
    width: 50%;
    margin: 10% auto;
    color: white;
    border-radius: 10px;
}

.close {
    color: rgb(54, 54, 54);
    font-size: 30px;
    float: right;
    cursor: pointer;
}

.edit-fields {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.edit-fields label,
.edit-fields input {
    display: block;
    margin: 10px;
    text-align: left;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    font-size: 18px;
    text-align: center;
    background-color: #555;
    color: white;
    border: none;
    border-radius: 5px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
}

.modal-buttons button {
    width: 30%; /* Distribute buttons in modal evenly */
}

/* Header Styling */
.highhead {
    font-family: 'Orbitron', sans-serif; /* Robotic font */
    font-size: 70px; /* Adjust size for prominence */
    text-transform: uppercase; /* Ensure all caps */
    color: #f9f9f9; /* Neutral white text */
    background: linear-gradient(90deg, #10777a, #750404);
    background-position: center; /* Position the gradient in the center */
    text-align: center;
    margin-top: 10px;
    padding: 40px; /* Add padding to adjust height */
    border-radius: 10px; /* Optional: add rounded corners */
    height: 80px;
}

/* Media Queries for responsive design */
@media screen and (max-width: 1200px) {
    #timer {
        font-size: 180px; /* Adjust font size for larger screens */
    }

    .highhead {
        font-size: 60px; /* Adjust header size */
        padding: 30px;
    }

    .modal-content {
        width: 70%; /* Slightly reduce modal width */
    }

    button {
        width: 80%; /* Buttons take up more space */
    }
}

@media screen and (max-width: 768px) {
    #timer {
        font-size: 120px; /* Adjust font size for tablets */
    }

    .highhead {
        font-size: 50px; /* Adjust header size */
        padding: 20px;
    }

    .modal-content {
        width: 80%; /* Take full width for tablets */
    }

    .edit-fields {
        flex-direction: column; /* Stack inputs vertically */
        align-items: center;
    }

    input[type="number"] {
        width: 80%; /* Full width for better usability */
    }

    button {
        width: 90%; /* Button width for tablets and smaller screens */
        margin: 10px auto;
    }
}

@media screen and (max-width: 600px) {
    #timer {
        font-size: 100px; /* Adjust font size for smartphones */
    }

    .highhead {
        font-size: 40px; /* Adjust header size */
        padding: 20px;
    }

    .modal-content {
        width: 90%; /* Full width for smartphones */
    }

    .edit-fields {
        flex-direction: column; /* Stack inputs vertically */
        align-items: center;
    }

    input[type="number"] {
        width: 80%; /* Full width for small screens */
    }

    button {
        width: 80%; /* Adjust button width for small screens */
        margin: 10px auto;
    }
}
