body {
    padding: 0;
    margin: 0;
    background-color: aliceblue;
}

h3 {
    background-color: aquamarine;
    border-width: 5px;
    border-color: black;
    margin: 0;
    text-align: center;
    font-size: 40px;
}

h4 {
    color: #fff;
    background-color: #999;
    margin: 0;
    font-weight: 400;
    margin-bottom: 1px;
    text-align: center;
    font-size: 25px;
}

.textareaWrapper {
    width: 100%;
    background-color: burlywood;
    display: flex;
    flex-direction: column;
    align-items: center;
}

textarea {
    width: 90%;
    margin: auto;
    min-height: 350px;
    min-width: 350px;
    padding: 10px;

}

.btnwrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: auto;
    padding: 30px;
    background-color: rgb(203, 240, 223);
}

button {
    min-width: 100px;
    font-size: 20px;
    background-color: blue;
    color: #fff;
    border-radius: 10px;
}

#filename {
    padding: 10px;
    min-width: 300px;
    border-radius: 10px;
    margin: 10px;
}
.input-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap:10px;
    margin:10px 0;
    position: relative;
    background-color: rgb(65, 105, 225,0.3);
}
.textareaWrapperInner {
    display: flex;
    flex-direction: row;
    width: 98%;

}

#preview {
    height: 350px;
    width: 350px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-width: 1px;
    margin-left: 5px;

}

#myIframe {
    max-width: 98%;
    flex: 1;
}

.prev-heading {
    font-size: 14px;
    width: 90%;
    text-align: center;
    font-style: italic;
    margin: 0;
}

/* Dropdown container */
.dropdown {
    display: inline;
    border-radius: 10px;
   
}

#myDropdown {
    padding: 2px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
     width: 150px;
}
#myDropdownSubFolder{
    padding: 2px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    width: 150px;
}

option {
    font-size: 12px;
    margin: 0;
    background-color: aliceblue;
}

#myFilesId {
    cursor: pointer;
    max-width: 250px;
    font-size: 12px;
}

#options-input {
    height: 15px;
    display: inline;
    position: absolute;
}

.viewLink {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 30px;
    position: absolute;
    right: 0px;
    bottom: -20px;
    padding: 2px 10px;
    border-radius: 5px;
    transform: translateX(50%);
}

.viewLink a {
    color: rgb(8, 8, 50);
    font-style: italic;
    font-weight: 600;
}

/* responsive web */
@media (max-width:1024px) {
    h3 {
        font-size: 25px;
    }

    textarea {
        width: 95%;
    }

    #preview {
        width: 98%;
    }
}

/* view page css */
.header {
    height: 60px;
    background-color: rgb(198, 175, 158);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0px 20px;
    align-items: center;
  
}

.link-container {
    background-color: rgb(195, 233, 233);
    display: flex;
    flex-direction: row;
    padding: 10px;
    flex-wrap: wrap;
    gap:5px; 
    justify-content: space-between;
}

.links-p {
    background-color: #fff;
    padding: 2px 0px;
    padding-left:10px;
    border-radius: 5px;
    margin: 5px;
    width: 220px;
    height: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border:1px solid rgb(117, 115, 115,0.3);
}
.links {
    color: #1d1dfb;
    font-size: 14px;
    width: 80%;
 
}

.icon{
    max-width: 25px;
    height: 16px;
    cursor: pointer; 
    border:1px solid rgb(117, 115, 115,0.3);
    padding: 1px;
    margin-right: -2px;
}
#conentLength{
    margin-right:10px;
    font-size:20px;
}

.createFolder{
    max-height:16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 5px;
}
.createFolder input{
    height:16px;
    border-radius:5px;
    margin-right:5px;
    width: 100px;
    font-size: 12px;
}
#createFolderBtn{
    height:16px;
    width:25px;
    background-color: rgb(255, 255, 255);
    font-size:12px;
    cursor:pointer;
    padding: 0 5px;
    border-radius:5px;
}
#toast {
      visibility: hidden;
      min-width: 250px;
      margin-left: -125px;
      background-color: #a6a4a4;
      color: #0a5e03;
      text-align: center;
      border-radius: 8px;
      padding: 16px;
      position: fixed;
      z-index: 1;
      left: 50%;
      bottom: 30px;
      font-size:22px;
      opacity: 0;
      transition: opacity 0.5s, bottom 0.5s;
      border: 1px solid #000;
    }
    /* Show toast */
    #toast.show {
      visibility: visible;
      opacity: 1;
      bottom: 50px;
    }
@media (max-width:1024px) {
    .addhtmlheading{
        font-size: 10px;
    }
    #filename{
        min-width: 150px;
        font-size: 12px;
        padding: 5px;
        border-radius: 2px;
    }
    .viewLink{
        bottom:-15px;
        right:0px;
        top:unset;
        font-size:12px;
         transform: translateX(0%);
    }
    .input-wrapper{
        width:100%;
        flex-wrap: wrap;
        gap:0px;
        margin: 0px;
    }
    .textareaWrapperInner{
        flex-direction: column;
        align-items: center;
    }
    #myTextarea{
        min-width: 300px;
        min-height: 150px;
    }
    #myFilesId {
        max-width: 150px;
        font-size: 8px;
        margin-left: 10px;
    }
    #preview{
        width: 98%;
        margin-left: 0px;
        margin-top: 10px;
        height: 200px;
    }
    .subFolderWrapper{
        margin-left: 10px;
        background-color: rgb(0,0,0,0.2);
        padding: 5px;
        border-radius: 5px;

    }
    #toast {
        font-size: 14px;
        min-width: 150px;
        padding: 10px;
        margin-left:-20px;
    }
    .link-container {
        justify-content: center;
    }
    .links-p {
        width: 95%;
    }
}