@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
body {
    font-family: 'Press Start 2P';
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: url(/images/fondoagua.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

h1 {
    color: #ffffff;
    text-align: center;
    text-shadow: 
	-2px -2px 0 rgb(0, 0, 0),
	-2px 2px 0 rgb(0, 0, 0),
	2px 2px 0 rgb(0, 0, 0),
	2px -2px 0 rgb(0, 0, 0) ;
}

.boton{
    background-color: #000000;
    justify-self:left;
    padding: 13px 30px;
    border-radius: 32px;
	margin-bottom: 20px;
    margin-right: auto;
}
.boton a{
	text-decoration: none;
	color: #fff;
}
.boton:hover{
	background: #003165;
}

#wheel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wheel {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 10px solid #013590;
    position: relative;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
}

.segment {
    width: 50%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    border: 1px solid #013590;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 18px;
    line-height: 100px;
    transform-origin: 100% 100%;
}

.segment:nth-child(1) { transform: rotate(0deg); }
.segment:nth-child(2) { transform: rotate(90deg); }
.segment:nth-child(3) { transform: rotate(180deg); }
.segment:nth-child(4) { transform: rotate(270deg); }

#spin-button {
    font-family: 'Press Start 2P';
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #013590;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

#spin-button:hover {
    background-color: #021e50;
    transform: scale(1.05);
}

#question {
    font-size: 24px;
    margin: 20px 0;
}

#grid {
    display: grid;
    grid-template-columns: repeat(3, 80px);
    gap: 15px;
}

.card {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #013590;
    background-color: #e0f7fa;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.card:hover {
    background-color: #2e5893;
    transform: scale(1.05);
}

.card.correct {
    background-color: #0ee515;
}

.card.incorrect {
    background-color: #e50b21;
}

#score {
    font-size: 20px;
    margin-top: 10px;
}

#new-game {
    font-family: 'Press Start 2P';
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background-color: #013590;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 20px;
}

#new-game:hover {
    background-color: #021e50;
    transform: scale(1.05);
}
#pregunta{
    font-size: 25px;
    margin: 20px;
    text-align: center;
}
video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}
.capa{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    opacity: 0.5;
    mix-blend-mode: overlay;
}
.footer__copy{
    width: 90%;
    margin: 0 auto;
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;
}

.footer__copyright{
    font-weight: 1000;
    width: 90%;
    margin: 0 auto;
    text-align: center;
}
@media screen and (max-width: 900px) {
	body {
        font-family: 'Press Start 2P';
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 100px;
        background-size: cover;
    }
    
    h1 {
        text-align: center;
        font-size: 30px;
    }
    .boton a{
        text-decoration: none;
        font-size: 20px;
    }
    
    #wheel {
        width: 300px;
        height: 300px;
        border-radius: 50%;
        position: relative;
        overflow: hidden;
        transition: transform 4s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .segment {
        width: 50%;
        height: 50%;
        position: absolute;
        top: 0;
        left: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        text-align:end;
        font-size: 50px;
        line-height: 100px;
        transform-origin: 100% 100%;
    }
    #spin-button {
        font-family: 'Press Start 2P';
        padding: 10px 20px;
        font-size: 30px;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        margin-top: 20px;
    }
    #question {
        font-size: 30px;
        margin: 20px 0;
    }
    #pregunta{
        font-size: 25px;
        margin: 20px;
        text-align: center;
    }
    #score {
        font-size: 30px;
        margin-top: 10px;
    }
    #new-game {
        font-family: 'Press Start 2P';
        padding: 10px 20px;
        font-size: 30px;
        font-weight: bold;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.2s;
        margin-top: 20px;
    }
}