* {
  margin: 0;
  padding: 0;
}

:root {
  --font-one: "Inter", sans-serif;
  --colorOne: #00a86b;
  --colorTwo: #000000;
  --colorThree: #f2eae0;
  --colorFour: #ffffff;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: var(--colorOne);
}

.logo {
  width: 110px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
 
}

.weather-data {
  padding: 12px;
  font-size: 18px;
}

.weather-data h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.menu a {
  text-decoration: none;
  color: var(--colorFour);
  font-weight: bold;
  font-family: var(--font-one);
  font-size: 1rem;
  transition: 0.3s;
}


.menu a:hover {
  color: var(--colorTwo);
}

.main {
  flex: 1;
  display: flex;
  flex-direction: row;
  background-image: url(../img/chat.jpg);
  min-height: 100vh;
}

.content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.send-chat-container {
  position: sticky;
  padding: 15px;
  display: flex;
  justify-content: center;
}

.message-area {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  padding: 12px 15px;
  border-radius: 15px;
  font-size: 1rem;
  font-family: var(--font-one);
  background: #f7f7f7;
  transition: all 0.2s ease;
}

.message-area:focus {
  background: var(--colorFour);
  box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.2);
}

.chat-send-button {
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #00a86b, #00c97f);
  color: var(--colorFour);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 15px rgba(0, 168, 107, 0.3);
}

.chat-send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 107, 0.4);
}

.chat-send-button:active {
  transform: scale(0.95);
}

.send-message {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--colorFour);
  padding: 10px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* CHATBOX */
.chat-container {
  text-align: center;
  padding: 20px;
}

.chat-box {
  width: 40%;
  background: var(--colorOne);
  border-radius: 25px;
  padding: 12px;
  position: relative;
  margin: 20px;
  color: var(--colorFour);
   border-radius: 50px 20px 40px 10px; /* olika hörn */
}

.chat-box::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 20px;
  height: 20px;
  background: var(--colorOne);
  transform: rotate(45deg);
}

.chat-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.header-picture {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-one);
}

.comments-chat {
  margin: 20px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

.chat-box-username{
  font-family: var(--font-one);
  font-size: 2rem;
}

.profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-user-info {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--colorFour);
  border: none;
  border-radius: 100px;
  padding: 5px 10px;
  font-size: 15px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  transition: 0.2s;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.4);
}

.actions input {
  width: 100%;
  border: none;
  outline: none;
  padding: 10px;
  border-radius: 8px;
}

.actions {
  display: flex;
  background: var(--colorFour);
  border-radius: 12px;
  padding: 8px;
  align-items: center;
}

.actions input:focus {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.count {
  font-weight: bold;
}

.reply-button{
  background: linear-gradient(135deg, #34d399, #10b981);
  border: none;
  margin: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
/* CHATBOX */


/* Like & favorite */
.action-bar {
  display: flex;
  gap: 20px;
  margin: 1rem 0;
}

.icon {
    width: 20px;
    height: 20px;
    fill: #dadada;
    stroke: #666;
    stroke-width: 2;
    transition: all 0.2s ease;
}

.like-btn.active .thumb {
    fill: #4d8eff;
    stroke: #3d3d3d;
}

.fav-btn.active .star {
    fill: #ffcc00;
    stroke: #3d3d3d;
}

.like-btn, .fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #3d3d3d;
}

/* FOOTER */

.footer {
  max-width: 100%;
  background-color: var(--colorOne);
  color: var(--colorFour);
  text-align: center;
  padding: 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  font-family: var(--font-one)
}

#weather-container {
  flex: 1 1 200px;
  text-align: left;
}

/* Footer links */
.footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0;
  margin: 0;
  justify-content: center;
  flex: 2 1 300px;
}

.footer ul li a {
  color: var(--colorFour);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-dark {  
  color: var(--colorTwo);
}

.footer-dark ul li a {
  color: var(--colorTwo);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background-color: var(--colorFour);
  transition: 0.3s;
}

/* Mobilvy */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--colorOne);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 10px 0;
    border-radius: 8px;
    z-index: 100;
  }

  .footer{
     max-width: 100%;
  }

  .chat-box{
    width: 90%;
  
  }


  .menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .menu li {
    margin: 10px 0;
    text-align: center;
  }

  .menu a{
        text-align: center;

  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  #weather-container {
    text-align: center;
  }

  .footer ul {
    flex-direction: column;
    gap: 8px;
  }
}


.logout-btn {
  margin-left: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
  transition: all 0.2s ease;
}

.logout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
}

.send-message-dark {
  background-color: var(--colorTwo);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-area-dark {
  background-color: var(--colorTwo);
  color: var(--colorFour);
  border-radius: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.message-area-dark:focus {
  background-color: var(--colorTwo);
   box-shadow:  0 0 0 2px rgba(0, 200, 150, 0.4), 0 0 10px rgba(0, 200, 150, 0.2);
  outline: none;
}

.dark-mode {
  background-image: url(../img/chatDark.jpg);
 
}

.footer-dark{
  color: black;
}

.chat-box-dark{
  color: var(--colorTwo);
}

.nav-dark a{
  color: var(--colorTwo);
}

#darkmodeButton {
    background: transparent;
    border: none;
    padding: 0;
    display: block;
    margin: 0 auto; 
    cursor: pointer;
}

#darkmodeButton img {
    width: 30px;
    height: auto;
    display: block;
}

/* Google Translate Element Centering */
#google_translate_element {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.goog-te-gadget {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
}

