/* Parent container using Flexbox */
.google-drive-browser {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    color: var(--color-pri);
    width: 80%;
    outline: none;
}

  .gde-cool-button {
      display: inline-block; /* Ensure proper alignment */
      padding: 12px 10px; /* Increased padding for larger clickable area */
      font-size: 18px; /* Increase font size for better readability */
      font-weight: bold; /* Make text stand out */
      border: none; /* Remove default borders */
      border-radius: 8px; /* Slightly larger rounded corners */
      cursor: pointer; /* Pointer cursor on hover */
      transition: transform 0.2s ease, background-color 0.2s ease; /* Smooth animation */
      margin: 8px 0; /* Add margin to create space between buttons */
   
      text-align: center; /* Ensure the icon is centered */
  }


   .gde-cool-button:hover {
       transform: scale(1.1); /* Slightly enlarge the button */
   }

   /* Remove outline when focused */
   .gde-cool-button:focus {
       outline: none;
   }


.google-drive-browser button,
.google-drive-browser button:focus,
.google-drive-browser button:active {
    background: none !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}


    .google-drive-browser .gde-drive-link {
        display: flex;
        justify-content: flex-end;
        margin: 5px 10;
    }


.google-drive-browser button img {
    display: block; /* To ensure no extra padding or margin from inline styling */
    padding: 0;
    margin: 0;
}
.google-drive-browser  .prc-root-name 
{
    padding: 10px 20px;
      border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-bottom:20px;
    margin-top:10px;
    min-width: auto; 
    width:auto!important;
    display: inline-block;
    flex-direction: row;
    font-size:20px;
    font-weight:700;
    background-color: var(--color-pri);
    color: var(--color-sec)!important;
}

.google-drive-browser .breadcrumb-trail, .prc-root-name{
    display: inline-block!important;
    flex-direction: row!important;
    font-size:20px!important;
    font-weight:700;
    align-items: center;
    background-color: var(--color-pri);
    color: var(--color-sec)!important;
      min-width: auto!important; 
    width:auto!important;
    border: none;
    border-radius: 50px;
    padding: 10px 20px!important;
    cursor: pointer;
    margin-bottom:0px;
    transition: transform 0.5s ease-in-out
   
}

.google-drive-browser .breadcrumb-trail:hover {
  filter: brightness(125%);
}



/* Folder title styling */
.google-drive-browser .current-folder-title {
    /*text-decoration: underline;*/
    font-size: 32px;
    font-style: italic;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 0;
}

/* Paragraph inside the container */
.google-drive-browser p {
    margin: 0 0 5px;
    padding: 0 !important;
    font-size: 30px;
    font-weight: 700;
}

/* Link styling */
.google-drive-browser a, a.breadcrumb-trail {
    margin-bottom: 0;
    text-decoration: none;
    color: var(--color-pri);
    display: flex;
    align-items: center;
}

/* File container styling */
.google-drive-browser .file-container {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    color: var(--color-pri);
    font-weight: 600;
    align-items: start;
    margin-top: 20px;
}


/* File info and folder link */
.google-drive-browser .file-info, .folder-link {
    display: flex;
    align-items: center;
    font-weight: 700;
    border: none;
    outline: none;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

/* Hover effect for file info and folder links */
.google-drive-browser .file-info:hover, .folder-link:hover, .prc-root-name:hover {
    filter: brightness(105%);
    transform: scale(1.05);
}

.audio-player {
    max-width:80%;
    margin-left:5px;
}

/* File actions (hidden by default) */
.google-drive-browser .file-actions {
    display: none;
    margin-top: 5px;
    margin-left: 25px; 
    gap: 2px;
}

/* Show actions when the file container is clicked */
.google-drive-browser .file-container .file-actions {
    display: flex;
    gap:10px;
}

/* Loading Indicator Styles */
.google-drive-browser .loading-indicator {
    width: 60px;
    height: 60px;
    margin-top:20px;
    margin-right: 10px;
     position: relative;
    display: flex;
    align-items: center; /* Align vertically */
    justify-content: center; /* Align horizontally */
}

.google-drive-browser .loading-indicator::before {
    content: "";
    position: absolute;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--color-pri);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: prcgde_spin 2s linear infinite;
       
    box-sizing: border-box; /* Make sure the border doesn't affect the overall size */
}

.google-drive-browser .loading-indicator::after {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    background-image: var(--img-loading);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

   top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
     display: flex; /* Use flex to help center */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

/* Keyframes for loading spinner */
@keyframes prcgde_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.googe-drive-browser .file-container .file-actions button
{
    border:none;
    outline:none;
    background-color:transparent;
}

/* Button styling */
.google-drive-browser .button-container button {
    background-color: var(--color-pri);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-align: center;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

.google-drive-browser .button-container button a {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
  
}

.google-drive-browser .button-container button:hover {
    filter: brightness(125%);
}


.google-drive-browser .edit-link i {
    display:flex;
    align-self: center; /* Align it vertically in the same line */
    color:#cdb450!important;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
    }
    
    .google-drive-browser .edit-link i:hover {
   transform: scale(1.1);
   cursor:pointer;
    }

.google-drive-browser .gdeprc-input-text
{
    padding:10px;
    border-radius:10px;
    border:1px solid var(--color-pri)
}


/* Play, download, and other action buttons */
.google-drive-browser .play-button, .download-button, .view-button, .star-link, .showImg-button {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    color:var(--color-pri);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.5s ease-in-out, opacity 0.3s ease;
}

.google-drive-browser .play-button:hover, .download-button:hover, .showImg-button:hover {
    filter: brightness(125%);
    transform: scale(1.2);
    opacity: 1.0;
}


.google-drive-browser .gdeprc_button {
    color: var(--color-pri)!important;
    background: none;
    border: none!important;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}    

.google-drive-browser .gdeprc_button i {
    color: var(--color-pri)!important;
    background: none;
    border: none!important;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}    


.google-drive-browser .gdeprc_button:hover, .breadcrumb-trail:hover, .close-button:hover {
    transform: scale(1.1);
    opacity: 1.0;
}

.google-drive-browser .gdeprc-input-text:focus,
.google-drive-browser .gdeprc_button:focus, 
.google-drive-browser .play-button:focus,  
.google-drive-browser .gdeprc_button:active, 
.google-drive-browser .play-button:active {
    outline: none; /* Removes the default outline (which can appear as a border) */
    border: none;  /* Ensures no border is added */
}

.google-drive-browser #uploadFormX, .Xgdeprc-form-container
{
    display:none;
    border:2px solid var(--color-pri);
    border-radius:10px;
    -webkit-border-radius: 10px; /* Add prefix for Safari compatibility */
    padding:20px 20px;
    position: relative
}


/* Close button styling */
.google-drive-browser .Xclose-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: red;
    opacity: 0.8;
    transition: transform 0.3s ease-in-out;
}

.google-drive-browser .file-info img {
    margin-right: 10px; /* Space between icon and file name */
}

.google-drive-browser .media-container {
    margin-top: 20px;
}


/*
/* .google-drive-browser .file-container span .file-name {
 /*       display: flex; /* Align the file name inline */
/*        align-items: center; 
/*        margin-right:10px;
//        }
        
//        .google-drive-browser .file-container .file-name img {
//    margin-right: 5px; /* Add space between the image and text */
/*    margin-top:20px;
//}
*/


/* Small screen adjustments */
@media (min-device-width:320px) and (max-device-width:768px) /*  (max-width: 600px) */
{
    .google-drive-browser {
        text-align: center;
        padding: 0 3px;
        width: 100%;
        font-size:24px;
    }
    
    
 .google-drive-browser .file-container  {
        display:flex;
        flex-direction: column;
        align-items: flex-start;
        margin-top: 5px;
       
        width:100%;
    }


    
  .google-drive-browser .file-container span {
        flex-direction: row; /* Ensure children are in a row */
        display:flex;
        justify-content: flex-start;
         font-weight:500;
        font-size:0.9em;
        align-items: center; 
     /*   margin-top: 40px; */
        width:auto;
        flex-wrap: nowrap; /* Prevent wrapping */
    }

.google-drive-browser .loading-indicator-wrapper {
        display: flex;
        justify-content: center; /* Center horizontally */
        width: 100%;
    }



  .google-drive-browser .file-container span .file-name {
        display: flex; /* Align the file name inline */
        align-items: center; 
        margin-right:10px;
        }
        
        .google-drive-browser .file-container .file-name img {
    margin-right: 5px; /* Add space between the image and text */
}

.google-drive-browser  .breadcrumb-trail
{
    display:flex;
    align-items:center;
    justify-content: center;
    align-self: center; 
    width:100%;
}

.google-drive-browser .file-container .file-controls
{
    display:flex;
    align-items:center;
    justify-content: center;
    align-self: center; 
    width:100%;
}

    .google-drive-browser .file-container .folder-link, .file-container .file-info {
        display:flex;
        align-items:center;
    align-self: flex-start; /* Align the folder link to the left within the flex container */
    width: 100%; /* Optionally, make the folder link take up the full width */
    text-align: left; /* Ensure the text inside the folder link is aligned left */
    transition: opacity 0.3s ease;
    margin-right: 0!important;
    margin-left:0!important;
    margin-bottom:20px;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
     }

    .google-drive-browser  .file-container  .file-actions {
  display:flex;
    justify-content: center;
    align-content:center;
    align-self: center; 
    margin-top: 15px;
   margin-left: -15px;
    gap: 15px;
}

.google-drive-browser .play-button, .view-button, .showImg-button {
    width: 40px;
    height: 40px;
    
}

.google-drive-browser .edit-link i {
   
        margin-bottom:20px;

    }


.google-drive-browser .star-link i
{
     margin-bottom:30px; 
      margin-top:0px; 
  /*  display: flex;
    align-self: center;
  
   */
}

.google-drive-browser   .download-button .fa-download {
        font-size: 2.5em!important; /* Adjust the size as needed */
        color:var(--color-pri);
       /* margin-left:-15px;  */
        margin-right:10px!important;
    }
   
}
