body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

.main-container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding-top: 100px;
}

.ad {
    background-color: #ddd;
    text-align: center;
    padding: 20px;
}

.top-ad {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
}

.left-ad {
    width: 200px;
    min-height: 400px;
    margin-right: 20px;
}

.right-ad {
    width: 200px;
    min-height: 400px;
    margin-left: 20px;
}

.content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
}

.time-form {
    margin-top: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

select, input[type="datetime-local"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
}

@media (max-width: 800px) {
    .main-container {
        flex-direction: column;
        padding-top: 120px;
    }
    .left-ad, .right-ad {
        width: 100%;
        height: 100px;
        margin: 10px 0;
    }
    .content {
        width: 90%;
    }
}