/* Styles for the title logo */
.title-logo {
    display: block;
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

/* Centering elements vertically and horizontally */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    margin: 0;
}

/* Grouping elements together for consistent styling */
.container {
    text-align: center;
}

/* Styling for the container holding the dice */
.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Styling for the label above the URL input */
.urlLabel {
    font-family: 'Mojang', sans-serif;
    display: inline-block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 190px;
}

/* Styling for the URL input */
#urlInput {
    font-family: 'Mojang', sans-serif;
    position: relative;
    bottom: 50px;
    width: 300px; 
    height: 10px;
    border: 2px solid #ccc;
    border-radius: 20px; 
    padding: 10px;
    font-size: 16px;
    background-color: #f5f5f5;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease; 
}

/* Styling for the result container */
#resultContainer {
    font-family: 'Mojang', sans-serif;
    font-size: 12px;
    position: absolute;
    top: 40%;
}

/* Styling for individual dice */
.dice {
    width: 100px;
    height: 100px;
    margin: 0 10px;
    position: relative;
}

/* Styling for the dice images */
.dice img {
    position: relative;
    top: 50px;
    width: 100%;
    height: 100%;
}

/* Animation for "rolling" dice */
.roll-animation {
    animation: roll 1s ease-in-out;
}

/* Keyframes for dice rolling animation (spin effect) */
@keyframes roll {
    0% {
      transform: rotate(0deg);
    }
    50% {
      transform: rotate(180deg);
    }
    100% {
      transform: rotate(0deg);
    }
}

/* Custom font declaration */
@font-face {
    font-family: 'Mojang';
    src: url('Mojang-Regular.ttf') format('truetype');
}

/* Styling for elements using the custom font */
.mojang-font {
    font-family: 'Mojang', sans-serif;
}

/* Styling for the roll button */
button#rollButton {
    position: relative;
    top: 50px;
    font-size: 20px;
    padding: 15px 30px;
    border: none;
    background-color: #9c9c9c;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Styling for the connect button */
button#urlButton {
    transform: translateY(-120%);
    font-size: 10px;
    padding: 10px 25px;
    border: none;
    background-color: #9c9c9c;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Hover effect for the connect button */
button#urlButton:hover {
    background-color: #7c7c7c;
}

/* Hover effect for the roll button */
button#rollButton:hover {
    background-color: #7c7c7c;
}

/* Styling for the result prompt */
.result-prompt {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    color: #333;
}
