html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 1vw;

}
/* Operation Mastermind text across the page*/
.mastermind{
    font-size: 4.5vw;
    text-align: center;
    align-items: center;
    position:fixed;
    z-index: 1;
    font-family: monospace;
    color: aqua;
    margin-left: 25vw;
    margin-top: 3vw;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    top: 1vw;

}
/*General background*/
.fullscreen-bg {
    position:relative;
    height: 100%;
    width: 100%;
    background: url('../images/mg-homepage.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

/*Background in communications center*/
.fullscreen-r1 {
    position: relative;
    height: 100vh;
    width: 100vw;
    background: url('../images/Comms_center.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items:end;
    
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); */
}

/*Background Virus time*/
.fullscreen-vi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: url('../images/virus.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Centered text */
.centered-text {
    text-align: center;
   
}


/* Left-aligned text */
.left-aligned-text {
    text-align: justify;
    flex: 1;
    margin-right: 30px; /* Space between text and thumbnail */
    margin-left: 80px;
}

.left-aligned-text p {
    margin: 5px 0; /* Adjust margin as needed */
    line-height: 1.2; /* Adjust line-height as needed */
}

.content2 {
    text-align: left;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    /* margin-right: 500px; */
    gap: 20px; /* Add spacing between thumbnails */
}

.thumbnail-container img {
    max-width: 8vw; /* Adjust the size as needed */
    justify-content: center;
    height: auto;
    cursor: pointer;
    border: 2px solid #fff;
  }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

#language-switcher {
    position: absolute;
    top: 1vw;
    right: 1vw;
    z-index: 1000; /* Ensure it stays on top */
}

#language-switcher img {
    cursor: pointer;
    /* margin-left: 10px; */
    width: 6vh; /* Thumbnail size */
    /*height: auto; /* Maintain aspect ratio */
    height: 4vh;
    max-height: 50%;
    margin-top: 1vh;
}

.modal-content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    overflow: scroll;
  
}

.modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.scroll-controls {
    position: fixed;
    bottom: 80px; /* Adjusted to be above the Zoom buttons */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.scroll-controls button {
    padding: 10px 15px;
    border: none;
    /* border-radius: 5px; */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    cursor: pointer;
}

.scroll-controls button:hover {
    background-color: rgba(85, 85, 85, 0.7);
}

.zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.zoom-controls button {
    padding: 10px 20px;
    border: none;
    /* border-radius: 5px; */
    background-color: #333;
    color: white;
    cursor: pointer;
}

.zoom-controls button:hover {
    background-color: #555;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #f1f1f1;
    font-size: 4vw;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

input[type="text"], input[type="password"] {
    padding: 10px;
    margin: 10px 0;
    border: none;
    /* border-radius: 5px; */
    width: 200px;
    
}

/* Submit and proceed button */
button {
    padding: 0.8vw 0.8vw 0.8vw 0.8vw;
    border: none;
    /* border-radius: 5px; */
    background-color: #333;
    color: white;
    cursor: pointer;
    font-size: 1vw;

}

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

footer {
    text-align: center;
    font-family: monospace;
    padding: 1vw;
    /* background-color: #333; */
    color: white;
    position: absolute;
    width: 100%;
    bottom: 0;
}

/* Terminal styles message */
.terminal {
    font-family: monospace;
    box-shadow: 0.1vw 0.2vw darkgray;
    /* opacity: 50%; */
    background-color: black;
    /* background: rgba(0, 0, 0, 0.4); */
    color: aqua;
    padding: 2vw;
    /* border-radius: 5px; */
    width: 30vw; /* Fixed width*/
    height: 15vw; /* Fixed height */
    overflow-y: auto; /* Add a vertical scrollbar if needed */
    white-space: pre-wrap; /* Wrap text */
   word-wrap: break-word; /* Break long words*/
    margin: 0 auto;
    margin-top: 5vw;
    /* margin-left: 30px; */
    font-size: 1,5 vw;
    line-height: 120%;
    text-align: justify;
    border: 0px solid #fff;
}


/* Styles for timeout message */
#timeoutMessage {

    font-size: 2vw;
    color: white;
    line-height: normal;
   font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);

   
}

.fullscreen-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    font-size: 6vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
     0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}


.highlighted {
    border: 4px solid green;
} 

/*message if password is correct (comm_center)*/
#message {
   
    font-size: 2vw;
    line-height: normal;
}

/* Timer styles */
#timer {
    color: red;
    font-size: 3vw;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
}

/* Ominous warning sign styles */
#warning-sign {
    color: yellow;
    font-size: 3vw;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Chat window styles */
#chat-container {
    position:fixed;
    bottom: 0;
    right: 0;
    width: 18vw;
    max-height: 30vw;
    font-size: 0.8vw;
    background-color: black;
    color:aqua;
    /* border-radius: 10px 10px 0 0; */
    overflow:auto;
    display: flex;
    flex-direction: column;
    z-index: auto; 
    margin-right: 0.5vw;
    margin-bottom: 0.5vh; 
}

#chat-header {
    background: #444;
    padding: 1vw    ;
    font-size: 1.5vw;
    font-style: normal;
    text-align: center;
    font-family: monospace;
   
}

#chat-messages {
    flex: 1;
    overflow-y:auto;
    padding: 1vh;
    text-align: left; /* Align text to the left */
    white-space: normal !important; /* Preserve whitespace */
    overflow-wrap:break-word; /* Ensure overflow wrap */
    word-break:normal;
    word-wrap: break-word;
    /* width: 90%; */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    -ms-word-break: break-all;
    scrollbar-color: #888 #f1f1f1;
    table-layout: fixed;
    font-family: monospace;
}

#image-container img {
    max-width: 20vw;
    height: auto;
    display: block;
    margin: 0 auto;
    
}

#chat-messages::-webkit-scrollbar {
    display: none;  /* Safari and Chrome */
}
Show scrollbars only when needed
 #chat-messages {
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1; 
}

#chat-input {
    display: flex;
    padding: 10px;
    background: #444;
    /* border-radius: 0 0 10px 10px; */
    /* word-break: keep-all; */
    /* word-wrap: normal; */
}

#chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
    /* border-radius: 5px; */
    margin-right: 10px;
    /* word-break: keep-all; */
    /* word-wrap: normal; */
}

#chat-input button {
    padding: 1vh;
    background: #555;
    border: none;
    /* border-radius: 5px; */
    color: white;
    cursor: pointer;
}

#chat-input button:hover {
    background: #666;
}
/* Styled input and button */
.styled-input {
    padding: 10px;
    border: 2px solid #555;
    /* border-radius: 5px; */
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    box-sizing: border-box;
}

.styled-button:hover {
    background-color: #666;
}
.chat-line {
    font-weight:14px; /* Make lines bold */
    display: inline-block; /* Ensure the lines are centered */
    text-align: left;
    word-wrap: normal;
    word-break: normal;
}

.styled-placeholder::placeholder {

    text-align: center;
    color: black;
    font-size: 1vw;
}
.highlighted {
    border: 4px solid green;
    /* border-radius: 8px; Ensure the border radius matches the thumbnail */
}

.highlighted-text {
    color: aqua;
    font-weight: bold;
}

/* Add styles for the flex container and its children */
.flex-container {
    display: flex;
    justify-content: space-between; /* Distribute space evenly */
    align-items: center; /* Center items vertically */
    gap: 20px; /* Space between elements */
    padding: 20px; /* Add padding around the container */
    margin-left: 10px;
    max-width: 70%;
}

.left-content {
    flex: 1; /* Allow the left content to take available space */
    max-width: 50%; /* Ensure the left content does not exceed 50% */
    text-align: left; /* Align text to the left */
    margin-left: 100px;
}

.plank-image {
    max-width: 50%; /* Ensure the image does not exceed the container width */
    /* max-height: 10%; */
    border: 2px solid #fff;
    /* border-radius: 5px; */
    /* margin-bottom: 50px; */
    text-align: center;
    /* margin-right: 200px; */
}

.left-content button {
    margin-top: 20px; /* Adjust the margin as needed */
    
}

.video-container {
   /* flex: 1; /* Allow the video container to take available space */
    width:100%;
    text-align: center; /* Center the video horizontally */
  margin-top: 40px;
    margin-right:200px;
    background-size: cover;
    
   
}

.instruction-video {
    max-width: 100%; /* Ensure the video does not exceed the container width */
    border: 2px solid #fff;
    /* border-radius: 5px; */
}
#proceed-button {
    display: block;
    margin: 20px auto; /* Center the button */
    font-size: 1vw;

}

.riddle-image {
    display: block;
    /* margin-left: 50px; */
    margin-right: auto;
    margin-left: auto;
    /* max-width: 25%; */
    height: 20vw;
    border: 2px solid #fff;
    margin-bottom: 8vw auto;
    /* margin: 20px auto; */
}
/* AUDIO Controls */

.audio-controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10vh;
}

.audio-controls {
    position: fixed;
    /* margin-bottom: vh; */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 2vh 2vw;
    /* border-radius: 5px; */
    display: flex;
    align-items: center;
    opacity: 0.9;
    flex-wrap: wrap;
}

.audio-controls label {
    margin-right: 2vw;
    font-size: 2vh;
    font-weight: bold;
    color: black;
    margin-left: 1vw;
}

.audio-controls input[type="range"] {
    vertical-align: middle;
    margin-right: 2vw;
}

.audio-controls button {
    padding: 1vh 2vw;
    border: none;
    /* border-radius: 3px; */
    background-color: #333;
    color: white;
    cursor: pointer;
    font-size: 1vw;
    margin: 1vh;
}

.audio-controls button:hover {
    background-color: #555;
}

    .audio-controls-small {
        position: fixed;
        bottom: 2vh;
        left: 2vh;
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.5);
        padding: 1vh 1vw;
        border-radius: 1vh;
        /* opacity: 0.95; */
        flex-wrap: wrap;
    }
    
    .audio-controls-small button {
        padding: 0.5vh 1vw;
        border: none;
        background-color: #333; 
        color: white;
        cursor: pointer;
        font-size: 1vh;
        margin: 0.5vh;
    }
    
    .audio-controls-small button:hover {
        background-color: #555;
    }
    
    .audio-controls-small label {
        margin-right: 1vw;
        font-weight: bold;
        font-size: 1.5vh;
    }
    
    .audio-controls-small input[type="range"] {
        vertical-align: middle;
        margin-right: 1vw;
    }

.timer-message {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: justify;
    font-size: 3vh;
    color: aqua;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    /* border-radius: 10px; */
    line-height: 100%;
    
}   
/* Celebration Page Styles */

.fullscreen-ce {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.fullscreen-ce__video {
    position:absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Ensure the video does not interfere with any interactions */
    z-index: -1;
    text-align: center;
    background-size: cover;
}

.content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 100px;
    text-align: center;
}

.celebration-container {
    max-width: 80%;
    margin: 0 auto;
}

.celebration-text {
    font-size: 2.5em;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: red;
    line-height: 100%;
    max-width: fit-content;
    text-align: center;
}

.gifs-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.celebration-gif {
    max-width:40%;
    margin: 10px;
    border: 3px solid white;
    /* border-radius: 10px; */
}

.hidden {
    display: none !important;
}

#warning-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 0, 0, 0.8);
    color: white;
    font-size: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    animation: blink 1s step-start infinite;
    
}
/* Custom scrollbar for WebKit browsers */
#chat-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #888; 
    /* border-radius: 10px; */
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555; 
}


/* Video background styles */
.fullscreen-bg__video {
    /* position: fixed; */
    /* top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 100;
}

/* Chat line color */
.colored-chat-line {
    color: aqua; /* Change this to the desired color */
    font-family: monospace;
}

/* Button styles */
.styled-button {
    padding: 0.8vw 1vw;
    color: white;
    cursor: pointer;
    font-size: 1vw;
    margin-top: 10px;
    border: 2px solid #555;
    background-color:#444;
    cursor: pointer;
    font-size: 1.1vw;
}

#input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1vw;
    
}
/* Controls TIP message text */

.message-container {
    width: 200%;
    text-align: center;
    position: absolute;
    bottom: 10%;
    
    
 
}
.message-style {
    color: blue;
    /* padding: 10px; */
    /* margin-top: 10px; */
    display:flex;
    flex-direction: column;
    font-size: 2vw;
    /* text-align:center; */
    /* align-items: center; */
    width: 120%;
    /* min-height: 3vh;  Set a minimum height to prevent movement */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
   /* margin-bottom: 25%; */
   /* white-space: nowrap; */
   /* margin-bottom: 10vw; */
   
  
   
}

.tip-style {
    /* background-color: rgba(0, 0, 0, 0.8); Semi-transparent black background Comm_center */
    color: red;
    padding: 10px;
    display:none;
    font-size: 2vw;
    text-align:center;
    align-items: center;
    width: 100%;
    /* min-height: 5vh;  Set a minimum height to prevent movement */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    
   
    /* line-height: 1.2; */
    
}

.form-container {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    width: 100%; /* Full width */
    
}



/* Specific styles for comm_center.html */

#input-section {
    /* display: flex; */
    /* flex-direction: column; */
    align-items: center;
     min-height: 30vw;/* To prevent shifting */
}

#input-section .styled-input,
#input-section .styled-button {
    margin: 10px 0;
}

