/* CSS styles for the upload form and gallery */

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h2 {
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
form {
    margin-bottom: 30px;
}
label {
    display: inline-block;
    width: 200px;
    text-align: right;
    margin-right: 10px;
    font-weight: bold;
}
input[type="text"], input[type="file"], textarea, select {
    width: 300px;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
textarea {
    height: 100px;
    vertical-align: top;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: #45a049;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-item {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.gallery-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-thumbnail {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 3px;
}

.video-thumbnail {
    width: 100%;
    height: 200px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.video-thumbnail::before {
    content: "▶";
    font-size: 50px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-thumbnail:hover::before {
    opacity: 1;
}

.gallery-info {
    margin-top: auto;
}

.gallery-info p {
    margin: 5px 0;
    font-size: 14px;
    word-wrap: break-word;
}

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}
.captcha-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.captcha-image {
    border: 1px solid #ddd;
    margin-right: 10px;
    cursor: pointer;
}
.refresh-captcha {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
    margin-right: 10px;
}
.error {
    color: red;
    margin: 10px 0;
    padding: 10px;
    background-color: #ffeeee;
    border: 1px solid #ffdddd;
    border-radius: 4px;
}
.success {
    color: green;
    margin: 10px 0;
    padding: 10px;
    background-color: #eeffee;
    border: 1px solid #ddffdd;
    border-radius: 4px;
}
.timezone-selector {
    margin: 10px 0;
    padding: 5px;
    font-size: 14px;
}
.timezone-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.photo-upload-section {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}
.video-upload-section {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f0f0ff;
    border-radius: 5px;
    border: 1px solid #eee;
}
.photo-upload-section h3, .video-upload-section h3 {
    margin-top: 0;
    color: #555;
}
.shared-note-option {
    margin: 15px 0;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 5px;
}

.gallery-info {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.gallery-info p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.gallery-info p b {
    display: inline-block;
    width: 80px;
    color: #555;
}

.download-btn {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
}

.download-btn:hover {
    background: #45a049;
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    background-color: #000;
    border-radius: 5px 5px 0 0;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    background: linear-gradient(45deg, #333, #666);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    opacity: 0.8;
    transition: all 0.3s;
}

.video-container:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container:hover .video-thumbnail {
    transform: scale(1.05);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-image-container, .video-thumbnail {
        height: 250px;
    }
    
    label {
        width: 100%;
        text-align: left;
    }
    
    input[type="text"], 
    input[type="file"], 
    textarea, 
    select {
        width: 100%;
    }
}
