@charset "UTF-8";
/* CSS Document */
/* Base Page Styles */

youtube {
    flex: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.youtube h1 {
    color: #333;
}

/* Hide the radio inputs completely */
.youtube-toggle {
    display: none;
}

/* Tabs / Buttons Styling */
.youtube-button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.youtube-label {
    padding: 12px 24px;
    background-color: #e0e0e0;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid #ccc;
}

.youtube-label:hover {
    background-color: #d0d0d0;
}

/* Responsive Video Container (16:9 Aspect Ratio) */
.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none; /* Hidden by default */
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* CSS Logic to Show the Selected Video */
#youtube1-select:checked ~ .youtube-button-container label[for="youtube1-select"],
#youtube2-select:checked ~ .youtube-button-container label[for="youtube2-select"] {
    background-color: #0066cc;
    color: white;
    border-color: #004499;
}

#youtube1-select:checked ~ #youtube1-container,
#youtube2-select:checked ~ #youtube2-container {
    display: block;
}

