/* Global Resets */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Cursive', sans-serif;
    background-color: #D8E8DF;
    padding: 10px;
}

/* Main Layout */
main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Container for Content */
.container {
    width: 100%;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff63;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header Styles */
#header {
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

#title {
    font-size: 24px;
    margin: 0;
}

/* Menu Styling */
#menu {
    display: flex;
    gap: 15px;
}

#menu a {
    color: #111;
    text-decoration: none;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#menu a:hover {
    background-color: #555;
    border-radius: 5px;
    color: #fff;
}

/* Mobile Menu Button */
#mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

#mobile-menu-button span {
    width: 25px;
    height: 3px;
    background-color: #000;
    display: block;
}

/* Responsive Menu */
@media (max-width: 768px) {
    #menu {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #333;
        flex-direction: column;
        gap: 10px;
        padding: 10px;
        border-radius: 5px;
    }

    #menu.active {
        display: flex;
        background-color: #ebc5c5;
        margin-top: 27px;
    }

    #mobile-menu-button {
        display: flex;
    }
}

/* Game Container Styles */
#game-container {
    display: grid;
    align-content: center;
    justify-content: center;
    align-items: center;
    justify-items: center;
}

/* Coin Styling */
.coin {
    height: 150px;
    width: 150px;
    position: relative;
    margin: 50px auto;
    transform-style: preserve-3d;
}

.tails {
    transform: rotateX(180deg);
}

.coin img {
    width: 145px;
}

.heads, .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Button Styling */
.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

button {
    width: 120px;
    padding: 10px;
    border: 2.5px solid #ADD8E6;
    border-radius: 5px;
    cursor: pointer;
    background: #fff;
}

button#increase-button {
    width: 54px;
    background: #6fa778;
    border: none;
    padding: 15px;
    font-size: 18px;
    color: white;
}

button#decrease-button {
    width: 54px;
    background: #6fa778;
    border: none;
    padding: 15px;
    font-size: 18px;
    color: white;
}

button:disabled {
    background-color: #ADD8E6;
    color: #fff;
    border-color: #e1e0ee;
}
/* Flip and Reset Buttons */
#flip-button {
    background-color: #64a567;
    color: white;
}

#reset-button {
    background-color: #d96c64;
    color: white;
}

/* Coin Count Display */
#coin-count {
    font-size: 24px;
    padding: 10px;
}

button#invite-button {
    background: #aad7f7;
}

button#share-button {
    background: #aad7f7;
    margin: 24px;
}

/* Animations */
@keyframes spin-tails {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(1980deg);
    }
}

@keyframes spin-heads {
    0% {
        transform: rotateX(0);
    }
    100% {
        transform: rotateX(2160deg);
    }
}

/* Stats Table */
#tbstat {
    width: 60%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

table {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid black;
}

th, td {
    padding: 10px;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    table {
        font-size: 14px;
    }
}
ul {
    margin: 38px;
}

p {
    margin: 38px;
}

div#derf12 {
    text-align: left;
}
img#logo-img {
    margin: -14px;
    width: 199px;
    margin-top: 0;
}

/* Footer Styling */
footer {
    background-color: #f8f8f8;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 40px;
    border-radius: 20px;
    margin-bottom: 41px;
}

#footer-menu nav {
    margin-bottom: 10px;
}

#footer-menu nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 10px;
}

#footer-menu nav a:hover {
    background-color: #555;
    border-radius: 5px;
    color: #fff;
}

/* Copyright Styling */
#copyright {
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

#copyright p {
    margin: 0;
}

/* Button Styling */
.color-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin: 10px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 10px;
    height: 43px;
}

  /* Button colors */
  .black{background-color: #000;color:white;}
  .red { background-color: rgb(218, 180, 253); }
  .green { background-color: #64dfb0; }
  .blue { background-color: #67bbff; }
  .yellow { background-color: rgb(247, 208, 96); color: black; }

  /* Button hover effect */
  .color-button:hover {
      transform: scale(1.1);
  }
    /* Dropdown styling */
    .color-dropdown {
        padding: 10px;
        font-size: 16px;
        border-radius: 5px;
        cursor: pointer;
        border: 1px solid #ccc;
    }

    /* Form Fields */
    .form-group {
        margin-bottom: 20px;
    }
    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
        color: #555;
    }
    .form-group input, 
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border-radius: 4px;
        border: 1px solid #ccc;
        font-size: 16px;
        transition: border-color 0.3s ease;
    }
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: #67bbff;
    }

    /* Textarea Styling */
    textarea {
        resize: vertical;
        height: 150px;
    }

    /* Button Styles */
    .submit-button {
        display: inline-block;
        background-color: #67bbff;
        color: white;
        padding: 12px 20px;
        border: none;
        border-radius: 4px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        transition: background-color 0.3s ease;
        width: 100%;
    }
    .submit-button:hover {
        background-color: #559edd;
    }
    form#contact-form {
        width: 65%;
        margin: auto;
    }
