{% load static %}
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Christians of the Internet</title>
        <link rel="shortcut icon"
              type="image/png"
              href="https://members.christian-webring.org/static/img/favicon.ico" />
        {% block head %}{% endblock %}
    </head>
    <body>
        <style>
					html {
						height: 100%;
						overflow: hidden;
					}

					.snow, .snow:before, .snow:after {
						pointer-events: none;
						position: absolute;
						top: -600px;
						left: 0;
						bottom: 0;
						right: 0;
						background-image: radial-gradient(5px 5px at 361px 577px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 159px 371px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 17px 430px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 537px 297px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 40px 549px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 559px 504px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 70px 135px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 34px 67px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 345px 133px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 131px 19px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 579px 570px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 542px 173px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 529px 52px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 160px 122px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 169px 43px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 73px 284px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 235px 300px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 117px 309px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 563px 135px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 144px 82px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 571px 564px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 555px 79px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 301px 125px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 517px 320px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 118px 523px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 433px 21px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 169px 583px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 586px 434px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 126px 338px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 491px 459px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 155px 543px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 333px 202px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 151px 288px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 198px 244px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 463px 281px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 118px 384px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 31px 16px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 511px 184px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 379px 290px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 487px 21px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 505px 241px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 317px 152px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 364px 432px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 326px 263px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 305px 103px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 141px 94px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 406px 434px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 208px 79px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 335px 329px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 366px 297px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 141px 568px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 82px 73px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 175px 369px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 536px 401px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 208px 193px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 486px 227px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 369px 356px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 477px 262px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 303px 189px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 364px 215px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 132px 486px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 457px 374px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 77px 239px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 195px 405px, rgba(255, 255, 255, 0.9) 50%, rgba(0, 0, 0, 0)), radial-gradient(4px 4px at 183px 66px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 540px 435px, white 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 414px 26px, rgba(255, 255, 255, 0.7) 50%, rgba(0, 0, 0, 0)), radial-gradient(3px 3px at 420px 532px, rgba(255, 255, 255, 0.6) 50%, rgba(0, 0, 0, 0)), radial-gradient(6px 6px at 192px 459px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0)), radial-gradient(5px 5px at 512px 200px, rgba(255, 255, 255, 0.8) 50%, rgba(0, 0, 0, 0));
						background-size: 600px 600px;
						animation: snow 3s linear infinite;
						content: "";
					}

					.snow:after {
						margin-left: -200px;
						opacity: 0.4;
						animation-duration: 6s;
						animation-direction: reverse;
						filter: blur(3px);
					}

					.snow:before {
						animation-duration: 9s;
						animation-direction: reverse;
						margin-left: -300px;
						opacity: 0.65;
						filter: blur(1.5px);
					}

					@keyframes snow {
						to {
							transform: translateY(600px);
						}
					}

          @font-face {
              font-family: 'Girassol';
              src: url({% static 'fonts/Girassol-Regular.ttf' %}) format('truetype');
          }

          body {
            height: 100%;
            background-color: #868F69;
            background-repeat: repeat;
            background-attachment: fixed;
            color: #000000;
            font-family: "Cormorant Garamond", serif;
            line-height: 1.5em;
            font-size: 1.1em;
            background-image: url("{% static 'img/bg.png' %}");
          }



          h1.header {
            text-align: center;
            margin: 30px 0;
            color: #603814; 
            font-weight: 400;
            font-style: normal;
            font-size: 70px; 
            text-shadow: 1px 1px 0px #868F69, 2px 2px 0px #254117;
            font-family: "Girassol", serif;
          }

          .container {
            background-color: #ffffff;
            width: 70%;
            max-width: 1400px;
            padding: 20px;
            margin: auto;
          }


					.avatar {}

          .nav {
            box-sizing: border-box;
            background-color: rgba(96,56,20, .9);
            color: white; 
            margin-bottom: 0px;
            box-shadow: 0 5px 5px -2px #603814;
            border-top-style: ridge;
            border-left-style: ridge;
            border-right-style: ridge; 
            border-color: #603814;
            padding: 1px;
            padding-left: 20px;
            padding-right: 20px;
            margin-bottom: 10px;
          }

          .nav a {
            color: white; 
            font-size: 20px; 
            padding: 10px; 
            text-decoration: none;
          }

          .nav a:hover {
            font-style: italic;
            font-weight: bold;
          }

          .nav a:active {
            font-style: italic;
            font-weight: bold;
          }

          #main {
            box-sizing: border-box;
            background-color: #fff;
            color: #3C241B;
            padding: 15px;
            text-align: justify;
            /* HOW TO MAKE BOX SHADOW FOR TOP BORDER - A BIT JANKY BUT WORKS. Note how the one for the sides has completely transparent opacity. */	
            box-shadow: inset 0 -8px 4px 4px rgba(255, 255, 255, 0), inset 0 2px 4px 0px #603814;
            border-left-style: ridge;
            border-right-style: ridge; 
            border-bottom-style:ridge; 
            border-color: #603814;
            margin-top: -10px;
          }
					
          .forum-category {
						position: relative;
            max-width: 100%;
            height: 40px;
            background-color: #603814;
            color: white;
            padding-top: 6px;
            padding-bottom: 3px;
            padding-left: 10px;
            box-sizing: border-box;
            font-weight: bold;
          }

          .forum-thread {
            width: 100%;
            border: solid #657346 1px;
            border-top: 0px;
            padding: 15px;
            box-sizing: border-box;
          }

          table {
            line-height: 1em;
            border-collapse: collapse;
            width: 100%;
          }

          td,
          th {
            border: 1px solid #657346;
            text-align: left;
            padding: 8px;
          }

          .hide {
            display: none;
          }

          blockquote {
            color: green;
          }

          blockquote:before {
            position: absolute;
            content: "> ";
            margin-left: -1em;
          }

          .messages {
            box-sizing: border-box;
            list-style: none;
            margin: 1em 0 2em;
            padding: 0;
          }

          .messages li {
            box-sizing: border-box;
            padding: 1em;
            width: 100%;
            line-height: 2.0em;
          }

          .debug {
            background-color: #d0ebff;
          }

          .success {
            background-color: #b2f2bb;
          }

          .warning {
            background-color: #ffec99;
          }

          .error {
            background-color: #ffe3e3;
          }

					.clearfix:after {
						content: "";
						display: table;
						clear: both;
					}

          @media only screen and (max-width: 1000px) {
            .container {
              width: 95%;
            }

						.avatar {
							height: 100px;
							width: auto;
						}

						.nav a {
							font-size: 14px;
							padding: 5px;
						}

						h1.header {
							text-align: center;
							margin: 30px 0;
							color: #603814; 
							font-weight: 400;
							font-style: normal;
							font-size: 35px; 
							text-shadow: 1px 1px 0px #868F69, 2px 2px 0px #254117;
							font-family: "Girassol", serif;
						}
          }
        </style>
        <h1 class="header">Christians of the Internet</h1>
        <div class="container nav">
            <center>
                <a href="https://christian-webring.nekoweb.org/">Home</a>
                <a href="https://christian-webring.nekoweb.org/widget.html">Widget</a>
                <a href="https://christian-webring.nekoweb.org/rules.html">Rules</a>
                <a href="https://christian-webring.nekoweb.org/member-list.html">Members</a>
                <a href="https://christian-webring.nekoweb.org/manager.html">Admins</a>
                <a href="{% url 'index' %}">Member's Area</a>
                <a href="{% url 'signup' %}">Join</a>
            </center>
        </div>
        <div class="container nav" style="margin-top:-10px;">
            <center>
                <a href="{% url 'forum_threads' %}">Forum</a>
                <a href="{% url 'profile' %}">Profile</a>
                <a href="{% url 'code_of_ethics' %}">Code of Ethics</a>
                <a href="{% url 'custom_logout' %}">Logout</a>
            </center>
        </div>
        <script>
      function toggleDisplay(elemId) {
        let elem = document.getElementById(elemId);
        if (elem.style.display === "none" || elem.style.display === "") {
          elem.style.display = "block";
        } else {
          elem.style.display = "none";
        }
      }
        </script>
        <div id="main" class="container">
            {% if messages %}
                <ul class="messages">
                    {% for message in messages %}
                        <li {% if message.tags %}class="{{ message.tags }}"{% endif %}>{{ message }}</li>
                    {% endfor %}
                </ul>
            {% endif %}
            {% block content %}{% endblock %}
						<br>
						<div style="float:right"><small>v1.0.1</small></div>
						<div style="clear:both;"></div>
						<div class="snow"></div>
        </div>
    </body>
</html>
