html{
    margin: 0;
    padding: 0;
    height: 100%;
}
body{
    margin: 0;
    padding: 0;
    background: rgba(51, 44, 164, 1.0);
    background: radial-gradient(at center, rgba(51, 44, 164, 1.0), rgba(102, 188, 205, 1.0));
    height: 100%;
    font-size: 1.15em;
}
#page{
    position: absolute;
    top: 25px;
    right: 25px;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    
}

a{
    font-weight: bold;
    cursor: pointer;
}

.controls{
    padding: 5px;
    background-color: transparent;
    display: flex;
    align-items: center;
    padding-bottom: 0;
    margin-left:15px;
    margin-right:15px;
}
.controls>div{
    padding: 5px 10px;
    /* background-color: rgb(173, 185, 233); */
    margin: 5px;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: bold;
    color: rgb(24, 24, 73);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-top:1px solid black;
    border-right:1px solid black;
    border-bottom:none;
    border-left:1px solid black;
    
}
#editButton,#editFinish{
    margin-left: auto;
}
#editFinish{
    display:none;
}
.editOverlay{
    display: none;
    position: absolute;
    top:0;
    right:0;
    bottom: 0;
    left: 0;
}
#editOverlay{
    display: none;
}
.editEditButton{
    position: absolute;
    top:0;
    left:50%;
    transform: translateX(-50%);
}
.editDeleteButton{
    position: absolute;
    bottom:0;
    left:50%;
    transform: translateX(-50%);
}
.editLeftButton{
    position: absolute;
    top:50%;
    left:0;
    transform: translateY(-50%);
}
.editRightButton{
    position: absolute;
    top:50%;
    right:0;
    transform: translateY(-50%);
}
.not-selected{
    background-color: rgba(84, 95, 247, .05);
}

.selected{
    background-color: rgba(84, 95, 247, .3);    
}
#addlink, #editlink, #editConfirm{
    max-width: 600px;
    width:100%;
    background-color: #35aed3;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-collapse: collapse;
    border-radius: 15px;
    font-weight: bold;
    display: none;
    z-index: 15;
}
#editConfirm{
    text-align: center;
}
#editConfirmText{
    font-size: 150%;
    font-weight: normal;
}
#addlink input, #editlink input{
    width: 100%;
    box-sizing: border-box;
}
#addLinkTitle, #addLinkButtons, #editLinkTitle, #editLinkButtons{
    text-align: center;
}
#addLinkTitle, #editLinkTitle{
    padding-top: 2px;
}
#addLinkTitle, #addLinkButtons, #editLinkTitle, #editLinkButtons{
    padding-bottom: 5px;
}
td:has(> label){
    white-space: nowrap;
    width:1%;
    padding-left: 10px;
}
td:has(> input){
    padding-right: 10px;
}
#addLinkButton, #confirmEditLinkButton{
    margin-top:2px;
    margin-right:2.5px;
}
#cancelAddLinkButton, #cancelEditLinkButton{
    margin-left: 2.5px;
}

/* div.search{
    padding: 5px;
    background-color: rgba(84, 95, 247, .3);
    display: flex;    
    align-items: center;
    padding-left: 20px;
    padding-right:20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
} */

div.search {
    padding: 5px;
    background-color: rgba(84, 95, 247, .3);
    /* background-color: rgb(84, 95, 247); */
    display: flex;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    flex-wrap: wrap; /* Allow wrapping of child elements */
}

div.search > *{
    /* padding: 5px; */
    margin:5px;
}
#searchField {
    flex-grow: 1;
}

#advancedSearchButton{
    font-size:90%;

}
input, button, select {
    font-size:1.0em;
}
input, select {
    background-color: rgba(255,255,255,.75);
}




.content{
    flex-grow: 1;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    justify-content: center;
    /* align-items: space-around; */
    align-content: center;
    align-content: flex-start;
    background-color: rgba(84, 95, 247, .3);   
    overflow: auto;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    
}

.item {
    height: 150px;
    width: 150px;
    display: flex;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    flex-direction: column;
    border: outset black;
    color: rgb(52, 221, 254);
    border-radius: 15px;
    margin: 2.5px;
    padding-top:5px;
    position: relative;
    transition: border 1s ease-in-out, background-color 0.3s ease-in-out;    
}
.item.clicked {
    border: inset black;
    background-color: rgba(0, 0, 0, 0.1); /* Optional background change for added effect */
}
.addlink{
    padding-top:0;
    height:155px;
}

.item :first-child {
    display: flex;
    justify-content: center;
    align-items: center;  /* Center the image vertically */
    flex-grow: 1;
    overflow: hidden;
}

.item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;  /* Preserve aspect ratio */
}




.o-content{
    display: none;
    
}

#iconCell, #editIconCell{
    height: auto;
    padding-right: 10px;
    position: relative;
}
#iconImage, #editIconImage{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#iconDiv, #editIconDiv{
    display: flex;
    position: absolute;
    top:0;
    right:10px;
    bottom:0;
    left:0;
    align-items: center;
    justify-content: space-around;

}
#checkUrlButton, #getIconButton, #editCheckUrlButton, #editGetIconButton{
    /* margin:0 10px 0 0; */
    width: 100%;  
}
#checkUrlButtonCell, #getIconButtonCell{
    padding-right: 10px;
}
#checkUrlCell{
    margin: 0;
    padding: 0;
}
#UrlFieldCell{
    margin-right: 0;
}

#iconChecker{
    height:100px;
    width:100px;
    z-index: -10;
    overflow: hidden;
    position: absolute;
    top:0;
    left: 0;
    background-color: #faa;
    opacity: 0;
}
#iconFile, #editIconFile{
    display: none;
}
#iconLabel, .editEditButton, .editDeleteButton, .editLeftButton, .editRightButton, #editIconLabel{
    border: outset;
    background-color: #d1f0f9;
    cursor: pointer;
    padding:0 5px;
    transition:  border 0.1s;
    font-weight: normal;
}
.editEditButton, .editDeleteButton, .editLeftButton, .editRightButton{
    color: #000;
    border-color: #aaa;
}
#iconLabel:active, .editEditButton:active, .editDeleteButton:active, .editLeftButton:active, .editRightButton:active, #editIconLabel{
    border: inset;
}

#advancedSearch{
    /* background-color: #f00; */
    display: none;
    position: absolute;
    left: 0;
    right:0;
    /* background-color: rgba(84, 95, 247, .3); */
    background-color: rgb(84, 95, 247);
    color:#d9fdee;
}
#googleAdvancedSearchControls{
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 5px;
}
#googleAdvancedSearchControls>div{
    margin:0 5px;
    flex-grow: 1;
}
#googleAdvancedSearchControls > :first-child{
    text-align: right;
}
#googleAdvancedSearchControls > :last-child{
    padding-right: 10px;
}
#advancedSearch > :first-child{
    font-size: 125%;
    font-weight: bold;
    text-align: center;
}
#googleDomainFilter{
    width:100%;
    height:200px;
    margin-right:10px;
    font-size: 133%;
}
#pcheck{
    display: none;
}
#noteBox{
    height: 100%;
    width: 100%;
    text-align: left;
    margin: 0 10px;
    font-size: 1.5em;
    background-color: rgba(255,255,255,.90);
}
#notes{
    padding-bottom:25px;
}



/*todo stuff*/
#todotitle{
    font-size: 150%;
    font-weight: bold;
    margin-top: 5px;
    display: block;
    text-align: center;

}

#todobody{
    background-color: transparent;
    /* display: flex; */
    /* padding: 5px; */
}
.todofullitem{
    background-color: rgba(255, 255, 255, 0.5);
    padding:5px;
    margin:5px;
    border-radius: 10px;
}
.todoentry{
    /* background-color: #f00; */
    display: flex;
    /* padding: 5px; */
    justify-content: space-between;
    align-items: center;
    height: auto;
}
.tododate{
    background-color:transparent;
    /* padding: 5px; */
}
.todocompletedate{
    background-color:transparent;
    /* padding: 5px; */
}
.todoitemsection{
    background-color: transparent;
    /* padding: 5px; */
}
.todoitem{
    /* background-color: #88f; */
    /* padding: 5px; */
    font-size: 125%;
    /* height: 100px; */
}

.todocompletesection{
    background-color: transparent;
    margin-bottom: 8px;
    margin-top: 4px;
    padding-left: 8px;
    /* padding: 5px; */
}
.todocompletebutton{
    /* background-color: #fff; */
    /* padding: 5px; */
    background-color: inherit;
}
.todobutton{
    cursor: pointer;
    font-size: 90%;
    font-weight: bold;
    background-color: rgb(80, 77, 180);
    color:#fff;
    display: inline;
    /* height:31px; */
    padding:4px 8px;
    vertical-align: middle;
    box-shadow: 5px 5px 5px 0 rgba(0,0,0,0.75);
    transition: box-shadow 0.5s ease;
}
.todobutton.clicked {
    box-shadow:none;
}

.crossedout{
    text-decoration: line-through;
}

.todoincompletebutton{
    /* background-color: #888; */
    /* padding: 5px; */
    display: inline;
}
.todoordersection{
    padding-left: 10px;
    /* padding: 5px; */
    /* color:rgb(46, 110, 71); */
    /* color: white; */
    
    font-size: 150%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* transition: text-shadow .3s ease; */
}
.tododown.clicked,.todoup.clicked{
    text-shadow:
       -1px -1px 0 black,
        1px -1px 0 black,
       -1px  1px 0 black,
        1px  1px 0 black;
}

.tododown,.todoup{
    color: #fff;
    transition: color 0.3s ease-in-out, text-shadow .3s ease;
    text-shadow:
       -1px -1px 0 black,
        1px -1px 0 black,
       -1px  1px 0 black,
        1px  1px 0 black,
        -5px 5px 5px rgba(0,0,0,0.75),
        5px 5px 5px rgba(0,0,0,0.75);
}
.tododown:hover,.todoup:hover{
    color: #ff0;
}

#todohidecomplete{
    display: none;
    border: solid black 1px;
    margin-top:5px;
}
#todoshowall{
    border: solid black 1px;
    margin-top:5px;
}
#todoshowbuttons{
    text-align: right;
}

.todoup{
    cursor: pointer;
    margin:5px;
}
.tododown{
    margin-top: auto;
    cursor: pointer;
    margin:5px;
}

.completed{
    /* display: none; */
    background-color: rgba(255,255,255,.25);
}