<?php
session_start();

if(!isset($_SESSION['users'])) {
    header('location:login.php');
}
?>

<!DOCTYPE html>
<html lang="id">
    <style>
    body {
            background: linear-gradient(to bottom right, #A3D438, #004D40);
            height: 526px;
    }
    h1 {
      text-align: center;
      margin-top: 10%;
      font-size: 40px;
      box-sizing: border-box;
    }

    .container {
      padding: 5px;
      border: 2px solid; /* Nanti dihapus */
      border-radius: 7pt; /* Nanti dihapus */
      width: 65%;
      height: 55%;
      justify-self: center;
      /* background-image: url(); */
    }

    #button {
      font-size: 35px;
      margin-top: 5%;
      width: 50%;
      margin-bottom: 5%;
      border: 1px solid;
      border-radius: 3pt;
      padding: 2px;
      justify-self: center;
      text-align: center;
    }

    
    </style>


    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Halaman ke-1</title>
    </head>
    <body style='text-align:center'>
        <h1>EAT THAT APPLE</h1>
        <!-- <a href="index.php">Home</a>
        <a href="logout.php">Logout</a> -->
        <hr>

        <h3>Selamat datang, <?php echo $_SESSION['users']['nama'] ?></h3>
        <br>

        <!-- <h1>EAT THAT APPLE</h1> -->
        <div class="container">
            <div class="b2">
              <a href="game.html">
                  <div id="button">Play Game</div>
              </a>
            </div>
            <div class="b2">
              <a href="http://localhost/uas_sem_1/leaderboard.php">
                  <div id="button">Leaderboard</div>
              </a>
            </div>
            <div class="b2">
              <a href="http://localhost/uas_sem_1/logout.php">
                  <div id="button">Logout</div>
              </a>
            </div>
        </div>
    </body>
</html>