.hidden {
    display: none;
  }
/* genral document styles */
  * {
    box-sizing: border-box;
  }
  html,
  body {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #83EAF1 10%, #63A4FF 100%);
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }
  /* end of general document styles */

/* login page styles */
  #loginFlex {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #loginForm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 400px;
    border-radius: 20px;
    border-style: solid;
    box-shadow: 6px 3px 20px rgba(0, 0, 0, 0.2);
    background: #fbffff;
  }
  
  legend {
    margin: 0px 0px 0px 20px;
    padding: 0px 0px 11px 0px;
    font-weight: bold;
    font-size: 20px;
    font-family: 'Roboto', Arial, sans-serif;
  }
  
  figure {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  figure h1 {
    margin-bottom: 15px;
  }
  
  figure img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }
  
  figure figcaption {
    font-style: oblique;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    text-align: center !important;
  }
  
  #inputPassword {
    margin: 7px 20px 1px 20px;
    padding: 7px 0px 7px 0px;
    border-radius: 5px;
    border: 2px groove;
    width: 85%;
    text-align: center;
  }
  
  #loginError {
    color: red;
    font-size: 12px;
    height: 20px;
    width: 85%;
    text-align: left;
  }
  
  .loginBtn{
    padding: 5px 30px 5px 30px;
    margin: 5px 0;
    border: 0.1px solid;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Roboto';
    cursor: pointer;
    color: white;
    background-color: #63A4FF;
    box-shadow: 2px 1px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
  }
  .loginBtn:hover{
    background-color: #83EAF1;
    font-weight: bold;
    box-shadow: 4px 2px 10px rgba(0, 0, 0, 0.3);
  }
  /* end of login page styles */
  

/* styles for HTML containers*/
  .flexContainer {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    flex-direction: column;
  }
  .gridContainer {
    justify-content: flex-start;
    display: grid;
    grid-template-areas:
      "header header header"
      "nav main main";
    grid-template-columns: 1fr 2fr 2fr;
    width: 100%;
    min-width: 950px;
    max-width: 1600px;
    margin-top: 0.1vh;
  }
  
  header {
    grid-area: header;
    padding: 0;
    margin: 0;
    height: 30px;
  }
  
  nav {
    grid-area: nav;
    display: flex;
    height: calc(100vh - 25px);
    flex-direction: column;
    background: #E6F3FF;
    border:2px solid #292929ff;
    border-radius: 10px 4px 2px 10px;
    margin: 0 0.6vw 0px 12px;  
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 150px;
  }
  main {
    grid-area: main;
    height: calc(100vh - 25px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    margin: 0 12px 0 0.6vw;
  }
  #buttonsDiv{
    overflow-y: scroll;
    height: 100%;
    margin: 0;
    padding: 0;
  }
  #projectHeader{
    border-radius: 5px 2px 0 0;
    background-color: #3b3b3bff;
    color: lightgray;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #browserTopBar{
    background-color: #3b3b3bff;
    height: 25px;
    width: 100%;
    margin-bottom: 0;
    padding: 0;
    border-radius: 10px 4px 0 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    
  }
  footer {
    display: flex;
    width: 100%;
    border-radius: 20px 20px 0 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    color:white;
    background-color: rgba(106,90,205,0.3);
  }
  /* end of styles for HTML containers */


/* styles for headers font */
  h1{
    text-decoration: underline;
    margin: 15px 0 10px 0;

  }
  h2{
    padding: 0 0 0 10px;
    margin: 0;
    text-decoration: underline;
    font-size: 17px;
    font-weight: normal;
  }
  /* end of styles for headers font */


/* styles for HTML elements in navigation section */
  nav button {
    padding: 5px 20px;
    margin: 5px 0;
    border: none;
    width: 100%;
    background: none;
    text-align: center;
    font-size: 16px;
    font-family: 'Roboto';
    cursor: pointer;
    color: black;
    transition: font 0.2s, text-shadow 0.3s;
  }
  
  nav button:hover {
    color: black;
    font-weight: bold;
    font-size: larger;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  }
  /* end of styles for HTML elements in navigation section */

    
/* styles for HTML elements in main section */
  #web{
    height: 70%;
    padding:2px 0 0 10px;
  }
  .threeDots{
    padding: 3px 10px 0 0;
    height: 16px;
    align-self: center;
  }
  #iframeUrl{
      height: 70%;
      width: 78%;
      font-size: 12px;
      font-family: Arial, Helvetica, sans-serif;
      text-align: left;
      color: lightgray;
      background-color: #292929ff;
      border: 1px solid #666666ff;
      border-radius: 10px;
      padding: 2px 0 1px 10px;
      margin: 2px 10px 0 60px;
      align-self: center;
      flex-grow: 1;
  }
  #iframeTitle{
    color: white;
    font-size: 12px;
  }
  #browser {
    height: 100%;
    width: 100%;
    border: 2px solid #292929ff;
    border-radius: 0px 0px 3px 10px;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
  }
  /* end of styles for HTML elements in main section */

 
/* styles for Phone screens */
  @media screen and (max-width: 600px) {
    #loginFlex {
      padding: 10px;
      height: 95vh;
    }
    h1{
      font-size: calc(20px + 0.5vw);
    }
    #loginForm {
      width: 100%; 
      height: 100%;
    }
    .flexContainer{
      margin: 0;
      padding: 0;
    }
    .gridContainer {
      justify-content: flex-start;
      display: grid;
      grid-template-areas:
        "header"
        "main"
        "nav"
        "footer";
      grid-template-columns: 1fr;
      min-width: unset; /* Remove the min-width constraint */
      width: 100vw;
    }
    #browser {
      height: calc(100% - 25px); /* Subtract the height of the browser top bar */
      width: 100%;
      border: 2px solid #292929ff;
      border-radius: 0px 0px 3px 10px;
      box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.3);
    }
    main{
      width: 95%;
      margin: auto;
      padding: 0;
      height: calc(100vw * 1.4);
    }
    nav {
      margin:20px auto 20px;
      width: 95%;
      padding: 0;
      height: auto;
    }
    nav button {
      width: 40vw;
    }
    footer{
      margin-top: auto;
      border-radius: 0;
    }
  }
  @media screen and (min-width: 601px) and (max-width: 950px) {
    .gridContainer {
      min-width: unset; /* Remove the min-width constraint */
      border-radius: 0;
      width: 100%;
  }
  main{
    margin: 0;
  }
  nav {
    margin-left: 0;
  }
  footer{
    border-radius: 0;
  }
}