body {
    font-family: Calibri, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
    text-align: center;
}

header {
    background-color: gray;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    margin: 20px;
}

nav a {
    margin: 10px;
    text-decoration: none;
    color: gray;
}

section {
    margin: 20px;
}

footer {
    background-color: #333;
    color: white;
    padding: 10px;
}

.polaroid-container {
    display: flex; /* Arrange items horizontally */
    gap: 20px; /* Add spacing between images */
    justify-content: center; /* Center align images horizontally */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.polaroid-container img {
    width: 250px; /* Adjust width */
    height: auto;
    background: white;
    display: block;
    margin: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(var(--initial-tilt, 0deg));
    transition: transform 0.5s ease;
}


.polaroid-container img:hover {
    transform: rotate(0deg) scale(1.05); /* Straighten and slightly enlarge on hover */
}



section#gallery {
    display: flex; /* Enables horizontal layout */
    flex-wrap: wrap; /* Allows wrapping if there's not enough space */
    justify-content: center; /* Centers the content horizontally */
    gap: 20px; /* Adds space between the images */
    margin: 20px; /* Adds some margin around the gallery section */
}

section#gallery {
    text-align: center; /* Centers the title */
    margin: 20px; /* Adds some spacing around the gallery */
}

section#gallery h2 {
    margin-bottom: 20px; /* Adds space between the title and the images */
}

body {
    font-family: Calibri, sans-serif;
    text-align: center;
    background-color: #f0f8ff;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: rgb(46, 55, 87);
    color: white;
    padding: 20px;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    gap: 5px;
    margin: 20px auto;
    width: 310px;
}

.cell {
    background-color: #fff;
    border: 2px solid #333;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.cell.taken {
    cursor: not-allowed;
    color: gray;
}

#restart {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #ff69b4;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

#restart:hover {
    background-color: #ff85c1;
}

#winner {
    margin-top: 10px;
    font-size: 1.2rem;
    color: rgb(49, 190, 49);
}

#content {
    display: flex;
    justify-content: space-between; /* Space between the columns */
    gap: 20px; /* Optional: space between columns */
}

.column {
    flex: 1; /* Each column will take up equal space */
    padding: 10px; /* Optional: padding around content */
}

/* Style the individual sections */
#about, #new-section {
    margin-bottom: 20px; /* Space between sections inside each column */
}



img {
    border: 5px solid white; /* Adds a light gray border */
    border-radius: 10px; /* Rounds the corners of the border */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional: Adds a shadow for a polished look */
    width: auto;
    height: 250px;
    display: block;
}


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    z-index: 1000; /* Ensure it's above other elements */
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 40px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    height: 200px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.upright {
    transform: rotate(0deg) !important; /* Override any rotation with upright position */
    transition: transform 0.3s ease; /* Smooth transition to upright */
}


.zoomed {
    transform: scale(1.05) !important; /* Slightly zoom in the image */
    transition: transform 0.3s ease; /* Smooth zoom transition */
}
