
/*Fuente Geometry Soft Pro Bold N*/

@font-face {
    font-family: 'Geometry Soft Pro Bold N';
    src: url('GeometrySoftPro-BoldN.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}



/* ESTILOS INDEX ---------*/

.bodyIndex,
.optionsIndex>button,
.formIndex #buttonPlayIndex  {
    font-family: 'Geometry Soft Pro Bold N';
    background-color: #D9BD71;
}

.bodyIndex{
    margin: 0;
    padding: 0;
    height: 100%; 
    font-family: 'Geometry Soft Pro Bold N', sans-serif;
}


.bodyIndex, .optionsIndex > button{
    font-family:'Geometry Soft Pro Bold N', sans-serif;
}

.backgroundIndex,
.optionsIndex > button{
    font-family:'Geometry Soft Pro Bold N', sans-serif;
}

.descriptionIndex {
    font-size: 1.3rem;
    position: absolute;
    width: 350px;
    height: 700px;
    overflow-y: auto;
    margin-top: 5px;
    margin-left: 5px;
    padding: 20px;
    border-radius: 10px;
    color: #E2DEDE
}



.descriptionIndex p,.descriptionIndex h2,.descriptionIndex ul {
    color: #E2DEDE;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.backgroundIndex {
    width: 40vw; 
    height: 100vh;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-image: url('towel.png'); 
    background-size: cover; 
    background-position: center; 
    margin-left: auto;
    margin-right: auto;
}

.containerIndex {
    text-align: center; 
}

.titleIndex {
    color: white; 
    font-size: 4rem; 
    -webkit-text-stroke: 5px orange; 
}

.optionsIndex {
    font-size: 50px; 
}

.optionsIndex #buttonPlayIndex a,
.optionsIndex #buttonRankingIndex a , .optionsIndex #buttonPlayIndex{
    text-decoration: none; 
    color: white; 
}

.optionsIndex #buttonPlayIndex {
    background-color: orange; 
    font-size: 20px; 
    width: 150px; 
    height: 50px; 
    border-radius: 20px; 
    border-color: orange; 
}

.optionsIndex #buttonRankingIndex {
    background-color: orange; 
    padding: 5px; 
    font-size: 20px; 
    width: 200px; 
    height: 50px; 
    border-radius: 20px; 
    border-color: orange; 
    margin: 45px 0 0; 
}

.optionsIndex #buttonRankingIndex:hover,.optionsIndex #buttonPlayIndex:hover {
    color: white; 
}

/*Estilos para el menu de opciones*/


#bulletIlimited:disabled,
#armoredShips:disabled,
#specialAttack:disabled {
    background-color: #ccc;
    border-color: #999; 
    cursor: not-allowed; 
    opacity: 0.5; 
}



.optionsGameIndex {
    position: absolute;
    right: 8%;
    width: 10%;
    margin: 2% 0 0 0;
}

.optionsGameIndex ul {
    text-align: center;
    font-size: 18px;
    height: 8%;
    list-style-type: none;
    margin: 3% 0 0 0;
    padding: 0;
    cursor: pointer;
    position: relative;
}


.optionsGameIndex > form > ul > p {
    background-color: #F18D1F;
    color: white;
    margin: 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}


.optionsGameIndex li {
    display: none;
    background-color: #F18D1F;
    color: white;
    width: 7%;
    height: 7%;
    margin: 0 auto 0 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.optionsGameIndex li:hover {
    background-color: #E37A17;
    transition: background-color 0.3s ease;
}

.optionsGameIndex li input[type="checkbox"] {
    text-align: center;
    margin-right: 10%;
}

.optionsGameIndex > form > ul > p::after {
    content: " \25BC";
    margin-left: 5px;
    transition: content 0.3s;
}

.optionsGameIndex > form > ul:hover > p::after,
.optionsGameIndex > form > p::after  {
    content: " \25BD";
}


.optionsGameIndex:hover li {
    display: flex;
    position: relative;
    left: -28%;
    width: 115%;
    cursor: default;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}



/* Estilos para el formulario index */
.panelIndex {
    background-color: #E2DEDE;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.panelIndex p {
    color: #3AB1B3;
    font-size: 1.2em;
}

.panelIndex input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 2px solid #D9BD71;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;


}

.panelIndex button {
    background-color: #F18D1F;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.panelIndex button:hover {
    background-color: #D9BD71;

}



/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/
/* ESTILOS GAME Y TUTORIAL --------*/

/* COMUN -------- */
.bodyIndexGame {
    background-color: #3A92B2;
    color: #E2DEDE;
    font-family: 'Geometry Soft Pro Bold N', sans-serif;
    overflow: hidden; 
    display: flex;
    flex-direction: column; 
    height: 100vh; 
    overflow: hidden; 
    margin: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 1000%;
    height: 1000%;
    background-color: rgba(0, 0, 0, 0); 
    display: none; 
    z-index: 1000; 
}

.beach {
    background: linear-gradient(to bottom, #D9BD71 90%, rgba(255, 255, 255, 0) 100%); 
    height: 130%; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute; 
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden; 
}

.sea {
    width: 90%;
    height: 50%;
    z-index: 0;
    margin-top: 130vh;
    margin-left: auto;
    margin-right: auto;
}

.projectiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background-color: #E2DEDE;
    border-radius: 15px;
    width: 400px;
    margin-left: 23%;
    margin-top: 2%;
}



.projectiles p {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin-right: 15px;
}

.projectile-label {
    border: 2px solid transparent;
    padding: 5px;
    cursor: pointer;
    border-radius: 8px;
    background-color: #004b85;
}


.projectile-label.selected {
    background-color: #3a92b2;
    box-shadow: 0 0 0 5px white;
}

.projectile-label img {
    width: 50px;
    height: 50px;
}

.projectile-label:hover {
    background-color: #3a92b2;
}
.projectile-label.disabled {
    opacity: 0.5;         
    pointer-events: none; 
    filter: grayscale(100%);
    background-color: grey;
    cursor: not-allowed;
}






/* ESTILOS solo TUTORIAL ------*/

.tutorial-left-side {
    float: left;
    width: 70%;
    overflow: hidden;
}

.tutorial-right-side {
    float: right;
    width: 30%;
    display: block;
    color: #E2DEDE;
}
.tutorial-right-side .counter-container{
    margin-left: auto;
    margin-right: auto;
    color: #E2DEDE;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #E2DEDE;
    padding: 20px;
    width: 200px;
    margin: 0 auto;
    color: #E2DEDE;
}

.tutorial-left-side .usernameTag{
    margin-left: 20%;
}
.usernameTag{
    margin-left: 20%;
}

.gameBoard {
    margin-left: 20%;
    margin-right: auto; 
    border-collapse: collapse; 
    table-layout: fixed; 
    width: 30vw; 
    height: 30vw;
    border: 3px solid #E2DEDE; 
}
.gameBoard tr td img{
    width: 25px;
    height: 25px;

}

.tutorial-left-side .gameBoard  td {
    border: 3px solid #E2DEDE; 
    text-align: center;
    box-shadow: 0 0 2px;
    margin: 0;
    padding: 0; 
    height: 40px;
    width: 40px;
    font-size: 30px;
}

.tutorial-left-side .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}



/*ESTILOS solo GAME left ------*/
.game-left-side {
    float: left;
    width: 50%;
    overflow: hidden;
}

.game-left-side .gameBoard {
    margin-left: 20%;
    margin-right: auto; 
    border-collapse: collapse; 
    table-layout: fixed; 
    width: 30vw; 
    height: 30vw;
    border: 3px solid #E2DEDE; 
}

.game-left-side .gameBoard td{
    border: 3px solid #E2DEDE; 
    text-align: center;
    box-shadow: 0 0 2px;
    margin: 0;
    padding: 0; 
    height: 40px;
    width: 40px;
    font-size: 30px;
}

.game-left-side .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}


/*ESTILOS solo GAME right ------*/
.game-right-side {
    float: right;
    width: 50%;
    display: block;
    overflow: hidden;
    color: #E2DEDE;
}
.game-right-side .counter-container{
    color: #E2DEDE;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #E2DEDE;
    width: 400px;
    margin-left: 100px;
    margin-bottom: 25px;
}

.counter-container h3 {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
}

.game-right-side .bot-board .usernameTag{
    padding-bottom: 0;
    margin-left: 125px;
    

}


.game-right-side .gameBoard {
    margin-left: 16%;
    margin-right: auto; 
    border-collapse: collapse; 
    table-layout: fixed; 
    width: 10vw; 
    height: 10vw;
    border: 3px solid #E2DEDE; 
}

.game-right-side .gameBoard  td{
    border: 3px solid #E2DEDE; 
    text-align: center;
    box-shadow: 0 0 2px;
    margin: 0;
    padding: 0; 
    height: 30px;
    width: 30px;
    font-size: 22px;
}

.game-right-side .cell img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.game-right-side .bot-board .overlayBotBoard { /*overlay*/
    position: fixed;
    width: 100%; 
    height: 50%;
    background-color: rgba(255, 255, 255, 0); 
    z-index: 1000; 

}

.panelIndex button {
    background-color: #F18D1F;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.panelIndex button:hover {
    background-color: #D9BD71;

}



/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/

/*ESTILOS WIN.PHP*/

.winbody{
    background-color: #D9BD71;
    height: 100%;    
    overflow-y: auto;
}

.windiv {
    background-color: #D9BD71;
    width: 40vw; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-image: url('towel.png'); 
    background-size: cover; 
    background-position: center; 
    margin-left: auto;
    margin-right: auto;
}


.panel {
    background-color: #E2DEDE;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.panel h1 {
    color: #F18D1F;
    font-size: 2.5em;
    margin-bottom: 20px;

}


.panel p {
    color: #3AB1B3;
    font-size: 1.2em;
}

.panel input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 2px solid #D9BD71;
    border-radius: 5px;
    font-size: 1em;
    margin-bottom: 15px;

}

.panel button {
    background-color: #F18D1F;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;

}

.panel button:hover {
    background-color: #D9BD71;

}



/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/

/*ESTILOS RANKING.PHP*/



.back-button {
    display: inline-flex;
    align-items: center;
    background-color: white; 
    color: rgb(0, 0, 0); 
    padding: 10px 20px; 
    border: 1px solid black;
    border-radius: 6px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}

.back-button:hover {
    background-color: #000000;
    color: white;
}

.arrow {
    font-size: 20px; 
    margin-right: 10px; 
}


.bodyRanking{
    font-family:'Geometry Soft Pro Bold N', sans-serif;
    padding: 20px;
    margin: 0;;
    background-color: #ece2c6;
    overflow: auto;

}

.titleRanking {
    text-align: center;
    color: black;
    font-size: 40px;
}

.containerRanking {
    width: 800px;
    margin: auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px black;
}

.containerRanking table {
    border: 1px solid black;
    border-collapse: collapse;
    border-radius: 10px;
    margin-top: 100px;
    text-align: center;
    margin: 100px auto ;
    color: black;
}

.containerRanking table td {
    border: 1px solid black;
    padding: 20px;
}

.containerRanking table th {
    border: 1px solid black;
    border-collapse: collapse;
    padding: 20px;
}

.paginationRanking {
    margin-top: 20px;
    text-align: center;
    margin: 0 0 70px 0px;
}
.optionsIndex #buttonRankingIndex:hover {
    color: white;
}


.highlight {
    color: white;
    background-color: #F18D1F;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/*-----------------------------------------------------------------*/
/*-----------------------------------------------------------------*/

/*ESTILOS ERROR FORBIDDEN*/

.bodyForbidden {
    font-family: 'Geometry Soft Pro Bold N', sans-serif;
    background-color: #D9BD71;
    color: white;
}

.finalForbiScreen{
    background-color: #F18D1F;
    text-align: center;
    font-size: 30px; 
    width: 55%; 
    height: 50%; 
    border-radius: 20px; 
    border-color: #F18D1F; 
    margin: 20% auto;
    padding: 20px;
    box-shadow: 0px 20px 20px rgba(0, 0, 0, 0.2);
}
