*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #243188;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header .logo a{
    color: white;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #3e4baa;
}

main {
    width: 100%;
}

section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    border-bottom: 1px solid #ddd;
}

h1{
    text-align: center;
    font-size: 3rem;
}

p{
    text-align: center;
}

section:last-of-type {
    border-bottom: none;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #243188;
}

.section-image {
    display: block;
    max-width: 300px; 
    height: auto; 
    margin: 0 auto 25px; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.profile-picture {
    width: 200px; 
    height: 200px; 
    border-radius: 50%; 
    object-fit: cover; 
}


footer {
    text-align: center;
    padding: 20px;
    background-color: #151622;
    color: white;
}


#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 5px;
}

.cell {
    width: 100px;
    height: 100px;
    background-color: #FED527;
    border: 2px solid #243188;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cell:hover {
    background-color: #ffffff;
}

.cell.X, .cell.O {
    cursor: not-allowed;
}

.cell.X::before {
    content: 'X';
    color: #810522;
}

.cell.O::before {
    content: 'O';
    color: #103419;
}

.winning-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2.5rem;
    text-align: center;
}

.winning-message button {
    font-size: 1.5rem;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background-color: #1D038C;
    color: #ffffff;
}

.winning-message.show {
    display: flex;
}