/* General Page Styling */
* {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
body {
    font-family: "Poppins", sans-serif; /* Modern, clean font */
    margin: 0;
    padding: 0;
    text-align: center;
    background: #f4f7fc; /* Soft gradient background */
}
/* Logo */
#logo-container {
    text-align: center;
    margin-bottom: 20px;
}

#logo-container img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Container */
#gdrive-container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs */
#gdrive-breadcrumbs {
    margin-bottom: 20px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    text-transform: uppercase
}

#gdrive-breadcrumbs a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;

}


/* Grid Layout */
#gdrive-folder-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    #gdrive-folder-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
/* Ensure grid layout maintains structure */
#gdrive-folder-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    #gdrive-folder-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Grid Items */
.gdrive-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    width: 100%;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.gdrive-item a {
    text-decoration: none;
    text-transform: uppercase;
}
.gdrive-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Image Thumbnails - Fix Scaling Issue */
.gdrive-item img {
    width: 100%;
    max-width: 100%; /* Ensures image doesn't exceed its parent */
    height: auto;
    aspect-ratio: 1 / 1; /* Ensures a square aspect ratio */
    object-fit: contain; /* Ensures the entire image fits */
    border-radius: 10px;
    border: 2px solid #e0e4f7;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
}

.gdrive-item:hover img {
    border-color: #007bff;
}

/* File / Folder Names */
.gdrive-item span {
    display: block;
    margin:3px auto;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    max-width: 160px;
    overflow-wrap: break-word;
    text-align: center;
    text-decoration: none;
}

/* Download Button */
.download-button {
    margin-top: 8px;
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-button:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* Ensure everything animates smoothly */
* {
    transition: all 0.3s ease;
}
