* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Sour Gummy', sans-serif;
    font-size: 24px;
    /*background-image: url('./images/background-op1.jpg'); */
    transition: background-image 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
}

.app-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
}

button {
    font-family: 'Sour Gummy', sans-serif;
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    color: #fff;
    padding: 10px 20px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out, background-color 0.3s ease-in-out, color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#start-pause{
    background-color: #fff;
    color: #000;
}

#start-pause:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 15px;
}

.timer-display {
    font-size: 250px;
    margin: 20px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

button.active {
    background-color: #fff;
    color: #000;
}

.pomodoro-state {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin: 20px;
    font-size: 24px;
    text-align: center;
    color: #fff;
}

#setting-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    width: 300px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -300px;
    z-index: 999;
    transition: left 0.8 ease-in-out;
}

#setting-sidebar.show {
    left: 0;
}

.setting-sidebar-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    width: 100%;
}

label {
    font-family: 'Sour Gummy', sans-serif;
    font-size: 24px !important;
    color: #fff;
}

input, select {
    font-family: 'Sour Gummy', sans-serif;
    font-size: 16px;
    border-radius: 15px;
    padding: 0;
    border: 2px solid #fff;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    width: 50%;
    text-align: left;
}

#stats {
    position: fixed;
    top: 0;
    right: -25%;
    width: 25%;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 2px solid white;
    border-radius: 15px;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

#stats.show {
    right: 0;
}

.stats-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
    margin-top: 2rem;
    z-index: 20;
}

#closeStatsBtn {
    border: 1px solid white;
    border-radius: 15px;
    width: 30%;
    margin: 2rem auto;
}

#closeStatsBtn:hover {
    transition: color ease-in-out 0.3s;
    background-color: #fff;
    color: #000;
}

@media screen and (max-width: 768px) {
    #setting-sidebar {
        width: 100%;
        left: -100%;
        background-color: rgba(0, 0, 0, 1);
    }

    #setting-sidebar.show {
        left: 0;
    }

    #stats {
        width: 100%;
        right: -100%;
        background-color: rgba(0, 0, 0, 1);
    }

    .timer-display {
        font-size: 150px;
    }

    .pomodoro-state {
        font-size: 18px;
    }

    button {
        font-size: 18px;
        padding: 5px 10px;
    }

    input {
        font-size: 18px;
        padding: 5px;
    }

    .setting-sidebar-body {
        gap: 10px;
    }
}

@media screen and (max-width: 812px) and (max-height: 375px) and (orientation: landscape) {
    body {
        font-size: 18px;
        background-color: rgba(0, 0, 0, 0.9); /* Optional: Adjust background color */
    }

    .timer-display {
        font-size: 120px;
    }

    .pomodoro-state {
        font-size: 14px;
    }

    button {
        font-size: 14px;
        padding: 5px 10px;
    }

    input, select {
        font-size: 14px;
        padding: 5px;
    }

    .setting-sidebar-body {
        gap: 10px;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    #setting-sidebar {
        width: 100%;
        left: -100%;
        background-color: rgba(0, 0, 0, 1);
    }

    #stats {
        width: 100%;
        left: -100%;
        background-color: rgba(0, 0, 0, 1);
    }

    #setting-sidebar.show {
        left: 0;
    }

    body {
        font-size: 24px;
    }

    .timer {
        padding: 0px
    }

    .timer-display {
        padding: 0px;
        font-size: 100px;
    }

    .pomodoro-state {
        font-size: 20px;
    }

    .setting-sidebar-body {
        flex-direction: row;
    }

    button {
        margin : 0;
        padding: 10px 20px;
    }

    input {
        font-size: 20px;
        padding: 10px;
        width: 50%;
    }

    label {
        font-size: 24px !important;
    }

    select {
        font-size: 24px;
        padding: 10px;
        width: 100%;
    }

    .setting-sidebar-body {
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .timer-display {
        font-size: 100px;
    }

    .pomodoro-state {
        font-size: 16px;
    }

    button {
        font-size: 16px;
        padding: 5px 10px;
    }

    input {
        font-size: 16px;
        padding: 5px;
    }

    .setting-sidebar-body {
        gap: 5px;
    }
}

@media screen and (min-width: 1024px) {
    body {
        font-size: 32px;
    }

    .timer-display {
        font-size: 300px;
    }

    .pomodoro-state {
        font-size: 28px;
    }

    button {
        font-size: 28px;
        padding: 15px 30px;
    }

    input {
        font-size: 28px;
        padding: 15px;
    }

    .setting-sidebar-body {
        gap: 30px;
    }
}
