/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ and Edge */
}

/* Remove focus outlines and cursor */
*:focus {
    outline: none;
}

iframe {
    pointer-events: auto; /* Enable interaction with iframe content */
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background-color: #f0f8ff; /* Very light blue */
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    caret-color: transparent; /* Hide blinking cursor */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header styles */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
}

.camera-icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234a90e2'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.paw-icon {
    width: 42px;
    height: 42px;
    margin-left: 15px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%234a90e2'%3E%3Cpath d='M256,224c-79.41,0-192,122.76-192,200.25,0,34.9,26.81,55.75,71.74,55.75,48.84,0,81.09-25.08,120.26-25.08,39.51,0,71.85,25.08,120.26,25.08,44.93,0,71.74-20.85,71.74-55.75C448,346.76,335.41,224,256,224Z'/%3E%3Ccircle cx='144' cy='128' r='40'/%3E%3Ccircle cx='368' cy='128' r='40'/%3E%3Ccircle cx='96' cy='256' r='32'/%3E%3Ccircle cx='416' cy='256' r='32'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

h1 {
    text-align: center;
    color: #2a5885;
    font-size: 2.2rem;
    font-weight: 500;
}

/* Camera grid styles */
.camera-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.camera-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.camera-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.camera-container.active {
    border: 2px solid #4a90e2;
}

.camera-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

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

.camera-title {
    padding: 12px;
    text-align: center;
    font-weight: 500;
    color: #333;
    background-color: #fff;
    border-top: 1px solid #eee;
}

/* Featured camera view */
.featured-camera {
    display: none;
    margin-top: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

.featured-camera.show {
    display: block;
}

.featured-camera-title {
    padding: 15px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #2a5885;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.featured-camera-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Strict 16:9 aspect ratio */
    overflow: hidden;
}

.featured-camera-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Fullscreen mobile view */
.fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fullscreen-container.active {
    opacity: 1;
    transform: translateY(0);
}

.fullscreen-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
}

.fullscreen-title {
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.fullscreen-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fullscreen-close:active {
    transform: scale(0.95);
}

/* Responsive styles */
@media (max-width: 768px) {
    .camera-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        margin-bottom: 25px;
        font-size: 2rem;
    }
    
    .camera-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .paw-icon {
        width: 36px;
        height: 36px;
        margin-left: 10px;
    }
}

@media (max-width: 576px) {
    .camera-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .camera-container {
        max-width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }
    
    .featured-camera-title {
        font-size: 1.2rem;
    }
    
    .camera-icon {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .paw-icon {
        width: 30px;
        height: 30px;
        margin-left: 8px;
    }
    
    .fullscreen-close {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .fullscreen-title {
        font-size: 1rem;
        padding: 8px 12px;
    }
} 