:root{
    --box_brown: #995533;
}

@font-face {
    font-family: pusab;
    src: url(img/PUSAB.otf);
}

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

body {
    background-image: linear-gradient(#0065FD, #002E73);
    height: 100vh;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.logo{
    display: flex;
    justify-content: center;
    align-items: center;
    img{
        height: 70px;
    }
}

p{
    font-family: aller, helvetica, arial;
    color: white;
}

.welcome, .accwarni{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    height: 20vh;
    font-size: 20px;
}

.boxes{
    display: flex;
    flex-direction: row;
}

.box{
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    font-family: pusab;
    color: white;
}

.box:hover{
    transform: scale(1.1);
    cursor: pointer;
}

span{
    font-size: 30px;
    margin-bottom: 20px;
    text-align: center;
}

#box1, #box2{
    background-color: var(--box_brown);
    width: 400px;
    height: 400px;
    border-radius: 20px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.credits{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    flex-direction: column;
    font-size: 15px;
    a{
        color: yellow;
    }
}

#gameover {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    font-size: 2rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

.score-display {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 100;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    font-size: 24px;
}

.score-display {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 10px;
    z-index: 100;
}

.game-over-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.game-over-content {
    text-align: center;
    background: #1a1a1a;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #ff4444;
    max-width: 400px;
    width: 80%;
}

.game-over-content h2 {
    color: #ff4444;
    font-size: 36px;
    margin-bottom: 20px;
}

.game-over-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.restart-btn {
    background: #ff4444;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.restart-btn:hover {
    background: #ff6666;
    transform: scale(1.05);
}

.box {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.box:hover {
    transform: scale(1.02);
}

.box {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.box:hover {
    transform: scale(1.02);
}

@media (max-width: 768px){
    .boxes{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    #box1, #box2{
        width: 300px;
        height: 300px;
        margin: 10px;
    }
    p{
        text-align: center;
    }
}

@media (max-width: 800px){
    .boxes{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    #box1, #box2{
        width: 400px;
        height: 300px;
        margin: 10px;
    }
    p{
        text-align: center;
    }
}