html {
    background-color: rgb(49, 49, 49);
    color: white;
}

body {
    margin: 0 auto;
    position: relative;
}

.header {
    position: relative;
    margin: 0 auto;
    padding: 0 auto;
    height: 100px;
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    background-color: rgb(2, 0, 43);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

#header-clc-logo {
    position: relative;
    height: 90%;
    margin-left: 2vw;
}

#header-title {
    flex-grow: 1; /* Allows the title to grow and take available space */
    text-align: center;
    font-size: x-large;

}

#header-countdown {
    display: block;
    font-size: x-large;
    font-weight: bold;
    margin-right: 3vw;
}

#header-time {
    font-weight: bold;
    text-align: right;
    font-size: xx-large;
    width: min-content;
    margin-right: 2vw;

}


#header-settings {
    position: relative;
    height: 60%;
    margin-right: 2vw;
}

.rotate-image {
    transition: transform 0.5s ease;
}
  
.rotate-image:hover {
    transform: rotate(30deg);
}

#blocks {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    align-items: center;
    flex-direction: row;
}

#content {
    display: flex;
    align-items: center;
}

#settings {
    position: relative;
    display: none;
    height: 70vh;
    width: 0;
    margin-top: 20px;
    padding: 20px;
    transition: right 1.3s ease;
    background-color: rgb(2, 0, 43);
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    margin-left: auto;
    flex-grow: 0; /* Prevent item from growing */
    flex-shrink: 0;
}

.settings-category {
    color: white;
}

.block {
    display: flex;
    justify-content: center;
    width: calc(20% - 20px); /* 3 blocks per row on larger screens */
    margin-top: 3vh;
    align-items: center; 
    max-height: 200px;
}


.block img {
    object-fit: contain;
    max-width: 100%;
    max-height: 200px;
}

.block p {
    margin: 10px 0;
}

@media (max-width: 1300px) {
    .block {
      width: calc(20% - 20px); /* 2 blocks per row on medium screens */
    }
}

@media (max-width: 768px) {
    .block {
      width: calc(40% - 20px); /* 2 blocks per row on medium screens */
    }
}

@media (max-width: 480px) {
    .block {
      width: calc(100% - 20px); /* 1 block per row on small screens */
    }
}