

body {
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
    align-items: center;
    font-family: Arial, sans-serif;
    height: 100vh; 
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    overflow: auto; 
}


p {
    margin: 15px 0;  
    font-size: 20px;  
    line-height: 1.6;  
    color: #333;  
    text-align: justify; 
    
}


.navbar {
    width: 100%;
    background-color: #333;
    overflow: hidden;
    position: fixed; 
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar-container {
    display: flex;
    justify-content: center;
}

.nav-link {
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 17px;
}

.nav-link:hover {
    background-color: #575757;
    color: white;
}

.nav-link.active {
    background-color: #04AA6D;
    color: white;
}


.page {
    display: none; 
    width: 100%;
    padding: 80px 20px 20px; 
    box-sizing: border-box;
}

.page.active {
    display: block; 
}

.home-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.home-container h1 {
    margin-bottom: 40px;
}

.home-section {
    background: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    text-align: left;
    margin-bottom: 40px;
}


.container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    max-width: 1400px; 
    width: 100%; 
    height: auto; 
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin: 0 auto; 
}

.left-side, .right-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    min-width: 300px; 
    box-sizing: border-box;
    background-color: #ffffff;
}

.left-side {
    border-right: 2px solid #f0f0f0;
}

.controls {
    margin-bottom: 20px;
    width: 100%;
    max-width: 500px; 
    box-sizing: border-box;
}
.markdown-content p {
    text-indent: 2em; 
}
.markdown-content ul {
    list-style-type: disc; 
    padding-left: 20px; 
}

#markdown-part1,
#markdown-part1 * {
    font-size: 20px !important;
    line-height: 1.6 !important;
    text-indent: 2em;
}
#markdown-part3,
#markdown-part3 * {
    font-size: 20px !important;
    line-height: 1.6 !important;
    text-indent: 0em;
}

#markdown-part4-content {
    font-size: 20px;

    line-height: 1.6;
    text-indent: 2em;
}
#markdown-part4-content ul, #markdown-part4-content li {
    text-indent: 0;
}

#markdown-part3 sup,
#markdown-part3 sup * {
    font-size: 0.5em !important; 
}
.no-indent {
    text-indent: 0 !important; 
}

.button-group {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    align-items: center; 
    gap: 40px; 
    flex-wrap: wrap; 
    margin-top: 10px; 
    margin-bottom: 10px; 
}


.button-group button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.button-group button:hover {
    background-color: #0056b3;
}


@media screen and (max-width: 768px) {
    .button-group {
        flex-direction: column; 
        gap: 10px; 
    }
}

input[type="file"], input[type="number"], input[type="text"], select {
    padding: 10px;
    margin: 5px 0;
    width: calc(100% - 20px);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}



#canvas-container {
    width: 100%; 
    height: 100%; 
    max-width: 800px;
    max-height: 800px;
    border: 1px solid black; 
    overflow: hidden; 
}

#pointInputs {
    margin: 20px auto;
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.point-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

#pointInputs input {
    width: 80px;
    padding: 5px;
}


.center-btn {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


#main-options-container {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    margin-top: 5px; 
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto; 
}

#main-options-container .button-group {
    display: flex;
    flex-direction: row;
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap;
    margin-top: 10px;
    margin-bottom: 10px;
}

#main-options-container button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#main-options-container button:hover {
    background-color: #0056b3;
}

.martini-version-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.radio-group {
    display: grid;
    grid-template-columns: auto auto; 
    gap: 15px 10px; 
    justify-items: center; 
     margin-left: 50px;
}
.radio-group_cg {
    display: grid;
    grid-template-columns: auto auto; 
    gap: 15px 10px; 
    justify-items: center; 

}
.pdb-dependent.hidden {
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column; 
    }

    .left-side, .right-side {
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
    }

    #canvas-container {
        height: 300px; 
    }
}


.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
  
  
  .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
  }
  
  
  .loader {
    border: 8px solid #f3f3f3; 
    border-top: 8px solid #3498db; 
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin: 50px auto; 
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  
  .modal-content h3 {
    margin-top: 0;
  }
  
  .modal-content pre.martinize-error-output {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }

  .modal-content pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
  }

.custom-control-stack {
    display: flex;
    flex-direction: column;  
    gap: 20px;                
    align-items: center;      
}

.custom-control-stack .zoom-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}


.parent-container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
}

