:root {
  --primary-color: #8E44AD;       
  --background-overlay: rgba(255, 255, 255, 0.8);
  --border-radius: 12px;
  --transition-speed: 0.3s;
}

/* General Reset */
body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: url('BearFurImage.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  overflow: hidden;
}

/* App Name */
.app-name {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 34px;
    font-weight: bold;
    color: #ffffff;
}

/* Creator Name */
.creator-name {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 16px;
  opacity: 0.8;
  color: #ffffff;
}

/* Container */
.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    gap: 10px;
}

/* Section Separator */

/*
side 
| [ textarea         | 
|   input buttons ]  | ← side-top grouped together
|--------------------|
| language-grid      |
*/

.side {
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 0.25px dashed #ccc;
    height: 100%;
    padding-bottom: 160px;
}

.side-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 5px;
}

.side:last-child {
    border-right: none;
}

.center-button {
  position: absolute; 
  margin-left: 50%;
  transform: translateX(-115%);
}

/* Input Group */
.input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

/* Text Field */
.text-field {
    width: 90%;
    max-width: 600px;
    height: 180px;
    padding: 10px;
    font-size: 20px;
    border: 2px solid #A67C52; 
    border-radius: 5px;
    background-color: rgba(245, 222, 179, 0.8);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    resize: none;
    overflow: auto;
}

/* Dropdown Styling */
/*
.dropdown {
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
}
    */

/* Button Styling */
.button {
  padding: 10px 20px;
  font-size: 20px;
  border: none;
  border-radius: var(--border-radius);
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  color: var(--primary-color);
  cursor: pointer;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}


/* Loader */
.loader {
    width: 30px;
    height: 60px;
    padding-top: 60px;
    box-sizing: border-box;
    display: grid;
    background: 
      linear-gradient(currentColor 0 0) bottom/10px calc(100% - 15px),
      conic-gradient(from 134deg at top,#0000 ,currentColor 1deg 90deg,#0000 91deg) top/100% 15px;
    background-origin: content-box;
    background-repeat: no-repeat;
    animation: l10-0 2s infinite;
    z-index: 900;
  }
  .loader:before,
  .loader:after {
    content: "";
    grid-area: 1/1;
    background:inherit;
    background-size: 10px calc(100% - 25px),100% 25px;
    animation: l10-1 2s infinite;
  }
  .loader:after {
    background-size: 10px calc(100% - 30px),100% 30px;
    animation: l10-2 2s infinite;
  }
  @keyframes l10-0 {
    25%,100% {padding-top:0px}
  }
  @keyframes l10-1 {
    0%,25%   {margin:60px -10px 0}
    50%,100% {margin:8px  -10px 0}
  }
  @keyframes l10-2 {
    0%,50%   {margin:60px -15px 0}
    75%,100% {margin:20px -15px 0}
  }


  /* Grid of Language Buttons */
  .language-grid {
    position: absolute;
    left: 50%;  /* center inside its own .side */
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    bottom: 120px;
    width: 800px;
 }

 /*
 Transparent Box for Icons
 */
 .language-grid button {
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  transition: transform 0.2s ease;
}


.language-grid button img {
  width: 90px;   
  height: 90px;
}

.language-grid button.selected img {
  box-shadow: 0 0 0 8px #F1C40F, 0 0 8px rgba(241, 196, 15, 0.6); 
  border-radius: 50%;
  transform: scale(1.1); /* slightly enlarge */
  transition: all 0.2s ease;
}


/* Settings Button: slightly enlarges on hover for a dynamic feel */
.settings-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed);
  }
  .settings-button:hover {
  transform: scale(1.1);
  }
  
  /* Settings Modal: uses the overlay background and refined borders */
  .settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  }
  .settings-modal.hidden {
  display: none;
  }
  .settings-content {
  background: var(--background-overlay);
  padding: 30px 40px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  border: 1px solid var(--primary-color);
  }
  .settings-section {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  }
  .settings-title {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  margin-bottom: 0;
  min-width: 130px;
  }
  .settings-options {
  display: flex;
  gap: 10px;
  }
  .user-button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: var(--border-radius);
  border: 2px solid #ccc;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
  }
  .user-button.selected {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  }



/* ========== TABLET STYLES (Keep side-by-side, just smaller) ========== */
@media (max-width: 1200px) {
  .container {
    flex-direction: row; /* stays side-by-side */
    gap: 5px;
    padding: 10px;
  }

  .side {
    padding-bottom: 80px;
  }

  .text-field {
    width: 90%;
    font-size: 16px;
    height: 100px;
  }

  .input-group {
    gap: 6px;
  }

  .button {
    font-size: 16px;
    padding: 8px 12px;
  }

  .language-grid {
    width: 100%;
    gap: 6px;
    bottom: 50px;
  }

  .language-grid button img {
    width: 60px;
    height: 60px;
  }

  .app-name {
    font-size: 0px;
  }

  .creator-name {
    font-size: 10px;
    bottom: 4px;
  }

  .settings-button {
    font-size: 24px;
  }
}