/* styles.css */

/* General Styling */
:root {
    --bg-color-light: #f6f7f8; /* Light mode background */
    --bg-color-dark: #4e4e4e; /* Dark mode background */
    --text-color-light: #333; /* Light mode text color */
    --text-color-dark: #eaeaea; /* Dark mode text color */
    --container-bg-light: #ffffff; /* Light mode container background */
    --container-bg-dark: #3a3a3a; /* Dark mode container background */
    --button-bg: #007cba; /* Button background for both modes */
    --button-hover-bg: #005fa3; /* Button hover background for both modes */
    --button-active-bg: #003f73; /* Button active background for both modes */
    --footer-bg-light: #ffffff; /* Light mode footer background */
    --footer-bg-dark: #4e4e4e; /* Dark mode footer background */
}

html, body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: 'Source Serif Pro', serif;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    display: flex;
    flex-direction: column;
    width: 100%;
}

header {
    background-color: var(--footer-bg-light);
    padding: 5px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    display: flex;
    align-items: center;
}

main {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

a {
    text-decoration: none;
}

a:link, a:visited {
    color: #444444;
}

.logo {
    width: 25%;
    padding: 5px;
}

.app-container {
    display: flex;
    padding: 20px;
 /* Ensure scrolling is enabled */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling for mobile */
}

.app-main {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.column {
    width: 50%
}

.counter {
    max-width: 400px;
}

/* Main App Section Styling */
.container {
    background-color: var(--container-bg-light);
    padding: 0px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: auto auto auto 35%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

h2 {
    font-size: 20px;
    color: #444;
    margin-bottom: 15px;
}

#count {
    border: none;
    text-align: center !important;
    font-size: 5em;
    font-weight: bold;
    color: #007cba;
    padding: 5px 0;
}

button {
    background-color: var(--button-bg);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    outline: none;
    font-family: 'Source Serif Pro', serif;
    width: 100%;
    font-weight: 500;
}

button:hover {
    background-color: var(--button-hover-bg);
}

button:active {
    background-color: var(--button-active-bg);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button#resetCounter {
    font-family: 'Source Serif Pro', serif;
    width: 100%;
    font-weight: 500;
}

.counter-buttons {
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.button-group button {
    font-size: 1.0rem;
    width: 48%;
    margin: 5px 0;
}

div#timerDisplay {
    font-size: 1.5em;
    color: var(--button-bg);
}

.timer-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.timer-buttons button {
    width: 32%;
}

.status-circle {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: transparent;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    margin-left: 5px;
    transition: background-color 0.5s ease;
}

.green {
    background-color: green;
}

.orange {
    background-color: orange; /* Color when the timer is stopped */
}

/* Sound Settings Section Styling */
.sound-settings {
    height: fit-content;
    background-color: var(--container-bg-light);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 200px;
    width: 100%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sound-settings h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sound-settings label {
    font-size: 14px;
    margin-bottom: 5px;
}

.sound-settings input {
    padding: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.sound-settings button {
    background-color: var(--button-bg);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.soundcol {
    width: 240px;
    right: 2%;
    /* justify-content: end; */
    position: relative;
}

footer {
    position: fixed;
    bottom: 0;
    background-color: var(--footer-bg-light);
    padding: 5px 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

footer p {
    margin: 0;
    color: #555;
}

.copyright > p {
    font-size: 0.7em;
}

/* Dark Mode Styles */
body[data-theme='dark'] {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

header[data-theme='dark'] {
    background-color: var(--footer-bg-dark);
}

.container[data-theme='dark'] {
    background-color: var(--container-bg-dark);
}

.sound-settings[data-theme='dark'] {
    background-color: var(--container-bg-dark);
}

footer[data-theme='dark'] {
    background-color: var(--footer-bg-dark);
}

/* Hide the scrollbar for the input field */
input[type="number"] {
    font-family: 'Source Serif Pro', serif;
    border: none; /* Hide the border */
    outline: none; /* Remove the outline on focus */
}

/* Hide the scrollbar for the input field */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide the scrollbar in Firefox */
input[type="number"] {
    overflow: hidden;
}

/* Optional: Add some styling for focus */
input[type="number"]:focus {
    box-shadow: none; /* Remove any default focus styles */
}

.version {
    font-size: 0.5em;
}

#soundicon {
    width: 25px;
}

#soundtimer {
    display: flex;
    justify-content: space-evenly;
    align-content: center;
    align-items: center;
}
/* Media Queries */
@media only screen and (max-width: 480px) {

    .column {
        width: 90vw;
    }

    header {
        max-width: 480px;
    }
    .app-container {
        display: flex;
        flex-direction: column;
        align-content: space-around;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 10px;
    }

    #count {

    }



    .app-main {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container {
        margin-right: 10px !important;
        width: 70%;
        margin: auto;
    }

    .sound-settings {
        width: unset;
        margin: auto !important;
        max-width: 100%;
    }

    footer {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
    }
}

@media only screen and (max-width: 768px) {

    .column {
        width: 90vw;
    }

    .container {
        width: 80%;
        margin: auto;
    }

    .app-container {
        display: flex;
        flex-direction: column;
        align-content: space-around;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 10px;
        padding: 10px;
    }
}
