*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    background-color: rgba(0, 22, 44, 0.81);
    font-family: 'Roboto', Arial, sans-serif;
    color: #fff;
}

.container {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .container {
        margin-top: 5px;
    }
}

h1, h2, p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

p {
    font-size: 1.2rem;
}

.video-container {
    text-align: center;
    margin-bottom: 20px;
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.navigation-buttons button {
    padding: 10px 20px;
    font-size: 16px;
}

.guess-container {
    margin-top: 20px;
    text-align: center;
}

.guess-container input {
    padding: 10px;
    font-size: 16px;
    width: 200px;
    margin-right: 10px;
}

.guess-container button {
    padding: 10px 20px;
    font-size: 16px;
}

.feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.feedback.show {
    opacity: 1;
}

.launch-container {
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
}

.description-box {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 10px;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.btn-start {
    padding: 10px 20px;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px;
    position: relative;
}

.btn-start:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%; 
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 15px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
}

.cookie-consent-banner p {
    margin: 0;
    padding: 0 10px;
    display: inline-block;
}

.cookie-consent-banner .btn {
    margin-left: 10px;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
    -moz-appearance: textfield;
}

#video-container, #points {
    text-align: center;
}

#guess-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    margin-bottom: 40px;
}

#guessed_year {
    width: 150px;
    text-align: center;
    font-size: 1.2rem;
}

.guess-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
    text-align: center;
}

.guess-layout h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 20px;
    color: white;
}

.guess-layout p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

#submit-guess {
    background-color: #28a745;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    padding: 10px 20px;
    transition: background-color 0.2s ease-in-out;
}

#submit-guess:hover {
    background-color: #218838;
}

footer {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    color: #ccc;
    font-size: 1rem;
}
footer a {
    color: #ccc;
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Popup message styles */
.popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    padding: 22px 34px;
    border-radius: 8px;
    font-size: 1.2rem;
    color: white;
    z-index: 999;
    opacity: 0;
    animation: fadePopup 2.2s ease-out;
    pointer-events: none;
    text-align: center;
}

.popup-success {
    background-color: #28a745; 
}

.popup-failure {
    background-color: #dc3545; 
}

@keyframes fadePopup {
    0% { opacity: 0.95; }
    100% { opacity: 0; }
}

#points-value {
    font-weight: bold;
    font-size: 1.4rem;
    transition: color 0.2s ease-in-out;
}


body {
    background: linear-gradient(135deg, rgba(0,22,44,0.9), rgba(20,50,70,0.9));
}


.launch-container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}


.description-box {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    color: #eaeaea;
}


.btn-start {
    padding: 14px 24px;
    font-size: 1.3rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-start:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


.tooltip {
    background-color: rgba(0,0,0,0.9);
    font-size: 0.9rem;
}

.launch-container ul li a {
    color: #ccc;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.launch-container ul li a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

.btn-warning {
    background-color: #ff9800;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-warning:hover {
    background-color: #e68900;
    transform: translateY(-3px);
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-bottom: 1rem;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed,
.video-responsive #player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .guess-layout {
        padding: 10px;
    }

    #guess-form {
        flex-direction: column;
    }

    #guess-form input,
    #guess-form button {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-start {
        font-size: 1rem;
        padding: 12px;
    }

    .description-box {
        font-size: 0.95rem;
    }
}