body {
  font-family: Candara, Candara;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  overflow-x: hidden;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.side-nav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: rgba(128, 128, 128, 0.459);
  overflow-x: hidden;
  transition: 0s;
  padding-top: 60px;
  color: black;
}

.side-nav.right {
  left: auto;
  right: 0;
}

.side-nav h2,
.side-nav ul,
.side-nav input,
.side-nav button {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: blue;
  display: block;
  transition: 0s;
  width: 100%;
}

.main-content {
  transition: margin-left 0.2s;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main-content.shifted {
  margin-left: 250px;
}

.main-content.shifted-right {
  margin-right: 250px;
}

.open-btn {
  font-size: 20px;
  cursor: pointer;
  background-color: transparent;
  color: black;
  border: none;
  padding: 10px 15px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
}

#home-button {
  font-size: 20px;
  cursor: pointer;
  background-color: transparent;
  color: black;
  border: none;
  padding: 10px 15px;
  position: fixed;
  top: 10px;
  left: 60px;
  z-index: 100;
}

.right-panel {
  width: 100%;
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  flex-grow: 1;
}

.top-bar {
  position: absolute;
  top: 10px;
  left: 10px;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  flex-grow: 1;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  margin: 5px 0;
  display: flex;
  align-items: center;
}

button {
  margin-top: 10px;
  padding: 10px 15px;
  background-color:white;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  position: sticky;
  top: 2px;
  left: 1px;
  z-index: 1;
}

button:hover {
  background-color: #0056b3;
}

input {
  width: 100%;
  margin-top: 5px;
  padding: 10px;
  box-sizing: border-box;
}

.hidden {
  display: none;
}

#welcome-message {
  font-size: 24px;
  color: #333;
  text-align: center;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  margin: 5%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

@media (max-width: 768px) {
  .side-nav h2,
  .side-nav ul,
  .side-nav input,
  .side-nav button {
    font-size: 20px;
    padding: 8px 8px 8px 16px;
  }

  .open-btn {
    font-size: 25px;
    padding: 8px 12px;
    top: 5px;
    left: 5px;
  }

  #home-button {
    font-size: 25px;
    padding: 8px 12px;
    top: 5px;
    left: 55px;
  }

  .right-panel {
    padding: 10px;
  }

  button {
    padding: 10px 15px;
    font-size: 14px;
  }

  input {
    padding: 8px;
  }

  #welcome-message {
    font-size: 20px;
  }
}

#add-website-section {
  margin-top: 10px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

#add-website-section input,
#add-website-section button {
  margin: 5px 0;
  width: 100%;
}

#settings-section {
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

#settings-section button {
  margin: 5px 0;
  width: 100%;
}

/* Dark mode styles */
body.dark-mode {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode .side-nav {
  background-color: rgba(50, 50, 50, 0.8);
  color: #f0f0f0;
}

body.dark-mode .side-nav h2,
body.dark-mode .side-nav ul,
body.dark-mode .side-nav input,
body.dark-mode .side-nav button {
  color: #f0f0f0;
}

body.dark-mode button {
  background-color: #333;
  color: #f0f0f0;
}

body.dark-mode button:hover {
  background-color: #555;
}

body.dark-mode input {
  background-color: #333;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark-mode #welcome-message {
  color: #f0f0f0;
}

#open-list-section {
  margin-top: 20px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

#saved-websites-list {
  margin-bottom: 10px;
  max-height: 200px;
  overflow-y: auto;
}

#saved-websites-list button {
  margin: 5px 0;
  width: 100%;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.8);
}

#saved-websites-list button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}
