
/* Resetting default margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: Arial, sans-serif;
    padding: 0;
    color: #000;
    margin: 0;
    
}

body.Default {
    background-color: #f0f0f0;
}

body.FrutigerWallPaper1 {
    background-image: url("/backgrounds/frutiger1.jpeg");
    background-size: cover; /* Ensures the image covers the entire screen */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center center; /* Centers the image */
    background-attachment: fixed; /* Makes the background stay in place while scrolling */
}

body.FrutigerWallPaper2 {
    background-image: url("/backgrounds/frutiger3.png");
    background-size: cover; /* Ensures the image covers the entire screen */
    background-repeat: no-repeat; /* Prevents tiling */
    background-position: center center; /* Centers the image */
    background-attachment: fixed; /* Makes the background stay in place while scrolling */
    color: #ffffff
}



header {
    background-color: #007BFF;
    color: #FFF;
    text-align: center;
    padding: 20px 0;
}

.loginHeader {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 80px;
}



h1, h2 {
    margin-top: 10px;
    text-align: center;
    font-size: 36px;
    
}

h3 {
    text-align: center;
    font-size: 28px;
    padding: 5px;
}

p {
    text-align: center;
    margin-bottom: 20px;
}

p.FrutigerWallPaper2 {
    border:1px solid black;
    background-color: #f0f0f0;
    padding: 5px;
}

a {
    color: #007BFF;
    text-decoration: none;
    text-align: center;
}

/* test */



a:hover {
    text-decoration: underline;
}
header h1 {
    color: white;
}
footer {
    background-color: #007BFF;
    color: #FFF;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 100px;
}

li {
  text-align: center;
  font-size: 20px; 
  padding: 5px 0;
  
}
dt {
    text-align: center;
    font-size: 20px; 
    padding: 5px 0;
    
  }
dd {
    text-align: center;
    font-size: 15px; 
    padding: 5px 0; 
}

button {
    background-color: #060fbf;
    color: white;
    border: 1px solid #0e1ebf;
    width: 160px; /* ✅ Fixed width for consistency */
    height: 44px;  /* Optional: fixed height to avoid jumpy layout */
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: inline-block;
    white-space: nowrap; /* Prevents text wrapping */
    overflow: hidden;
    text-overflow: ellipsis; /* ... if text overflows */
  }
  
  button:hover {
    background-color: #3949f9;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px) scale(1.01);
  }
  @media (max-width: 600px) {
    button {
      width: 100%;
      max-width: 300px;
    }
  }
  button.danger {
    background-color: #d32f2f; /* Classic material red */
    border: 1px solid #a72828;
    color: white;
  }
  
  button.danger:hover {
    background-color: #ff4c4c; /* Bright red on hover */
    box-shadow: 0px 4px 8px rgba(255, 0, 0, 0.3);
    transform: translateY(-1px) scale(1.01);
  }
  
img {
 width: 60%;
 padding: 20px;
 display: block;
 margin-left: auto;
 margin-right: auto;

}

.row {
    display: flex;
    justify-content: space-around; /* Ensures columns are spread out evenly */
    margin: 20px;
    gap: 20px; /* Space between the columns */
  }
  
  /* Each column styling */
.column {
    flex: 1; /* Makes each column take up equal space */
    text-align: center; /* Centers the caption text below each image */
  }
  
  /* Styling images */
.column img {
    max-width: 100%; /* Ensures images are responsive */
    height: auto;
    border-radius: 8px; /* Optional: adds rounded corners to images */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional: adds a soft shadow */
}

#end {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
}

table {
    width: 100%;
    border-collapse: collapse; /* Removes extra spacing between borders */
}

nav {
    background-color: #9eb8ff;
    max-width: 100%; /* Ensures images are responsive */
    max-height: 100%;
    height: auto;
    min-height: 50px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional: adds a soft shadow */
    padding: 5px;
    text-align: center;
    display: flex;
}

input {
    border-radius: 8px; /* adds rounded corners to search bar */
    box-shadow: 0px 4px 8px rgba(203, 203, 203, 0.2); /*adds a soft shadow */
    margin: 10px;
    padding: 10px;
}

th, td {
    border: 1px solid black; /* Adds a border around each cell */
    padding: 8px;
    text-align: left;
}

#clearLog {
    text-align: center;
    padding: 15px;
}


  
  /* Clear floats after the columns */


#yellowButton {
    background-color: yellow;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    border-radius: 12px;
}
.elementBox {
  background-color: #f0f0f0;
  max-width: 100%; /* Ensures images are responsive */
  max-height: 100%;
  height: auto;
  min-height: 100px;
  border-radius: 8px; /* Optional: adds rounded corners to images */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Optional: adds a soft shadow */
  padding: 40px;
  margin: 10px;
}
 

/* element box helpers*/
.box-narrow {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
  }
  .box-wide {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
  }
  .box-centered {
    margin-left: auto;
    margin-right: auto;
  }
  .box-tight {
    padding: 10px;
  }
  
#weatherWidget {
    margin-bottom: 50px;
}
@media (min-width: 1200px) {
    #weatherWidget {
        margin-inline: 100px 100px;
    }
}
span {
    text-align: center;
}
.device {
    padding: 5px;
    text-align: center;
    margin: 0px;
    display: flex;

}

/* styles for the settings page */



.container {
    max-width: 900px;
    margin: 50px auto;
    margin-top: 100px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    justify-content: center;
    text-align: center;
}

@media screen and (max-width: 1000px) { 
    .container {
        
        margin: 5px auto; /* On mobile, reduce margin but keep it centered */
        margin-top: 50px;
    }
}



/* settings page */
.setting-option {
    margin-bottom: 20px;
}

.setting-option label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.setting-option select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    appearance: none;
}

.setting-option input[type="color"]:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Additional Styling for Select Element */
select.aero {
    background: linear-gradient(to bottom, #ffffff, #dfe9f5);
    border: 1px solid #7c9cb2;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

select.aqua {
    background: linear-gradient(to bottom, #ffffff, #cfe2f3);
    border: 1px solid #6699cc;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Additional Styling for Hover and Focus States */
select.aero:hover, select.aqua:hover,
select.aero:focus, select.aqua:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* recipes page styles */


#search-button {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #00ff4477;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;

}

#search-button img {
    width: 20px;
    height: 20px;
    margin-right: 10px; /* Add some space between the icon and the text */
}

#search-button:hover {
    background-color: #0056b3;
}




.search-bar header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    
}
.search-container {
    display: flex;
    margin-top: 10px;
    align-items: center;

}

#search-bar {
    padding: 10px;
    margin: 10px;
    flex: 1;
    border-radius: 8px; /* adds rounded corners to search bar */
    box-shadow: 0px 4px 8px rgba(203, 203, 203, 0.2); /*adds a soft shadow */
}

#language-filter {
    padding: 10px;
    margin: 10px;
}

/* external lights dynamically loaded devices container*/

/* container holding devices */
#devices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 10px;
    margin-top: 20px;
  }
  

/* Style for each device */
.device {
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  

/* Style for the span inside each device */
.device span {
    flex: 1; /* Allows the span to take available space */
}

/* Style for the button inside each device */
.device button {
    width: 90px;
    text-align: center;
    padding: 5px 5px;
}

/* grid styles */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* more fluid */
    grid-auto-rows: minmax(150px, auto);
    gap: 20px;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    box-sizing: border-box;
  }
  
  

  
  .gridItem {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
  }
  
  /* No need to define these unless you have specific layout logic */
  .gridItem .elementBox {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  /* Make sure all items fill their grid cells gracefully */
  .gridItems {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }
  @media (min-width: 1200px) {
    .grid {
      grid-template-columns: repeat(3, minmax(300px, 1fr));
    }
  }
  
  @media (min-width: 2300px) {
    .grid {
      grid-template-columns: repeat(4, minmax(300px, 1fr));
      margin: 40px auto; /* increase vertical spacing */
      padding: 0 60px;    /* more horizontal breathing room */
      max-width: 1800px;  /* optional: expand max container width */
    }
  }
  
   

.recipe-link {
    color: #007BFF;
}

#recipe-box {
    margin: 50px;
}

#recipeMethod {
    text-align: left;
    
}


.login {
   
    margin: 20px auto;
    padding: 10px;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;

}

.loginRow {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

.login label {
    width: 100px;
    text-align: right;
    flex-shrink: 0;
}

.login input {
    width: 100px;
    padding: 10px;
    box-sizing: border-box;
}
@media (min-width: 768px) {
    .login {
      width: min(90%, 600px);
      padding: 30px;
      margin: 0 auto;
    }
  
    .loginRow {
      display: grid;
      grid-template-columns: auto 1fr; /* label then input */
      gap: 15px;
      align-items: center;
      justify-content: center; /* 🧠 THIS centers the whole row */
      width: fit-content;
      margin: 0 auto; /* 🧠 This centers the grid block */
    }
  
    .login label {
      text-align: right;
      white-space: nowrap;
    }
  
    .login input {
      width: 300px;
      max-width: 100%;
    }
  }
  
  


ul.userList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Adjust size as needed */
    gap: 10px; /* Space between items */
    list-style: none;
    padding: 0;
}

li.userList {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
    border-radius: 5px;

}
.userList button{
    padding: 10px 25px;
    height: auto;
}




/* ribbon nav */

.ribbon-nav {
    
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: inherit;
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(238, 238, 238, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /*border-radius: 0 0 8px 8px;*/
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }
  
  .ribbon-nav button {
    all: unset;
    text-decoration:none;
    background-color: #f2f2f2;
    color: #222;
    border: 1px solid #bbb;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .nav-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.4rem;
    font-weight: bold;
    color: black;
    pointer-events: none; 
  }
  .nav-left,
  .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nav-left {
    margin-right: auto;
  }
  
  .nav-right {
    margin-left: auto;
  }
  
  .ribbon-nav button:hover {
    background-color: #ddd;
    text-decoration: none !important;
  }

  .ribbon-nav a {
    text-decoration: none !important;
 
  }
  

  @media print {
    .ribbon-nav, .no-print, footer {
      display: none !important;
    }
  }
  
  .search-container.ribbon-nav {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #ccc;
  }
  @media (min-width: 768px) {
    .search-container.ribbon-nav {
      margin-left: 2rem;
      margin-right: 2rem;
    }
  }
  @media (max-width: 768px) {
    .ribbon-nav {
      top:0;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 10px;
      position:sticky;
      width: 100%;              /* ⬅️ force full width */
      box-sizing: border-box;   /* ⬅️ include padding in width */
      overflow-x: hidden;       /* ⬅️ STOP the scroll demon */
    }
  
    .ribbon-nav button {
      font-size: 1.2rem;
      padding: 0.75rem 1.25rem;
      min-width: 45%;           /* ⬅️ each button tries to take up half */
      flex: 1 1 45%;
      text-align: center;
      box-sizing: border-box;
    }
  }

  .nav-wrapper {
    
    border-bottom: 1px solid #c2c2c2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
  }
  
  .nav-title-row {
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
  }
  
  .nav-title-row h1,
  .nav-title {
    font-size: 1.5rem;
    color: black;
    margin: 0;
  }
  
  
  
  /* card class*/
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
  }
  
  .card {
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 200px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
  }
  
  
  .card:hover {
    transform: scale(1.02);
  }
  
  @media (max-width: 768px) {
    .card-grid {
      display: flex;
      flex-direction: column;
      gap: 10px;
      overflow-x: hidden;
    }
  
    .card {
      width: 90vw;
      margin: 0 auto;
    }
  }

  .card-wide {
    grid-column: span 2;
  }
  
  @media (max-width: 768px) {
    .card-wide {
      width: 90vw; /* same as regular cards */
      grid-column: auto; /* don't span on mobile */
    }
  }
  
  .card ul {
    padding-left: 20px;
    list-style-type: disc;
    font-size: 16px;
    line-height: 1.5;
  }

  /* page title */

  .page-title-bar {
    background-color: #f5f5f5; /* softer than #eee */
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #ccc;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.05); /* subtle drop */
  }
  
  .page-title {
    font-size: 2rem;
    color: #222;
    margin: 0;
    font-weight: bold;
    font-family: inherit;
  }
  

  .formBox {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 30px;
    max-width: 600px;
    margin: 30px auto;
}

.formBox h3 {
    text-align: center;
    margin-bottom: 20px;
}

.formGroup {
    margin-bottom: 20px;
}

.formGroup label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.formGroup input,
.formGroup textarea,
.formGroup select {
    width: 90%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.formGroup textarea {
    resize: vertical;
}

button.submitBtn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

button.submitBtn:hover {
    background-color: #0056b3;
}


/*  Fullscreen dark backdrop */
.dialog-backdrop {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

/* Dialog box container */
.dialog-box {
  background-color: white;
  padding: 25px;
  border-radius: 12px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  animation: fadeIn 0.2s ease-in-out;
}

/* Title styling */
.dialog-box h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

/* Content (custom HTML gets inserted here) */
.dialog-content {
  margin: 10px 0;
  font-size: 16px;
}

/*  Buttons */
.dialog-box button {
  margin: 5px;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background-color: #007BFF;
  color: white;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.dialog-box button:hover {
  background-color: #0056b3;
}

/*  fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


.glass {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}