body {
    margin: 0px;
    font-family: tahoma, sans-serif;
    background-color: hsl(210, 5%, 7%);
    color: hsl(0, 0%, 90%);
}

main {
    margin-inline: clamp(20px, calc(33vw - 280px), 900px);
}

nav {
    display: flex;
    justify-content: center;
    gap: 13px;
    margin-left: clamp(4px, calc(50vw - 310px), 2000px);
    justify-content: left;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}

.navscroll {
    margin-left: clamp(4px, calc(50vw - 600px), 2000px);
    justify-content: left;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}
.navscrollss {
    margin-left: clamp(4px, calc(50vw - 250px), 2000px);
    justify-content: left;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}
.navscrolltopbar {
    margin-left: clamp(4px, calc(50vw - 250px), 2000px);
    justify-content: left;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
}
.navpageselect {
    display: flex;
    margin-left: clamp(4px, calc(50vw - 150px), 2000px);
    gap: 13px;
}

a {
    text-decoration: none;
}
a:any-link {
    color: hsl(0, 0%, 100%);
}

nav a {
    display: inline-block;
    padding: 10px 19px;

    color: #e8e8e8;
    text-decoration: none;

    border: 1px solid #111;
    border-radius: 5px;

    background:
        linear-gradient(
            to bottom,
            #454545 0%,
            #303030 40%,
            #242424 50%,
            #1c1c1c 100%
        );

    transition:
        transform 0.12s ease,
        filter 0.12s ease;
}

nav a:hover {
    filter: brightness(1.15);
    transform: translateY(2px);
}

nav a:active,
nav a.active {
    transform: translateY(2px);

    background:
        linear-gradient(
            to bottom,
            #242424 0%,
            #303030 50%,
            #3a3a3a 100%
        );

    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.45),
        inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

img {
    max-width: 100%;
    display: flex;
    margin-top: 40px;
}


.coverimg {
    min-width: 100%;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 30px;
    margin-top: 0.6vw;
    margin-bottom: 0.5vw;
}

hr {
    border: none;
    border-top: 3px solid black;
    margin: 4px;
}

.logo {
    text-align:center;
    width:clamp(3rem, 80vw, 50rem);
    display:block;
    margin:auto;
    margin-bottom: -1vw;
    margin-top: 0.3vw;
}

.longlogo {
    height: clamp(4rem, 8vw, 5rem);
    position: absolute;
    top: -20px;
    left: 20px;
    display: flex;
}
.medlogo {
    height: clamp(4rem, 8vw, 5rem);
    position: absolute;
    top: -20px;
    left: 20px;
    display: flex;
}
.sqrlogo {
    height: clamp(50px, 10vw, 100px);
    position: absolute;
    top: -30px;
    left: 1.5vw;
    display: flex;
}
.minilogo {
    height: clamp(50px, 10vw, 100px);
    position: absolute;
    top: -30px;
    left: 1.5vw;
    display: flex;
}

.header {
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}

.title {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    margin: 0;
}

.medlogo,
.sqrlogo {
    display: none;
    }

    @media (max-width: 1780px) {
    .longlogo {
        display: none;
    }

    .medlogo {
        display: block;
    }
}
    @media (max-width: 1120px) {
    .medlogo {
        display: none;
    }

    .sqrlogo {
        display: block;
    }
}
.minilogo {
    display: block;
    }

    @media (max-width: 1180px) {
    .minilogo {
        display: none;
    }
}

.image {
    width: 300px;
    cursor: pointer;
}

#fullscreen {
    display: none;
}

#fullscreen:checked + label {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#fullscreen:checked + label img {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

/*
use this for the above fullscreen image code
<br>
    <input type="checkbox" id="fullscreen">

<label for="fullscreen">
    <img src="/images/phonix ss 31 1.jpg" class="coverimg">
</label>
*/

.gallery{
    display: inline-block;
    border: 3px solid hsl(0, 0%, 0%);
    margin: 3px;
    text-align:center;
    width: clamp(400px, 30%, 95%);
    height: auto;
}
.gallery .description{
    padding: 10px;
    text-align: center;
}
.gallery:hover{
    border: 3px solid hsl(0, 0%, 20%);
}
.gallery img{
    width:fit-content;
    height: auto;
}
.gallerycentre {
    justify-content:center;
    text-align: center;
    margin-inline: clamp(0px, calc(10vw - 320px), 800px);
}

.box{
    background-color: hsl(0, 0%, 5%);
}

.grid-container{
    text-align:center;
    justify-content: center;
    display: grid;
    grid-auto-columns: clamp(180px, 22vw, 600px);
    grid-auto-rows: clamp(180px, 20vw, 400px);
    gap: 1em;
    grid-template-areas:
    "box-1 box-1 box-2 box-3"
    "box-1 box-1 box-4 box-5";
}

@media(max-width: 52em){
    .grid-container{
    grid-template-areas:
    "box-1 box-1 box-2"
    "box-1 box-1 box-3"
    "box-4 box-5 box-5";
    }
}
@media(max-width: 40em){
    .grid-container{
    grid-template-areas:
    "box-1 box-2"
    "box-3 box-4"
    "box-5 box-6";
    }
}