/* === mobile.css === */

/* General Mobile Styles */
@media only screen and (max-width: 768px) {

  body {
    padding: 10px;
  }

  #chart-container {
    width: 100%;
    height: 350px;
    margin-top: 80px;
  }

  .header {
    margin-left: 0;
    margin-top: 60px;
    text-align: center;
  }

  .trading-panel {
    width: 100%;
    position: relative;
    top: 0;
    right: 0;
    margin-top: 20px;
  }

  .trade-button, .duration-select, .amount-input {
    width: 100%;
    font-size: 14px;
  }

  /* Botones flotantes */
  #three-dots-menu,
  #three-dots-menu-2 {
    position: fixed;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 1001;
  }

  #dropdown-menu,
  #dropdown-menu-2 {
    position: fixed;
    top: 50px;
    left: 10px;
    right: auto;
    width: 180px;
  }

  /* Logo y nombre */
  .broker-header {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    top: 10px;
    left: 10px;
    position: fixed;
    gap: 5px;
  }

  #Login-user-id {
    display: block;
    text-align: center;
    margin-top: 5px;
  }
}

/* Portrait Specific */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  #chart-container {
    height: 300px;
  }

  .trading-panel {
    margin-top: 20px;
  }
}

/* Landscape Specific */
@media only screen and (max-width: 768px) and (orientation: portrait) {
  
  body {
    overflow-x: hidden;
  }

  #chart-container {
    width: 100%;
    height: 420px; /* Agrandado un 20% */
    margin-top: 80px;
  }

  .trading-panel {
    width: 85%; /* Achicado un 15% */
    margin: 0 auto;
    margin-top: 20px;
    position: relative;
    top: 0;
    right: 0;
  }

  .trade-button, .duration-select, .amount-input {
    width: 100%;
    font-size: 14px;
  }

  #three-dots-menu, #three-dots-menu-2 {
    top: 10px;
    left: 10px;
    right: auto;
  }

  #dropdown-menu, #dropdown-menu-2 {
    top: 50px;
    left: 10px;
    right: auto;
    width: 180px;
    max-width: 90vw;
    overflow-x: auto;
  }

  .broker-header {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    top: 10px;
    left: 10px;
    position: fixed;
    gap: 5px;
  }

  #Login-user-id {
    display: block;
    text-align: center;
    margin-top: 5px;
  }
}
