.clock-set-wrapper {
    display: grid;
    grid-template-columns: minmax(250px, auto);
    grid-template-rows: minmax(250px, auto) 1fr;
    grid-template-areas:
                    "clock-wrapper"
                    "setting-wrapper";
    justify-items: center;
}

@media (min-width: 801px) {
    .clock-set-wrapper {
        grid-template-columns: minmax(300px, auto);
        grid-template-rows: minmax(300px, auto) 1fr;
    }
}

.clock-wrapper {
    width: 100%;
    /*min-height: 350px;*/
    border: 2px solid gray;
    /*margin-top: 20px;*/
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
                    "date"
                    "time";
}

/* .date is placed at the top */
.date {
    padding: 0.5em;
    /* height is content height */
    font-size: 20px;
}

/* .time is placed at the center */
.time {
    /*font-size: 15vw;*/
    text-align: center;
    /* vertical align */
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;

    /* tabluar number */
    font-variant-numeric: tabular-nums;
    /* center */
    justify-self: center;
    align-self: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    font-size: 48px;
}

.btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.btn-wrapper button {
    width: 100px;
    height: 30px;
    font-size: 0.9em;
    border: 2px solid gray;
    border-radius: 5px;
    background-color: #ffffff;
    color: #000000;
    cursor: pointer;
}

.setting-wrapper {
    width: 100%;
    /*margin: 16px 16px;*/
}

.setting {
    margin: 16px 16px;
}

.setting-item{
    margin-top: 5px;
}

/* switch */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(12px);
    -ms-transform: translateX(12px);
    transform: translateX(12px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input[type="checkbox"]:disabled + .slider {
    background-color: #ccc;
    opacity: 0.3;
}

/* preset color */
.preset-color {
    display: inline-block;
    background: linear-gradient(to bottom, #FFFFFFFF 50%, #000000 50%);
    width: 48px;
    height: 48px;
    margin: 4px;
    cursor: pointer;
}

.preset-color.on {
    border: 2px solid black;
}

.hscroll {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.custom-color {
    display: none;
}