<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Game Updates</title>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Montserrat', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #000; /* Black background color */
            color: #fff; /* White text color */
        }

        nav {
            position: fixed; /* Fixed position */
            top: 0; /* Position at the top */
            left: 0; /* Position at the left */
            width: 100%; /* Takes the full width */
            background-color: #333;
            padding: 10px 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 999; /* Ensures the navbar is above other elements */
        }

        .logo img {
            width: 100px; /* Set the width of the logo */
        }

        nav ul {
            list-style-type: none;
            margin: 0;
            padding: 0;
            text-align: center;
        }

        nav ul li {
            display: inline;
        }

        nav ul li a {
            color: #fff;
            text-decoration: none;
            padding: 10px 20px;
            transition: background-color 0.3s;
        }

        nav ul li a:hover {
            background-color: #555;
        }

        .container {
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            background-color: #222; /* Background color of the container */
            border-radius: 10px;
            box-shadow: 0 0 10px #748623; /* Shadow around the container */
            text-align: center;
        }

        h1 {
            color: #748623; /* Header color */
        }

        p {
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        /* Styles for updates */
        .update {
            margin-bottom: 30px; /* Space between updates */
        }

        .update h2 {
            color: #f0c911; /* Update header color */
            margin-bottom: 10px; /* Space below the update header */
        }

        .update p {
            color: #fff; /* Text color for updates */
            line-height: 1.6; /* Line spacing */
        }

        .note {
            border: 1px solid gray; /* Gray border */
            padding: 10px;
            border-radius: 10px;
            background-color: #333; /* Background color */
            color: #f0c911; /* Text color */
            font-weight: bold; /* Bold font */
            margin-top: 20px; /* Space at the top */
        }

        /* Styles for the rating area */
        #ratings {
            margin-top: 50px; /* Space at the top */
            text-align: center; /* Center-align content */
        }

        #ratings input {
            width: 50px; /* Width of input fields */
            margin: 10px; /* Space between elements */
        }

        /* Styles for scroll link */
        #scrollToRatings {
            display: block;
            text-align: center;
            margin-top: 30px;
        }

        #scrollToRatings a {
            color: #fff;
            text-decoration: none;
            font-size: 18px;
        }

        #scrollToRatings a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>
    <nav>
        <div class="logo" onclick="location.href='/'">
            <img src="https://cdn.discordapp.com/attachments/704651653873139803/1233880220004519986/Screenshot_2024-04-27_233856-removebg-preview.png?ex=662eb400&is=662d6280&hm=518bf12af052c5268492e81d64f8957eea1d6163b3c8fe28c3e8a69758169263&" alt="Tanki Logo">
        </div>
        <ul>
            <li><a href="/about">About</a></li>
            <li><a href="/game">Game</a></li>
            <li><a href="/support">Support</a></li>
            <li><a href="/updates">Updates</a></li>
        </ul>
    </nav>
    <div class="container">
        <h1>Game Updates</h1>
        <div class="update">
            <h2>Update 1.0</h2>
            <p>In this update, graphics, game performance, and customization options have been improved. Bugs have also been fixed as reported by players. Get ready for intense battles in new, exciting conditions!</p>
        </div>
        <div class="update">
            <h2>Update 1.1</h2>
            <p>In this update, we improved the walls to prevent players from driving through them. Enjoy smoother gameplay and greater stability!</p>
        </div>
        <div class="update">
            <h2>Update 1.2</h2>
            <p>In this update, we almost doubled the game map and made it more detailed. Now we are on Steam as a free game! Enjoy smoother gameplay and greater stability!</p>
        </div>

        <!-- Added text in a gray box -->
        <div class="note">
            If you want updates to appear more often, support the developers!!!
            <br><br>  <!-- Double line break to create space -->
            ROMANS KOSOGOROVS
            <br>
            LV39HABA0551051381379
        </div>
    </div>

   <!-- Area for ratings -->
   <div id="ratings" class="container" style="margin-top: 1000px;"> 
    <h2>Rate Our Website and Game</h2>
    <p>Please rate our website from 1 to 5 stars:</p>
    <div>
        <label for="websiteRating">Website:</label>
        <input type="number" id="websiteRating" name="websiteRating" min="1" max="5">
    </div>
    <div>
        <label for="gameRating">Game:</label>
        <input type="number" id="gameRating" name="gameRating" min="1" max="5">
    </div>
    <button onclick="submitRatings()">Submit Ratings</button>
</div>

<script>
    function submitRatings() {
        var websiteRating = document.getElementById("websiteRating").value;
        var gameRating = document.getElementById("gameRating").value;

        alert("Thank you for your ratings!\nWebsite: " + websiteRating + " stars\nGame: " + gameRating + " stars");
    }
</script>
</body>
</html>