body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

header {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    width: 100%;
    background-color: hsla(0, 4%, 18%, 0);
    color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    flex-direction: column; /* Stack avatar and nav vertically */
    align-items: center;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px; /* Space between avatar and nav */
}

nav {
    margin-top: 10px; /* Adjust spacing as needed */
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    opacity: 0;
    animation: fadeIn 2s forwards;
}

nav ul li {
    margin-right: 20px;
    opacity: 0;
    animation: fadeInItem 2s forwards;
}

nav ul li:nth-child(1) {
    animation-delay: 0.5s;
}

nav ul li:nth-child(2) {
    animation-delay: 1s;
}

nav ul li:nth-child(3) {
    animation-delay: 1.5s;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.countdown {
    text-align: center;
    position: relative;
    z-index: 1;
}

#timer {
    font-size: 48px;
    font-family: 'Courier New', Courier, monospace;
}

#date {
    margin-top: 20px;
    font-size: 24px;
    font-family: 'Courier New', Courier, monospace;
}

#editButton {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#editButton:hover {
    background-color: #555;
    transform: scale(1.1);
}

footer {
    background-color: #e8d2d200;
    color: #000000;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between; /* Space out copyright and social media */
    align-items: center;           /* Align items vertically */
}

footer .footer-content {
    flex: 1;                     /* Allow the copyright text to take up remaining space */
    text-align: center;          /* Center the copyright text */
}

footer .social-media {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-end;  /* Align items to the right */
}

footer .social-media a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
    margin: 5px 0; /* Space between each social media item */
    transition: transform 0.3s;
}

footer .social-media a i {
    font-size: 20px; /* Adjust icon size */
}

footer .social-media a:hover {
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.close {
    color: #000000;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgb(221, 33, 33);
    text-decoration: none;
    cursor: pointer;
}

.flip {
    display: inline-block;
    transition: transform 0.6s;
}

.flip-update {
    transform: rotateX(360deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInItem {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    #timer {
        font-size: 36px;
    }

    #date {
        font-size: 18px;
    }

    #editButton {
        font-size: 14px;
    }

    footer {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center;    /* Center align items horizontally */
    }

    footer .social-media {
        align-items: center; /* Center align items horizontally */
        margin-top: 10px; /* Add some space above the social media links */
    }
}
