@font-face {
    font-family: 'Arial Lovelyn Migra';
    src: url('../font/Migra-Extralight.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body, html {
    font-family: 'Arial Lovelyn Migra', Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    font-size: 24px;
}

html h1 {
    text-shadow: 2px 2px #F0DAD2;
}

.background-image {
    background-color: #F0DAD2; /* Imposta il colore di sfondo desiderato */
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#timer {
    text-shadow: 2px 2px #f1c9bb;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: #A07B6A;
}

.content {
    text-align: center;
    color: #A07B6A;
}

.buttons {
    margin-top: 20px;
}

.button {
    margin: auto;
    display: block;
    width: 200px;
    padding: 10px 20px;
    background-color: #F0DAD2;
    color: #A07B6A;
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.button:hover {
    opacity: 0.8;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    justify-items: center;
    align-items: center;
}

.grid-item {
    position: relative;
    cursor: pointer;
}

.grid-item img,
.grid-item video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 100%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.upload-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F0DAD2;
    color: #A07B6A;
    border: 1px solid #A07B6A;
    border-radius: 5px;
    cursor: pointer;
}

.upload-btn:hover {
    background-color: #A07B6A;
    color: #F0DAD2;
}

/* Stile per l'elemento di eliminazione */
.delete-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    border: none;
    color: #A07B6A;
    font-size: 24px;
    cursor: pointer;
}

#progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* altezza della barra */
    background-color: #A07B6A; /* colore rosso */
    z-index: 2; /* assicura che sia sopra al contenuto del modal */
    display: none; /* inizialmente nascosta */
}
