309 lines
5.9 KiB
CSS
309 lines
5.9 KiB
CSS
|
|
.back-button {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
text-decoration: none;
|
|
font-size: 24px;
|
|
color: black;
|
|
}
|
|
|
|
.nadpis {
|
|
font-size: clamp(36px, 5vw, 48px);
|
|
font-weight: bold;
|
|
color: white;
|
|
text-shadow: 0 4px 6px rgba(0,0,0,0.3);
|
|
margin-bottom: clamp(20px, 4vh, 40px);
|
|
text-align: center;
|
|
}
|
|
|
|
.buttons-container {
|
|
display: flex;
|
|
gap: clamp(5px, 1vw, 30px);
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
width: 100%;
|
|
max-width: 1400px;
|
|
padding: 0 clamp(10px, 2vw, 20px);
|
|
}
|
|
|
|
.square-button {
|
|
flex: 0 1 calc(20% - clamp(15px, 3vw, 30px));
|
|
aspect-ratio: 1/1;
|
|
min-width: 200px;
|
|
max-width: 300px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: clamp(10px, 1.5vw, 12px);
|
|
font-weight: bold;
|
|
color: white;
|
|
text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-shadow: 0 10px 20px rgba(0,0,0,0.2);
|
|
margin: clamp(10px, 2vw, 15px);
|
|
}
|
|
|
|
.square-button::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.3);
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.square-button:hover {
|
|
transform: translateY(-10px);
|
|
box-shadow: 0 15px 25px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
.square-button:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.square-button[data-letter="Š"] {
|
|
background-image: url('../images/pexeso-Š.png');
|
|
}
|
|
|
|
.square-button[data-letter="S"] {
|
|
background-image: url('../images/pexeso-S.png');
|
|
}
|
|
|
|
.square-button[data-letter="R"] {
|
|
background-image: url('../images/pexeso-R.png');
|
|
}
|
|
|
|
|
|
.square-button[data-letter="Custom"] {
|
|
background-image: url('../images/pexeso-custom.png');
|
|
}
|
|
|
|
|
|
|
|
|
|
.player-setup {
|
|
background: rgba(218, 218, 218, 0.5);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.player-setup input {
|
|
margin: 0 1% 1% 0%;
|
|
padding: 1% 1% 1% 1%;
|
|
width: 46%;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|
|
|
|
#customLevelModal {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background: rgba(255,255,255,0.9);
|
|
backdrop-filter: blur(10px);
|
|
padding: 40px;
|
|
border-radius: 20px;
|
|
box-shadow: 0 15px 30px rgba(0,0,0,0.2);
|
|
display: none;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
max-width: 800px;
|
|
width: 90%;
|
|
max-height: 90vh;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.word-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
gap: 15px;
|
|
max-height: 500px;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
background: rgba(218, 218, 218, 0.5);
|
|
border-radius: 15px;
|
|
}
|
|
|
|
.word-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px;
|
|
background-color: white;
|
|
border-radius: 10px;
|
|
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.word-item:hover {
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.word-item img {
|
|
max-width: 50px;
|
|
max-height: 50px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
|
|
#customLevelModal button {
|
|
padding: 12px 24px;
|
|
background-color: rgba(240,240,240,0.5); /* Stejná barva jako pozadí word listu */
|
|
color: #333; /* Barva textu podobná word listu */
|
|
border: none;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease, transform 0.2s ease;
|
|
font-family: 'MPLUSRounded1c-Medium', sans-serif;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
#customLevelModal button:hover {
|
|
background-color: rgba(220,220,220,0.7); /* Lehce tmavší varianta pozadí */
|
|
transform: scale(1.05); /* Jemný efekt zvětšení při hover */
|
|
}
|
|
|
|
/* Specificky pro tlačítko "Začít hru" */
|
|
#customLevelModal button {
|
|
background-color: white;
|
|
}
|
|
|
|
#customLevelModal button:first-of-type:hover {
|
|
background-color: rgba(220,220,220,0.7); /* Lehce tmavší varianta pozadí */
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Média dotaz pro mobilní zařízení */
|
|
@media screen and (max-width: 768px) {
|
|
body {
|
|
padding: 10px;
|
|
min-height: 100vh;
|
|
height: auto;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.back-button {
|
|
top: 10px;
|
|
left: 10px;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.nadpis {
|
|
font-size: 32px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.buttons-container {
|
|
gap: 15px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.square-button {
|
|
min-width: 150px;
|
|
min-height: 150px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
#customLevelModal {
|
|
padding: 20px;
|
|
width: 95%;
|
|
max-height: 95vh;
|
|
}
|
|
|
|
.word-list {
|
|
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
|
|
gap: 10px;
|
|
padding: 10px;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.word-item {
|
|
padding: 5px;
|
|
gap: 5px;
|
|
}
|
|
|
|
.word-item img {
|
|
max-width: 40px;
|
|
max-height: 40px;
|
|
}
|
|
|
|
#customLevelModal button {
|
|
padding: 10px 20px;
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
/* Pro velmi malé obrazovky */
|
|
@media screen and (max-width: 480px) {
|
|
body {
|
|
padding: 5px;
|
|
}
|
|
|
|
.nadpis {
|
|
font-size: 28px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.buttons-container {
|
|
gap: 10px;
|
|
}
|
|
|
|
.square-button {
|
|
min-width: 120px;
|
|
min-height: 120px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
#customLevelModal {
|
|
padding: 15px;
|
|
width: 98%;
|
|
}
|
|
|
|
.word-list {
|
|
grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
|
|
gap: 5px;
|
|
max-height: 350px;
|
|
}
|
|
|
|
.word-item {
|
|
padding: 3px;
|
|
}
|
|
|
|
.word-item img {
|
|
max-width: 30px;
|
|
max-height: 30px;
|
|
}
|
|
|
|
#customLevelModal button {
|
|
padding: 8px 16px;
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'MPLUSRounded1c-Black';
|
|
src: url('../fonts/MPLUSRounded1c-Black.ttf') format('truetype');
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|