html, body {
    /* -webkit-perspective: 1000px;
            perspective: 1000px;
    */
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    height: 100vh;
    min-height: 100%;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);

    font-family: 'Pirata One', cursive;
    position: relative;
}

html {
    background: url(../img/bg/baggrund_highres.jpg) no-repeat center center fixed;
    background-size: cover;
}

:focus {
    outline: none !important;
}

#overlay {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 500;
}

.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: none;
    opacity: 1;
    transition: opacity 400ms ease-in;
}

.modal > div {
    height: 75vh;
    width: 100vh; /* RATIO OF IMAGE */
    position: relative;
    margin: auto;
    margin-top: 12.5vh;

    text-align: center;
}

.modal > div.start, .modal > div.approve, .modal > div.gameend, .modal > div.approvebattleship {
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.modal > div.approve {
    background-image: url("../img/approvemenu.png");
}
.modal > div.approvebattleship {
    background-image: url("../img/approvebattleship.png");
}



.select6cups, .select10cups, .agree, .decline {
    position: relative;
    width: 50%;
    height: 100%;
    float: left;
    cursor: pointer;
}

.agreebattle, .cancelbattle {
    position: relative;
    width: 40%;
    height: 100%;
    float: left;
    cursor: pointer;
}
.declinebattle {
    position: relative;
    width: 20%;
    height: 100%;
    float: left;
    cursor: pointer;
}

.cupsBut {
    box-shadow: inset 0px 1px 0px 0px #ffffff;
    background: linear-gradient(to bottom, #ededed 5%, #dfdfdf 100%);
    background-color: #ededed;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    display: inline-block;
    cursor: pointer;
    color: #777777;
    font-family: 'Pirata One', cursive;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 24px;
    text-decoration: none;
    text-shadow: 0px 1px 0px #ffffff;
}

.cupsBut:hover {
    background: linear-gradient(to bottom, #dfdfdf 5%, #ededed 100%);
    background-color: #dfdfdf;
}

.cupsBut:active {
    position: relative;
    top: 1px;
}

/* INDEX FORM */
.center {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.form-container input[type="text"],
.form-container select,
.form-container input[type="submit"],
.form-container input[type="radio"] {
    margin: 10px 0;
    padding: 10px;
    width: calc(100% - 22px);
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Pirata One', cursive;
}

.form-container input[type="submit"] {
    background: #bf0b00;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 17px;
    border-radius: 10px;
}

.form-container input[type="submit"]:hover {
    background: #a81109;
}

.form-container input[type="radio"] {
    width: auto;
}

.pirate-name {
    margin-bottom: 10px; /* Add margin bottom to separate from other elements */
}

.pirate-name label {
    display: block; /* Ensure label occupies full width */
}

.input-with-dice {
    position: relative;
}

.input-with-dice input {
    padding-right: 40px; /* Make space for the dice icon */
}

.input-with-dice img {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.tab {
    overflow: hidden;
}

.tab button {
    background-color: #bf0b00;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
    color: #fff;
    border-radius: 10px;
    font-family: 'Pirata One', cursive;
}

.tab button:hover {
    background-color: #a81109;
}

.tab button.active {
    background-color: #a81109;
}

.tabcontent {
    display: none;
    padding: 20px;
}

.image-select {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}



.image-select label {
    position: relative;
    cursor: pointer;
}
.image-select input {
    display: none;
}
.image-select img {
    border: 3px solid transparent;
    transition: border 0.3s;
    border-radius: 5px;
}
.image-select input:checked + img {
    border-color: #a81109;
}

.animation-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1; /* Ensures the GIF is behind other content */
}

.animation-container img {
    width: 100%;
    display: block;
}

.headerCoordinates {
    font-size: 40px;
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 2vh;
    color: #fff;
    opacity: 0.5;
}

.status-message {
    position: absolute !important;
    width: 100% !important;
    color: white;
    text-align: center;
    font-size: x-large;
}

#sinkButton {
    position: absolute;
    width: 50px;
    height: 50px;
    top: 10px;
    right: 10px;
    z-index: 100000;
    color: #fff;
    font-size: 50px;
    opacity: 50%;
    cursor: pointer;
}


.cookie-banner {
    position: fixed;
    bottom: 0; /* Position at the bottom of the screen */
    left: 0;
    width: 100%;
    background-color: #000;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-family: 'Comic Sans MS', cursive;
    z-index: 9999; /* Ensure it appears above other content */
}

.cookie-content {
    max-width: 600px;
    margin: 0 auto;
}

.cookie-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
}

.cookie-btn:hover {
    background-color: #45a049;
}

/* Ribbon */
.ribbon {
    width: 200px;
    height: 40px;
    background: #bf0b00;
    position: fixed;
    top: 25px;
    right: -50px;
    text-align: center;
    line-height: 40px;
    font-size: 16px;
    font-family: 'Pirata One', cursive;
    color: #fff;
    transform: rotate(45deg);
    z-index: 10000;
}

.ribbon a {
    color: #fff;
    text-decoration: none;
}

.ribbon a:hover {
    color: #ffeb3b;
}

#start-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}