

/* General Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Reduce Header Height */
header {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 8px 0; /* Reduce padding to shrink height */
    font-size: 18px; /* Reduce text size */
}

/* Reduce the h1 inside the header */
header h1 {
    margin: 0;
    font-size: 24px; /* Reduce font size */
}

/* Reduce the Back Button */
.back-btn {
    position: absolute;
    left: 5px;
    top: 5px;
    background-color: white;
    color: #007bff;
    padding: 6px 12px; /* Make button smaller */
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    font-size: 14px;
}

/* Reduce Button Hover Effect */
.back-btn:hover {
    background-color: #ddd;
}


/* Container */
.container {
    width: 90%;
    margin: auto;
    padding: 5px;
}

/* Row Styling */
.row {
    background-color: white;
    margin-bottom: 5px;
    padding: 0px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Full-Width Section */
.full-width {
    text-align: center;
}

/* Two-Column Layout */
.two-columns {
    display: grid;
    gap: 10px;
    align-items: stretch; /* Ensures both columns have equal height */
    justify-content: center; /* Centers content if columns are small */
}


/* Custom column sizes for each section */
.dataset-grid {
    grid-template-columns: 1fr 1.6fr; /* First column smaller, second column wider */
}

.lattice-grid {
    grid-template-columns: 1.7fr 1fr; /* First column wider, second column smaller */
}

.dynamics-grid {
    grid-template-columns: 1.05fr 0.8fr; /* First column wider, second column smaller */
}

.column {
    padding: 3px;
}


/* Reduce height of the comparison row */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 4 equal columns */
    gap: 20px;
    align-items: center; /* Keep items aligned */
    justify-content: center;
    text-align: center;
    padding: 2px 0; /* Reduce vertical padding */
    height: auto; /* Adjust height dynamically */
}

/* Reduce the height of images */
.comparison-grid img {
    width: 100%;
    max-width: 200px; /* Reduce width if necessary */
    height: 80px; /* Set a smaller height */
    object-fit: contain; /* Keep aspect ratio without cropping */
    border-radius: 5px;
    border: 1px solid #ddd;
}


/* Three-column layout with merged last column */
.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal columns */
    gap: 20px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Merged column spanning across both rows */
.merged-column {
    grid-row: span 2; /* Makes it span across both rows */
}



/* Info Box */
.info-box {
    background-color: #f8f9fa;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background-color: #007bff;
    color: white;
}

/* Images */
img {
    width: 100%;
    max-width: 400px;
    height: 300px;
    object-fit: contain;
    margin: auto;
    overflow: visible; 
    border-radius: 5px;
    border: 1px solid #ddd;
}




/* Downloads Section - Full Width */
.downloads-section {
    text-align: center;
    padding: 5px 0;
    width: 100%; /* Full width of the page */
}

/* Download Links Container - Two Columns Layout */
.download-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Correct: Two equally spaced columns */
    gap: 30px;
    justify-items: center; /* Ensure buttons are centered in each grid cell */
    align-items: center;
    max-width: 400px; /* Tighter width for better spacing */
    margin: auto;
    padding: 10px 0;
}


/* Individual Columns */
.column {
    display: flex;
    justify-content: center;
}

/* Download Buttons */
.download-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    color: white;
    transition: 0.3s ease;
    width: 150px;       /* Adjust width as needed */
    text-align: center;
    display: inline-block;
}


/* Specific Colors for Each File Type */
.gap {
    background-color: #007bff;
}

.tersoff {
    background-color: #28a745;
}

.dataset {
    background-color: #ff5733;
}

/* Hover Effects */
.gap:hover {
    background-color: #0056b3;
}

.tersoff:hover {
    background-color: #1e7e34;
}

.dataset:hover {
    background-color: #c44121;
}


/* Basic Information Section */
.basic-info {
    text-align: center;
    padding: 0px 0;
    width: 100%;
}
/* Customize "Basic Information" Title */
.basic-info h2 {
    font-size: 20px; /* Adjust the size of the title */
    margin-bottom: 2px; /* Reduce space below title */
    font-weight: bold;
    color: #333; /* Custom text color */
}

/* Arrange Text in One Row */
.info-container {
    display: flex;
    justify-content: center;
    gap: 50px; /* Adjust spacing between items */
    background-color: #f8f9fa;
    padding: 5px; /* Reduce padding for a compact look */
    border-radius: 0px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    
    /* Adjust Width */
    width: 80%; /* Change width (adjustable) */
    max-width: 900px; /* Set a max width */
    margin: 0 auto; /* Center the container */
}


/* Adjust Font */
.info-container p {
    font-size: 16px;
    margin: 0;
}

/* Center section for Dataset & Energy/Force */
.section-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center everything horizontally */
    text-align: center;
}

/* Style Section Title (h2) */
.section-container h2 {
    font-size: 18px; /* Adjust title size */
    font-weight: bold;
    margin: 2px 0; /* Reduce space above and below */
    padding: 0; /* Remove any extra padding */
}

/* Style Text Description */
.section-container p {
    font-size: 14px;
    margin-bottom: 10px; /* Space between text and image */
}

/* Style Images */
.section-container img {
    width: 100%;
    max-width: 100%;/* Adjust image size */
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
}



/* Reduce space around Downloads title */
.downloads-section h2 {
    font-size: 18px; /* Adjust size */
    font-weight: bold;
    margin: 5px 0; /* Reduce space above and below */
    padding: 0; /* Remove any extra padding */
    text-align: center;
}
