/* Survivor Scavenger Hunt - Styles */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #0d3b4a; /* Dark teal background */
    color: #fff;
    /* Gradient background as placeholder until background.jpg is added */
    background-image: linear-gradient(to bottom, #0d3b4a, #2a9d8f, #264653);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #f4a261; /* Survivor orange */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
}

h2 {
    color: #f4a261;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn {
    background-color: #e76f51; /* Survivor orange-red */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #f4a261;
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Screen Styles */
.screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.screen.active {
    display: block;
    opacity: 1;
}

/* Welcome Screen */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
}

#welcome-screen p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Clue Screen */
.progress-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

#progress-text {
    font-weight: bold;
    color: #f4a261;
}

.clue-container {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #f4a261;
}

.code-entry {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
}

.code-entry label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#code-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #2a9d8f;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 10px;
}

.error {
    color: #e63946;
    font-weight: bold;
    margin-top: 5px;
    min-height: 20px;
}

/* Success Screen */
.success-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    max-width: 600px;
}

.idol {
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(244, 162, 97, 0.7));
    }
    to {
        filter: drop-shadow(0 0 20px rgba(244, 162, 97, 1));
    }
}

/* Victory Screen */
.victory-container {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin: 20px auto;
    max-width: 600px;
}

.torch {
    max-width: 100px;
    height: auto;
    margin: 0 auto 20px;
}

/* Torch Decorations */
.torch-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.torch-left {
    position: absolute;
    bottom: 0;
    left: 10px;
    height: 200px;
    transform: rotate(-5deg);
    opacity: 0.8;
}

.torch-right {
    position: absolute;
    bottom: 0;
    right: 10px;
    height: 200px;
    transform: rotate(5deg);
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .torch-left, .torch-right {
        height: 150px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .torch-left, .torch-right {
        height: 120px;
    }
}

/* Photo submission styles */
.photo-submission {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.camera-container {
    text-align: center;
    margin: 20px 0;
}

.camera-btn {
    background-color: #2a9d8f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.camera-btn:hover {
    background-color: #1e7d71;
}

.hidden {
    display: none !important;
}

.photo-preview {
    margin: 20px 0;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

#preview-image
{
    width:44px;
}

#preview-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 2px solid #2a9d8f;
}

.retake-btn {
    background-color: #264653;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px auto;
}

.retake-btn:hover {
    background-color: #1a2f38;
}

.submit-photo-btn {
    background-color: #e76f51;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
}

.submit-photo-btn:hover {
    background-color: #d15a3c;
}