@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

:root{
    --primary-color: #ff6363;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Permanent Marker", cursive;
    background: url(https://shared.fastly.steamstatic.com/store_item_assets/steam/apps/3681010/17b22f17d8dd95d9c1cd251d95f3652c995d1ba1/page_bg_raw.jpg?t=1769823531);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: #00000083;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.411);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.329);
    overflow: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #fff;
    font-size: 2em;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #bebebe;
    font-size: 0.9em;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(0,0,0);
    backdrop-filter: blur(20px);
    overflow-y: scroll;
    display: none;
}

.settings {
    border-radius: 12px;
    margin-bottom: 25px;
    position: relative;

    .settings-wrapper{
        padding: 25px;
    }

    .close-wrapper {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        position: sticky;
        top: 0px; 
        z-index: 10;
        background: rgba(0,0,0,.8);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, .3);
        padding: 10px;
    }
    
    ion-icon {
        font-size: 35px;
        cursor: pointer;
    }
}

header{
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;

    .cog-wrapper{
        width: 100%;
        display: flex;
        justify-items: flex-end;
    }

    ion-icon{
        position: absolute;
        top: 5px;
        right: 5px;
        font-size: 45px;
        cursor: pointer;
        transition: all .3s ease;
    }

    img{
        object-fit: contain;
        height: auto;
        width: 150px;
    }
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: rgb(206, 206, 206);
    font-weight: 500;
}

input[type="number"],
select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
}

.display {
    text-align: center;
    margin: 30px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 100%;
    max-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.transition {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.counter {
    font-size: 1.2em;
    color: #aaa;
}

.status {
    font-size: 1em;
    color: #888;
    margin-top: 10px;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start {
    background: var(--primary-color);
    color: white;
}

.btn-start:hover {
    transform: translateY(-2px);
}

.btn-stop {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.btn-stop:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.btn-pause {
    background: linear-gradient(135deg, #ffd93d 0%, #f5c842 100%);
    color: #333;
}

.btn-pause:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 217, 61, 0.4);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.5em;
    }

    .transition {
        font-size: 2em;
    }

    button {
        padding: 12px 24px;
        font-size: 14px;
    }
}