
* {
    box-sizing: border-box; 
}

body {
    font-family: 'Arial', 'Roboto', 'Helvetica', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafaf8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; 
    width: 100%;
    max-width: 100vw;
    line-height: 1.6;
}

.tool-list {
    list-style-type: none; 
    padding: 0; 
    margin: 20px 0;
}

.tool-list li {
    margin-bottom: 15px; 
}

.tool-list li a {
    display: block; 
    background-color: #f9fafb; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    padding: 15px; 
    text-decoration: none; 
    color: #1f2937; 
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
}

.tool-list li a strong {
    font-weight: bold; 
    color: #1f2937; 
}

.tool-list li a:hover {
    background-color: #e0f2fe; 
}


.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    width: 100%;
    flex-grow: 1;
}


.sidebar {
    flex: 0 0 250px;
    background-color: #1f2937;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
    border-bottom: 2px solid #4b5563;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: #4b5563;
    color: #fff;
}

.content {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    font-size: 26px;
    margin-bottom: 20px;
    color: #1f2937;
}

label, select, button {
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
}

select, button {
    padding: 10px;
    width: 100%;
    max-width: 100%; 
    margin-top: 10px;
    border-radius: 5px;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    color: #333;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


button {
    background-color: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    line-height: 1.5;
    white-space: nowrap;
}

button:hover {
    background-color: #2563eb;
}

#button-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: nowrap; 
}

#info {
    margin-top: 40px;
}

#info h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

#info h3 {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #333;
}

#info p {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 15px;
    color: #4b5563;
}

#info ol, #info ul {
    padding-left: 0;
    margin-left: 0;  
    list-style-position: inside; 
}

#info ol li, #info ul li {
    padding-left: 0; 
    margin-left: 0;  
    color: #4b5563;
}

.language-version {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.language-version li {
    flex: 0 0 calc(20% - 10px);
    max-width: calc(20% - 10px);
}

.language-version li a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    height: 60px; 
    width: 100%;
    box-sizing: border-box;
}

.language-version li a:hover {
    background-color: #3b82f6;
    color: white;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-group input[type="radio"] {
  /* Hide the default radio */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}

.radio-group label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.radio-group label:hover {
  color: #2c7be5;
}

.radio-group label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: white;
  transition: all 0.2s ease;
}

.radio-group label:hover:before {
  border-color: #2c7be5;
}

.radio-group input[type="radio"]:checked + label:before {
  border-color: #2c7be5;
  background: #2c7be5;
  box-shadow: inset 0 0 0 3px white;
}

.radio-group input[type="radio"]:focus + label:before {
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.3);
}

@media (max-width: 480px) {
  .radio-group {
    flex-direction: column;
    gap: 10px;
  }
}

.footer {
    text-align: center;
    padding-bottom: 15px;
}

.footer p {
    margin: 0;
    font-size: 0.8em;
    color: #4b5563;
}

.footer p a {
    color: #4b5563;
    text-decoration: none;
    padding: 10px; 
}


table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
}

th {
    background-color: #f3f4f6;
    font-weight: bold;
}

tr:hover {
    background-color: #e0f2fe;
}

#common-link {
            margin-top: 30px;
        }

#common-link h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1f2937;
}

        #common-link ul {
            list-style-type: none;
            padding: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }
        #common-link li {
            flex: 1 0 calc(33.333% - 10px);
            min-width: 100px;
        }
        #common-link a {
            display: block;
            padding: 10px;
            background-color: #f0f0f0;
            border-radius: 5px;
            text-align: center;
            text-decoration: none;
            color: #333;
            transition: background-color 0.3s ease;
        }
        #common-link a:hover {
            background-color: #e0e0e0;
        }

.input-group {
      margin-top: 20px;
    }

    .input-group label {
      display: block;
      margin-top: 10px;
      margin-bottom: 5px;
    }

    .form-control {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
      margin-bottom: 10px;
      font-size: 1rem;
    }

    #result {
      margin-top: 20px;
      padding: 20px;
      background: #f8f9fa;
      border-radius: 4px;
      display: none;
      font-size: 1.5rem;
      font-weight: bold;
      color: #3b82f6;
    }

@media (max-width: 768px) {

    .language-version li {
        flex: 0 0 calc(33.33% - 10px);
        max-width: calc(33.33% - 10px);
    }
    
    .container {
        flex-direction: column;
        padding: 15px; 
        margin: 0; 
    }

    .sidebar {
        flex: 0 0 auto;
        margin-right: 0;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
        order: 1;
        padding: 15px; 
    }

    .content {
        order: 0;
        margin-bottom: 20px;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    h1 {
        font-size: 20px; 
        margin-bottom: 15px;
    }

    .sidebar h2 {
        font-size: 18px; 
    }

    #info h2 {
    font-size: 18px;
}

#info h3 {
    font-size: 1em;
}

    label, select, button {
        font-size: 16px; 
    }

    select, button {
        padding: 8px; 
    }

    #result-name {
        font-size: 28px; 
    }

    #common-link h2 {
    font-size: 18px;
}
        #common-link li {
                flex: 1 0 calc(50% - 10px);
            }
}
