* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1f1f1f;
    color: #d2e1ea;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    position: fixed;
    top: 10px;
    left: 10px;
    text-align: center;
    font-size: 48px;
    color: #cccccc;
    margin-right: 50px;
}

ion-icon[name="albums-outline"] {
    vertical-align: top;
    margin-right: 10px;
}

input[type="text"], input[type="url"] {
    border: 1px solid #333333;
    background-color: #121212;
    color: #d2e1ea;
    border-radius: 5px;
    padding: 10px;
}

#search-bar {
    margin: 20px 0px;
    background-color: #1a1a1a;
    padding: 10px;
    width: 300px;
}

#search-bar::placeholder {
    color: #888888;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 112px);
    gap: 20px;
    width: 80%;
    justify-items: center;
}

.shortcut-item, #shortcut-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #d2e1ea;
    background-color: #1f1f1f;
    cursor: pointer;
    text-wrap: none;
    overflow: hidden;
    padding: 10px 10px 0px 10px;
    width: 112px;
    height: 112px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.shortcut-item:hover, #shortcut-add:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.8);
    background-color: #2a2a2a;
}

img {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
    object-fit: contain;
}

.shortcut-name {
    display: -webkit-box; 
    line-clamp: 2;        
    -webkit-line-clamp: 2;        
    -webkit-box-orient: vertical;
    align-content: center;
    text-overflow: ellipsis;
    width: 100%;
    text-wrap: wrap;
    height: 35px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

#shortcut-add {
    border: none;
    display: grid;
    place-items: center;
    padding: 0px;
}

#shortcut-add ion-icon {
    width: 100px;
    height: 100px;
    color: #d2e1ea;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    color: #d2e1ea;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    width: 300px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    flex-direction: row;
    gap: 10px;
}

.modal-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #0080ff;
    color: white;
    transition: background-color 0.2s;
}

#add-button:hover, #save-button:hover {
    background-color: #00a0ff;
}

#cancel-button, #delete-button {
    background-color: #b00000;
}

#cancel-button:hover, #delete-button:hover {
    background-color: #d00000;
}

#save-button, #delete-button {
    display: none;
}

#alert-box {
    display: none;
    color: #ff5555;
    font-size: 12px;
}

.reset {
    position: fixed;
    bottom: 20px;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    color: #888888;
    transition: color 0.2s;
}

.reset:hover {
    color: #bbbbbb;
}