body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: #e9e9e9;
    display: block;
    text-align: center;
    overflow-x: hidden;
}

.main-title {
    font-size: 2em;
    margin: 0.5em 0;
    color: #333;
}

.timer-container {
    background: white;
    padding: 1em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    user-select: none;
    max-width: 100%;
    margin: 1em auto;
}

.timer-display {
    justify-content: center;
    align-items: baseline;
    color: #333;
    margin-bottom: 20px;
    user-select: none;
    flex-wrap: wrap;
}

.timer-display input {
    font-size: 6vw;
    width: 14vw;
    height: 10vw;
    border: 2px solid #ddd;
    background: transparent;
    text-align: center;
    margin: 0 1vw;
    color: #000;
    border-radius: 10px;
}

.timer-display .colon {
    font-size: 6vw;
    color: #000;
    line-height: 10vw;
    margin: 0 1vw;
    vertical-align: middle;
}

.timer-display input#milliseconds {
    font-size: 3vw;
    width: 8vw;
}

.timer-controls {
    margin-bottom: 20px;
}

.button {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    background-color: #00adee;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #009ddc;
}

.fullscreen {
    cursor: pointer;
}

.preset-buttons button {
    padding: 5px 10px;
    margin: 0 3px;
}

.text-content {
    padding: 1em;
    background: #f8f8f8;
    color: #333;
    text-align: left;
    font-size: 1em;
    max-width: 800px;
    margin: 1em auto;
    overflow-y: auto;
}

.fullscreen-active .timer-display input,
.fullscreen-active .timer-display .colon {
    font-size: 8vw;
}

.fullscreen-active .timer-container {
    padding: 5vw;
}

.fullscreen-active .button,
.fullscreen-active .preset-buttons button {
    padding: 2vw;
    font-size: 2vw;
}


@media (max-width: 600px) {
    .main-title {
        font-size: 1.5em;
    }

    .timer-display input,
    .timer-display .colon {
        font-size: 5vw;
        width: 12vw;
        height: 8vw;
    }

    .timer-display input#milliseconds {
        font-size: 2.5vw;
        width: 6vw;
    }

    .text-content,
    .timer-container {
        padding: 0.5em;
        max-width: 90%;
    }

    .button,
    .preset-buttons button {
        padding: 0.5em 1em;
        font-size: 3vw;
    }

    .fullscreen-active .timer-display input,
    .fullscreen-active .timer-display .colon {
        font-size: 6vw;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 1024px) {
  .fullscreen {
    display: none;
  }
}

@media (min-width: 1025px) {
  .fullscreen {
    display: inline-block;
  }
}