/* General Styles */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f3f0eb;
    color: #333;
}

header {
    background-color: #ffcc80;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 40px;
    color: #000000;
}

p {
    font-size: 18px;
    margin-top: 10px;
}

/* Layout for the generator */
.generator-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px; /* Zvýšeno */
    gap: 40px; /* Větší mezera mezi prvky */
    max-width: 1200px; /* Větší šířka */
    margin: 0 auto; /* Vycentrování */
}

.meme-creator {
    max-width: 450px; /* Větší šířka pro sekci tvorby memu */
    flex: 1;
    text-align: left;
    background-color: #fff;
    border: 3px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    padding: 30px; /* Zvýšeno */
}

.meme-preview {
    flex: 2; /* Náhled je nyní větší */
    text-align: center;
    max-width: 650px; /* Větší náhled */
}

#memeCanvas {
    border: 2px solid #333;
    border-radius: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.text-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Větší mezera mezi vstupy */
    margin-bottom: 30px; /* Zvýšeno */
}

.text-inputs input {
    padding: 15px; /* Větší padding */
    font-size: 18px; /* Větší text */
    border: 2px solid #ff6f61;
    border-radius: 4px;
}

.button-area {
    margin-top: 30px; /* Zvýšeno */
}

button {
    padding: 16px 32px; /* Větší tlačítko */
    font-size: 20px; /* Větší text */
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff3d2e;
}

/* Image Picker Section */
.image-picker {
    text-align: center;
    margin-top: 40px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.image-grid img {
    width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Fullscreen video styling */
.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 10px 0;
    background-color: #ffcc80;
}
/* Video Section */
.video-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fullscreen responsive video */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Content overlay on video */
.video-section-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}
