* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  font-size: 14px;
  font-family: "Montserrat";
}

header {
  background-color: #2c2a4a;
  height: 50px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
}

a {
  color: white;
  text-decoration: none;
}

.logo-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

svg {
  margin-right: 10px;
}

main {
  display: flex;
  height: calc(100vh - 50px);
  /* width: 100%; */
}

main .left-section,
main .right-section {
  width: 50%;
}

main .left-section {
  background-image: url(../images/exercise.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

main .right-section {
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  justify-content: center;
}

/* main .right-section form {
 
} */
.right-section .form-control {
  width: 100%;
  margin: 20px 0;
}

.right-section .form-control input {
  width: 100%;
  padding: 6px;
}

button {
  width: 100%;
  background-color: #2c2a4a;
  color: white;
  padding: 10px;
  border: none;
  font-family: Montserrat;
  font-weight: 700;
}

::placeholder {
  text-align: center;
}
#modal-w{
  visibility: hidden;
  width:500px; 
  height:200px;
  margin: -400px auto;   
}
.modal-wrap{
  visibility: visible;        
}
.modal-container{
  width:300px; 
  height:160px;
  padding: 40px 30px;
  background: #ffffff;
  border: 2px solid black;
  border-radius: 20px;  
  position: relative;
}
#X{
  color:#000000;
  font-size: 30px;
  padding: 0px;
  background: none;
  position:absolute;
  height: 30px;
  left:120px;
  top: 0px;
}
#result{
  font-size: 20px;
  line-height: 1.5;
}

@media(max-width:600px){
  #modal-w{
    /* visibility: hidden; */
    width:300px; 
    height:200px;
    margin: -350px auto;   
  }
  main{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .left-section{
    display: none;
  }
  main .right-section {
    width: 100%;
  }
  /* #weight{
    margin-top: 20px;
  } */
  .right-section .form-control {
    width: 100%;
    margin: 20px auto;
  }
  
  .right-section .form-control input {
    width: 80%;
    padding: 10px;
    margin: auto;
  }

  button {
    width: 80%;
  }
}