:root{
  --color1:#FF3F33;
  --color2:rgb(67, 112, 136);
  --color3:#075B5E;
  --color4:#9FC87E;
}

*{
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  direction: ltr;
  text-align: left;
}
    
body {
      font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

.outcontent{
  max-width: 1100px;
  margin: auto;
  padding-top: 20px;
  display: flex;
}
.left-content{
  width: 70%;
  padding-right: 20px;
}
    h1 {
      color: var(--color3);
      text-transform: capitalize;
      padding-bottom: 20px;
      margin-bottom: 10px;
      border-bottom: 1px solid var(--color4);
      max-width: 650px;
    }

    .converter {
      background: white;
      padding: 30px 60px;
      border-radius: 12px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
       text-align: center;
      outline: 2px solid var(--color3);
      margin-top: 20px;
      margin-bottom: 40px;
    }
  
    
    .converters-likns-ul{
      height: 100%;
      width: 100%;
      display: flex;
      list-style-type: none;
       
    }
    

    .row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    input, select {
      width: 48%;
      padding: 12px;
      font-size: 16px;
      border: 1px solid #ccc;
      border-radius: 8px;
      transition: border-color 0.3s;
      border: 2px solid var(--color3);
    }
    select{
      outline: 1px solid var(--primary-color);
    }
   
    input:focus, select:focus {
      outline-color: var(--color3);
    }
   #outputValue{
    background-color: #f1f5ff;
   }
   #inputValue{
        outline: 1px solid var(--primary-color);
   }
    .result {
      margin-top: 20px;
      font-size: 1.2em;
      color: #333;
      background: #f1f5ff;
      padding: 15px;
      border-radius: 8px;
    }

    .formula {
      margin-top: 10px;
      font-style: italic;
      color: #666;
      font-size: 0.9em;
      max-height: 200px;
      overflow-wrap: break-word;
      user-select: text;
      display: none; /* caché par défaut */
    }

 .all-conversions-parent{
  display: grid;
 }
  .all-conversions{
     max-width: 100%;
     list-style-type: none;
     
   }
  .all-conversions li{
  background-color: var(--color2);
  padding: 6px;
  border-radius: 5px;
  margin: 5px;
  float:left;
  }
  .all-conversions a{
  text-decoration: none;
  color: white;
  font-weight: 400;
  }
              h2 {
                color: var(--color3);
                padding-bottom: 10px;
                padding-left: 10px;
                border-left: 10px solid var(--color3);
                text-transform: capitalize;
                margin-top: 20px;
                margin-bottom: 20px;
            }

@media (max-width:1100px ){
  .left-content{
    width: 100%;
    padding: 20px;
   }
  .right-content{
    display: none;
  }
  h1{
    text-align: center;
    margin: auto;
    width: 100%;
  }
  h2{
    margin-left: 0;
  }
  .converter{
    margin: auto;
    margin-top: 20px;
   }
}
@media ( max-width:600px ){
   .converter{
    width: 100%;
    padding: 20px;
   }
 
}