diff --git a/index.css b/index.css index 7158e41..a54f1b7 100644 --- a/index.css +++ b/index.css @@ -1,4 +1,42 @@ -#board { +.container { + margin-left: 2%; + margin-right: 2%; + margin-top: 75px; + margin-bottom: 75px; +} + +/* modal tutorial from https://www.w3schools.com/howto/howto_css_modals.asp */ +.my-modal { + display: none; /* Hidden by default */ + position: fixed; /* Stay in place */ + z-index: 102; /* Sit on top */ + left: 0; + top: 0; + width: 100%; /* Full width */ + height: 100%; /* Full height */ + overflow: auto; /* Enable scroll if needed */ + background-color: rgb(0,0,0); /* Fallback color */ + background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ + /* visibility: visible; + opacity: 1; + transition: visibility 0s 0.8s, opacity 0.8s linear; */ + } + + /* .transition { + visibility: visible; + opacity: 1; + transition: opacity 2s linear; + } */ + + .modal-content { + background-color: #fefefe; + margin: 15% auto; /* 15% from the top and centered */ + padding: 20px; + border: 1px solid #888; + width: 80%; /* Could be more or less, depending on screen size */ + } + +.board { display: grid; grid-template-columns: 1fr 1fr 1fr; /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */ diff --git a/index.html b/index.html index ff1fd32..5ce8912 100644 --- a/index.html +++ b/index.html @@ -8,15 +8,53 @@
-