/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color:                #0e0e0e;
    --secondary-color:              #181818;

    --gradient-first-color:         #363535;
    --gradient-second-color:        #000000;

    --primary-text-color:           #a6f3a6;
    --secondary-text-color:         #7ed87e;

    --primary-link-color:           #8ffb6e;
    --secondary-link-color:         #66d966;

    --primary-button-color:         #222222;
    --primary-button-hover-color:   #2d2d2d;

    --secondary-button-color:       #161616;
    --secondary-button-text-color:  #a6f3a6;

    --disabled-button-color:        #2a2a2a;
    --disabled-button-text-color:   #555555;

    --information-error-color:      #ff4d4d;
    --information-valid-color:      #6dfb8f;
}


.alert-popup {
    background: var(--gradient-first-color) !important; /* Dark background */
    color: var(--primary-text-color);
    border: 2px solid var(--primary-button-hover-color); /* Border color */
    box-shadow: 0px 0px 10px var(--secondary-text-color); /* Subtle glow */
}
a {
    text-decoration:none;
    color: var(--secondary-text-color);
}

a:hover, a:active{
    text-decoration:none;
    color: var(--primary-link-color);
}

a:visited{
    text-decoration:none;
    color: var(--secondary-text-color);
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: var(--primary-text-color);
    background: radial-gradient(circle, var(--gradient-first-color), var(--gradient-second-color));
    background-color: var(--primary-color);
    min-width:319px;
    min-height:100vh;
}

.buffer {
    flex: 1;
    height: calc(var(--buffer-size, 1) * 1vh);
}

/* Buttons */
button, .btn {
    display: inline-block;
    background-color: var(--primary-button-color);
    color: var(--primary-link-color);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

button:hover, .btn:hover {
    background-color:var(--primary-button-hover-color);
    color:var(--primary-link-color);
    transition: 0.3s ease;
    transform: scale(1.09);
}

.card {
    background-color:var(--primary-button-color);
    color: var(--primary-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.center-off {
    text-align: left !important; /* Default text alignment */
    display: block !important;   /* Ensures block-level elements do not use flexbox centering */
    justify-content: flex-start !important; /* Align items to the left in flexbox */
    align-items: flex-start !important;     /* Align items to the top in flexbox */
}

.center-text {
    display:block;
    width:100%;
    text-align:center;
    font-size: 1.25em;
    margin:auto;

}

/* Container */
.zzz {
    min-width: 200px !important;
    max-width: 500px !important;
    margin: auto !important;
    padding: 20px !important;
    background: var(--primary-color) !important;
    border-radius: 32px !important;
    line-height: 1.5 !important; /* Adjust this value as needed */
    text-align: center !important;
}

/* Container */
.container {
    min-width: 319px;
    max-width: 500px;
    margin: auto;
    padding: 20px;
    background: rgba(68, 102, 125, 0.217);
    border-radius: 32px;
    line-height: 1.5; /* Adjust this value as needed */
    text-align: center;
}



.content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 5px;
    padding: 20px;
    max-width: 500px;
    min-width: 200px;
    z-index: 100;
}

.daysofweek {
    display:flex;
}

.disabled-btn, .disabled-btn:hover{
    background-color:var(--disabled-button-color) !important;
    color: var(--disabled-button-text-color) !important;
    cursor: not-allowed !important;
    transform: scale(1.0) !important;
}

.divider {
    display:block;
    max-width: 500px;

}

.email {
    font-size: .75em;
}

.error { color: var(--information-error-color); font-size: 0.9em; }

.footer-content {

    flex: 1; /* Only pushes the footer if needed */
    background-color: var(--secondary-color);

}

/* Footer */
footer {
    display:flex;
    flex-direction: column;
    text-align: center;
    padding: 10px;
    background: var(--secondary-color);
    color: var(--primary-text-color);
    margin-top: 20px;
    border-radius: 8px;
    min-width:100vw;
    flex:1;
}

/* Forms */
form {
    max-width: 500px;
    border-radius: 8px;
}

.form-container {
    display: flex !important;
    align-items: center; /* Ensures vertical alignment */
    gap: 10px; /* Space between elements */
    flex-wrap: wrap; /* Prevents breaking on small screens */
}

.form-container form {
    display: flex !important;
    align-items: center; /* Aligns form elements in a row */
}

.form-field{
    display:grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0;
}

/* Green rounded div */
.green-rounded {
    background-color:var(--information-valid-color); /* Lovely green */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding for spacing inside the div */
    color: var(--primary-link-color); /* White text color to contrast with green */
    margin-bottom: 20px; /* Space below the div */
    font-family: Arial, sans-serif; /* Font styling */
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

h1 {
    color: var(--secondary-text-color);
}

/* original front page */
h2{
    text-align:left;
    display:block;
}

/* Header */
header {
    padding: 20px;
    text-align: center;
    border-radius: 8px 8px 0 0;
}

header h1 {
    font-size: 24px;
}

.heading {
    text-decoration:none;
    display:flex;
}

.hidden {
    display: none;
}

img {
    background:none;
}

input {
    font-size:16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    vertical-align: middle;
}

input[type="checkbox"] {
    transform: scale(1.5); /* Increase size by 1.5x */
    margin: 5px; /* Adjust spacing if needed */
}

input[type="text"] {
    width:auto;
    min-width:200px;
    max-width:450px;
}

input.guest {
    width:auto;
    min-width:200px;
    max-width:450px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--secondary-button-color);
    outline: none;
}
/* Change the color to black once the user starts typing or on focus */
.input-field:focus,
.input-field:not(:placeholder-shown) {
    color: var(--input-primary-text-color);
}
/* Styling for the placeholder text */
.input-field::placeholder {
    color: var(--input-placeholder-color); /* Placeholder text is grey */
}

.interface {
    display:block;
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    max-width: 500px;
    min-width: 200px;
}

/* Labels */
label { display: block; margin-top: 10px; font-weight: bold;}
.label {
    display:block;
    padding: 10px;
    text-align: left;
}


.left {
    display:flex;
    white-space: nowrap;
    text-align:center;
    align-items:center;

}

/* Logo styling */
.logo_icon {
    max-width: 80%;  /* Ensures responsiveness */
    max-height: 80vh; /* Prevents logo from being too tall */
    object-fit: contain; /* Keeps aspect ratio */
}

.logout-btn {
    background-color: var(--primary-button-color);
    color: var(--primary-text-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.logout-btn:hover {
    background-color:var(--primary-button-hover-color);
    color: var(--primary-link-color);
    transform: scale(1.05);
}

.logout-btn a {
    color:var(--primary-text-color);
}

.logout-btn a:link {
    color:var(--primary-link-color);
}
.logout-btn a:active {
    color:var(--primary-text-color);
}

.logout-btn a:visited {
    color:var(--primary-text-color);
}
/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-text-color);
    max-width: 50%;  /* Ensures responsiveness */
    max-height: 80vh; /* Prevents logo from being too tall */
    object-fit: contain; /* Keeps aspect ratio */
}
/* Desktop Navigation (Default) */
.nav-links {
    display: flex;
    background-color: var(--secondary-color);
    gap: 15px;
}

.nav-links a {
    color: var(--primary-link-color);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-link-color);
    text-decoration: none;
}

.meeting-button {
    display:block;
    width:100%;
    text-align:left;
    border:0;
    text-decoration: none;
    background-color: var(--secondary-button-color);
    color: var(--primary-text-color);
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.meeting-button a {
    color:var(--primary-link-color);
}

.meeting-button a:hover {
    text-decoration:none;
    color:var(--primary-link-color);
}

.meeting-button a:active {
    text-decoration:none;
    color:var(--primary-text-color);
}

.meeting-button a:visited {
    text-decoration:none;
    color:var(--primary-text-color);
}

.meeting-button:hover {
    text-decoration:none;
    background-color: var(--primary-button-hover-color);
    color:var(--primary-link-color);
    transform: scale(1.05);
}

.menu {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
    background: none;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    min-width: 200px;

    z-index: 100;
}


/* Navigation */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    background: #265eb5;
    padding: 10px;
    border-radius: 0 0 8px 8px;
}

nav a {
    color: var(--primary-link-color);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: 0.3s ease;
    border-radius: 8px;
}

nav a:hover {
    background: #0AB495;
}

.profile-icon {
    text-align:center;
    margin:auto;
    max-width:35%;
    max-height:35vh;

}

.privacy-section {
    margin-bottom: 30px;
    text-align:left;
    justify-content: baseline;
}

/* Original home page */
.right {
    display:flex;
    white-space: nowrap;
    text-align:center;
    align-items:center;
}

/* Red rounded div */
.red-rounded {
    background-color: var(--information-error-color); /* A soft, warm red */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Padding for spacing inside the div */
    color: var(--primary-link-color); /* White text color to contrast with red */
    margin-bottom: 20px; /* Space below the div */
    font-family: Arial, sans-serif; /* Font styling */
}

.search-form {
    display: flex !important;
    width:100%;
    gap: 5px; /* Space between input and button */
}

.search-form input {
    padding: 8px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    flex-grow: 1 !important; /* Allows input to take available space */
    min-width: 150px !important; /* Ensures it doesn’t shrink too small */
}

.search-form button, .logout-btn, .logout-btn:visited {
    padding: 8px 12px;
    border: none;
    background-color: var(--secondary-button-color);
    color:var(--primary-link-color);
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap; /* Prevents buttons from breaking */
}

.search-form button:hover, .logout-btn:hover {
    background-color: var(--primary-button-hover-color);
}

/* Space between logo and button */
.signin-container {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
}

/* Top Bar Styling */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:var(--secondary-color);
    color: var(--secondary-text-color);
    padding: 10px 20px;
    width: 100%;
}

textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.text_link a{
    text-decoration:none;
    color:var(--primary-link-color);
}

.text_link a:visited{
    text-decoration:none;
    color:var(--primary-text-color);
}


.text_link a:active{
    text-decoration:none;
    color:var(--primary-text-color);
}

.text_link a:hover{
    text-decoration:none;
    color:var(--primary-link-color);
}

.terms-section {
    margin-bottom: 30px;
    text-align:left;
    justify-content: baseline;
}
.user_name {
    display: flex;
    margin:auto;
    padding:10px;
    max-width: 500px;
    min-width: 200px;
}

.wrapper {
    position:relative;
    top:calc(100vh/3);
    display:flex;
    flex-direction: column;
    min-height: 100%; /* Full height of the viewport */
    margin:0;
    flex:1;
}

.zoom-btn {
    background-color: var(--secondary-button-color);
    min-width:200px;
}

.zoom-text {
    min-width:200px;
}

@media (max-width: 599px) {
    .right {
        margin-left:50px;
    }
    .mobile-hidden {
      display: none;
    }
  }

