* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
}

h1 {
    color: #333;
    text-align: center;
}

.input-field {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="number"],
input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.output {
    display: grid;
    gap: 20px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* Default to one column */
.output {
    grid-template-columns: repeat(1, 1fr);
}

/* Two columns for screens wider than 600px */
@media (min-width: 600px) {
    .output {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Three columns for screens wider than 900px */
@media (min-width: 900px) {
    .output {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Four columns for screens wider than 1200px */
@media (min-width: 1200px) {
    .output {
        grid-template-columns: repeat(4, 1fr);
    }
}

.iframe-container {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
