@import url('https://fonts.googleapis.com/css?family=Poppins:400,700,900');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    color: #f4f4f4;
}

#main_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 28, 0.8); /* Added slight transparency to enhance blur effect */
    position: relative; /* To ensure main content is above the background overlay */
    z-index: 1; /* Ensures this is above the blurred background */
    padding: 20px;
}

#prompt_container {
    position: relative; /* Ensures absolute children are positioned relative to this container */
    width: 60rem;
    height: 35rem;
    border: 1px solid #444;
    border-radius: 16px;
    background-color: #2b2b2b;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.title {
    color: #f4f4f4;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.prompt_text {
    font-size: clamp(2rem, 5vw, 5rem);
    color: #f4f4f4;
    padding-bottom: 3rem;
    text-align: center;
}

#prompt_container button {
    background-color: #FFE000;
    border: none;
    border-radius: 8px;
    color: #1c1c1c;
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

#prompt_container button:hover {
    background-color: #ccb400;
    transform: translateY(-2px);
    cursor: pointer;
}

.result {
    display: none; 
    position: fixed;
    z-index: 1;
    padding: 2rem;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
  }


.result_content {
    background-color: #2b2b2b;
    padding: 20px;
    border: 1px solid #444;
    width: 50rem;
    height: 50rem;
    border-radius: 25px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.result_content .close {
    background-color: #FFE000;
    border: none;
    width: 6rem;
    height: 3rem;
    color: #1c1c1c;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result.show {
    display: flex; /* Only applied when the element needs to be shown */
}

.close:hover,
.close:focus {
    background-color: #ccb400;
    color: #1c1c1c;
}

.NOC_Template {
    margin: auto;
    width: 65%;
    height: 70%;
    border: 1px solid #444;
    background-color: #333;
}

.result_title {
    color: #FFE000;
    font-size: 2rem;
    font-weight: 600;
}

.result_reason {
    color: #e72323;
    font-size: 2.5rem;
    font-weight: 700;
}

.result_sub {
    color: #f4f4f4;
    font-size: 1.2rem;
    padding-bottom: 1rem;
}

#NOC_Template_text {
    padding: 0.3rem;
    color: #f4f4f4;
    text-align: center;
}

#prompt_container div {
    display: none;
}

#prompt_container .show {
    display: block;
    text-align: center;
}

#fibre_distance {
    width: 300px;
    padding: 10px;
    border: 2px solid #FFE000;
    border-radius: 5px;
    background-color: #2b2b2b;
    font-size: 16px;
    color: #f4f4f4;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

#fibre_distance:hover,
#fibre_distance:focus {
    border-color: #ccb400;
    background-color: #333;
}

#fibre_distance option {
    padding: 10px;
    background: #1c1c1c;
    color: #f4f4f4;
}

/* Styling the Modem_Lights_Prompt section */
#Modem_Lights_Prompt {
    width: 100%;
}

#Modem_Lights_Prompt h2 {
    font-size: 3rem;
    color: #f4f4f4;
    margin-bottom: 20px;
    text-align: center;
}

/* Container for the light settings */
.lights-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

/* Row for each light option */
.light-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

/* Labels for the light options */
.light-row label {
    font-size: 1rem;
    color: #f4f4f4;
    flex-basis: 30%;
    text-align: left;
}

/* Dropdowns for selecting the light status */
.light-row select {
    flex-basis: 60%;
    padding: 10px;
    font-size: 1rem;
    width: 10rem;
    text-align: center;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #f4f4f4;
    appearance: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Hover and focus effects on dropdowns */
.light-row select:hover,
.light-row select:focus {
    border-color: #ccb400;
    background-color: #444;
}

/* Confirm button styling */

#confirm_modem_lights:hover {
    background-color: #ccb400;
}

.settings-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 30px;
    color: #f4f4f4;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1000;
}

.settings-icon:hover {
    color: #FFE000;
    animation: rotateGear 2s linear infinite;
}

/* Modal styling */
.theme-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    z-index: 100;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.theme-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.theme-modal label {
    margin-bottom: 5px;
    display: block;
}

.theme-modal select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #444;
    color: #fff;
}

/* Adjust the appearance of the close button */
.close-button {
    align-self: flex-end;
    cursor: pointer;
    color: #fff;
    font-size: 1.5em;
}

/* Button styling for the apply button */
#applyTheme {
    padding: 10px;
    background-color: #444;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#applyTheme:hover {
    background-color: #666;
}

#creator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 1em;
}

#social_links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

#social_links a {
    color: #f4f4f4;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s;
}

#social_links a:hover {
    color: #d3d3d3;
}

.back_button {
    position: absolute; /* Positioning the button absolutely inside its container */
    top: 20px; /* 20px from the top of the container */
    left: 20px; /* 20px from the left of the container */
    background-color: #f4f4f4;
    color: #1c1c1c;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.back_button:hover {
    background-color: #e0e0e0;
}

#ONT_Power_Connection p{
    font-size: 3rem;
}

@keyframes rotateGear {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
